diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-06-30 00:22:16 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-06-30 00:22:16 -0700 |
commit | 4dfb5aaf250164d9096e8fafc6b1a27386f8c8e5 (patch) | |
tree | 9d3f96f7c71171071375455da9d30c42c7800f01 | |
parent | 176030f68a5cf5f6822cc11aaa3f324c29686085 (diff) |
Fix i18n issue - accidentally called t() on translated messages. Please truncate incoming_translations after this
update to get rid of bad messages in your DB.
-rw-r--r-- | modules/gallery/helpers/module.php | 2 | ||||
-rw-r--r-- | modules/gallery/views/upgrader.html.php | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php index 0e9aecdc..0d483206 100644 --- a/modules/gallery/helpers/module.php +++ b/modules/gallery/helpers/module.php @@ -86,8 +86,6 @@ class module_Core { $m->code_version = $m->version; $m->version = self::get_version($module_name); $m->locked = false; - $m->name = t($m->name); - $m->description = t($m->description); } // Lock certain modules diff --git a/modules/gallery/views/upgrader.html.php b/modules/gallery/views/upgrader.html.php index b480ca19..90b03fce 100644 --- a/modules/gallery/views/upgrader.html.php +++ b/modules/gallery/views/upgrader.html.php @@ -42,7 +42,7 @@ <? if ($module->active): ?> <tr class="<?= $module->version == $module->code_version ? "current" : "upgradeable" ?>" > <td class="name <?= $id ?>"> - <?= $module->name ?> + <?= t($module->name) ?> </td> <td> <?= $module->version ?> @@ -71,7 +71,7 @@ <? foreach ($available as $module): ?> <? if (!$module->active): ?> <li> - <?= $module->name ?> + <?= t($module->name) ?> </li> <? endif ?> <? endforeach ?> |