From 1921668596ab8a9dd429bfb9b60b66e3e2bce9c5 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Thu, 25 Apr 2013 17:47:07 +0200 Subject: [PATCH] [-] BO : Fixed display when you translate modules without theme selected --- .../translations/helpers/view/translation_modules.tpl | 4 ++-- controllers/admin/AdminTranslationsController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_modules.tpl b/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_modules.tpl index 81fae60f5..4455c007a 100644 --- a/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_modules.tpl +++ b/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_modules.tpl @@ -92,7 +92,7 @@
{foreach $modules_translations as $theme_name => $theme} -

>{l s='Theme:'} {if $theme_name === $default_theme_name}{l s='default'}{else}{$theme_name}{/if}

+ {if $theme_name}

>{l s='Theme:'} {$theme_name}

{/if} {foreach $theme as $module_name => $module}

{l s='Module:'} {$module_name}

{foreach $module as $template_name => $newLang} @@ -107,7 +107,7 @@ {$missing_translations_module = 0} {/if}
- {if $theme_name === 'default'}{l s='default'}{else}{$theme_name}{/if} - {$template_name} + {if $theme_name}{$theme_name} - {/if}{$template_name} {$newLang|count} {l s='expressions'} ({$missing_translations_module})
diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index 3456183b3..9b360eb8b 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -127,7 +127,7 @@ class AdminTranslationsControllerCore extends AdminController $this->l('%1$s (Language: %2$s, Theme: %3$s)'), $this->translations_informations[$this->type_selected]['name'], $this->lang_selected->name, - $this->theme_selected + $this->theme_selected ? $this->theme_selected : $this->l('none') ); // Set vars for all forms