[-] BO : fix #PSFV-870 : translations modules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14677 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -57,11 +57,11 @@
|
||||
<h3 style="padding:0;margin:0;">{l s='List of Themes - Click to access theme translation:'}</h3>
|
||||
<ul style="list-style-type:none;padding:0;margin:0 0 10px 0;">
|
||||
{foreach array_keys($modules_translations) as $theme}
|
||||
<li><a href="#{$theme}" class="link">- {if $theme === 'default'}{l s='default'}{else}$theme{/if}</a></li>
|
||||
<li><a href="#{$theme}" class="link">- {if $theme === 'default'}{l s='default'}{else}{$theme}{/if}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
|
||||
{foreach $modules_translations as $theme_name => $theme}
|
||||
<h2>>{l s='Theme:'} <a name="{$theme_name}">{if $theme_name === $default_theme_name}{l s='default'}{else}{$theme_name}{/if} </h2>
|
||||
{foreach $theme as $module_name => $module}
|
||||
|
||||
@@ -1910,12 +1910,13 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
$arr_files = $this->getAllModuleFiles($modules, _PS_MODULE_DIR_, $lang, true);
|
||||
$arr_find_and_fill = array_merge($arr_find_and_fill, $arr_files);
|
||||
|
||||
if (file_exists(_PS_THEME_DIR_.'/modules/'))
|
||||
if (file_exists(_PS_THEME_DIR_.'modules/'))
|
||||
{
|
||||
$modules = scandir(_PS_THEME_DIR_.'/modules/');
|
||||
$modules = scandir(_PS_THEME_DIR_.'modules/');
|
||||
$arr_files = $this->getAllModuleFiles($modules, _PS_THEME_DIR_.'modules/', $lang);
|
||||
$arr_find_and_fill = array_merge($arr_find_and_fill, $arr_files);
|
||||
}
|
||||
|
||||
foreach ($arr_find_and_fill as $value)
|
||||
$this->findAndFillTranslations($value['files'], $value['theme'], $value['module'], $value['dir'], $lang);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user