diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-03-31 17:01:04 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-04-12 21:13:29 -0400 |
commit | f65076b93d91fe9718cf9bef37638d64290b9f28 (patch) | |
tree | 40fbc65baffab34971d8c7b685ef9c99e0f4014f /templates/show_plugins.inc.php | |
parent | 15457b16f17a141fa76a3b9882892362b601787c (diff) | |
download | ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2 ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip |
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to
write a quick T_() as a simple wrapper; it's not so easy to rewrite
PHP to allow redeclaration of a function.
Diffstat (limited to 'templates/show_plugins.inc.php')
-rw-r--r-- | templates/show_plugins.inc.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/show_plugins.inc.php b/templates/show_plugins.inc.php index dd434d0c..ead57dfd 100644 --- a/templates/show_plugins.inc.php +++ b/templates/show_plugins.inc.php @@ -37,11 +37,11 @@ $web_path = Config::get('web_path'); <col id="col_action" /> </colgroup> <tr class="th-top"> - <th class="cel_name"><?php echo _('Name'); ?></th> - <th class="cel_description"><?php echo _('Description'); ?></th> - <th class="cel_version"><?php echo _('Version'); ?></th> - <th class="cel_iversion"><?php echo _('Installed Version'); ?></th> - <th class="cel_action"><?php echo _('Action'); ?></th> + <th class="cel_name"><?php echo T_('Name'); ?></th> + <th class="cel_description"><?php echo T_('Description'); ?></th> + <th class="cel_version"><?php echo T_('Version'); ?></th> + <th class="cel_iversion"><?php echo T_('Installed Version'); ?></th> + <th class="cel_action"><?php echo T_('Action'); ?></th> </tr> <?php foreach ($plugins as $plugin_name) { @@ -49,15 +49,15 @@ foreach ($plugins as $plugin_name) { $installed_version = Plugin::get_plugin_version($plugin->_plugin->name); if (! $installed_version) { $action = "<a href=\"" . $web_path . "/admin/modules.php?action=install_plugin&plugin=" . scrub_out($plugin_name) . "\">" . - _('Activate') . "</a>"; + T_('Activate') . "</a>"; } else { $action = "<a href=\"" . $web_path . "/admin/modules.php?action=confirm_uninstall_plugin&plugin=" . scrub_out($plugin_name) . "\">" . - _('Deactivate') . "</a>"; + T_('Deactivate') . "</a>"; if ($installed_version < $plugin->_plugin->version) { $action .= ' <a href="' . $web_path . '/admin/modules.php?action=upgrade_plugin&plugin=' . - scrub_out($plugin_name) . '">' . _('Upgrade') . '</a>'; + scrub_out($plugin_name) . '">' . T_('Upgrade') . '</a>'; } } ?> @@ -70,14 +70,14 @@ foreach ($plugins as $plugin_name) { </tr> <?php } if (!count($plugins)) { ?> <tr class="<?php echo flip_class(); ?>"> - <td colspan="4"><span class="error"><?php echo _('No Records Found'); ?></span></td> + <td colspan="4"><span class="error"><?php echo T_('No Records Found'); ?></span></td> </tr> <?php } ?> <tr class="th-bottom"> - <th class="cel_name"><?php echo _('Name'); ?></th> - <th class="cel_description"><?php echo _('Description'); ?></th> - <th class="cel_version"><?php echo _('Version'); ?></th> - <th class="cel_action"><?php echo _('Action'); ?></th> + <th class="cel_name"><?php echo T_('Name'); ?></th> + <th class="cel_description"><?php echo T_('Description'); ?></th> + <th class="cel_version"><?php echo T_('Version'); ?></th> + <th class="cel_action"><?php echo T_('Action'); ?></th> </tr> </table> <br /> |