Skip to content

Commit

Permalink
Fix i18n issue - accidentally called t() on translated messages. Plea…
Browse files Browse the repository at this point in the history
…se truncate incoming_translations after this

update to get rid of bad messages in your DB.
  • Loading branch information
andyst committed Jun 30, 2009
1 parent 176030f commit 4dfb5aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions modules/gallery/helpers/module.php
Expand Up @@ -86,8 +86,6 @@ static function available() {
$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
Expand Down
4 changes: 2 additions & 2 deletions modules/gallery/views/upgrader.html.php
Expand Up @@ -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 ?>
Expand Down Expand Up @@ -71,7 +71,7 @@
<? foreach ($available as $module): ?>
<? if (!$module->active): ?>
<li>
<?= $module->name ?>
<?= t($module->name) ?>
</li>
<? endif ?>
<? endforeach ?>
Expand Down

0 comments on commit 4dfb5aa

Please sign in to comment.