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_preference_box.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_preference_box.inc.php')
-rw-r--r-- | templates/show_preference_box.inc.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/templates/show_preference_box.inc.php b/templates/show_preference_box.inc.php index cd7b753c..6a8803a6 100644 --- a/templates/show_preference_box.inc.php +++ b/templates/show_preference_box.inc.php @@ -33,7 +33,7 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST $is_admin = true; } ?> -<h4><?php echo _($preferences['title']); ?></h4> +<h4><?php echo T_($preferences['title']); ?></h4> <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> <col id="col_preference" /> @@ -44,16 +44,16 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST <?php } ?> </colgroup> <tr class="th-top"> - <th class="cel_preference"><?php echo _('Preference'); ?></th> - <th class="cel_value"><?php echo _('Value'); ?></th> + <th class="cel_preference"><?php echo T_('Preference'); ?></th> + <th class="cel_value"><?php echo T_('Value'); ?></th> <?php if ($is_admin) { ?> - <th class="cel_applytoall"><?php echo _('Apply to All'); ?></th> - <th class="cel_level"><?php echo _('Access Level'); ?></th> + <th class="cel_applytoall"><?php echo T_('Apply to All'); ?></th> + <th class="cel_level"><?php echo T_('Access Level'); ?></th> <?php } ?> </tr> <?php foreach ($preferences['prefs'] as $pref) { ?> <tr class="<?php echo flip_class(); ?>"> - <td class="cel_preference"><?php echo _($pref['description']); ?></td> + <td class="cel_preference"><?php echo T_($pref['description']); ?></td> <td class="cel_value"> <?php create_preference_input($pref['name'], $pref['value']); ?> </td> @@ -62,11 +62,11 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST <td class="cel_level"> <?php $name = 'on_' . $pref['level']; ${$name} = 'selected="selected"'; ?> <select name="level_<?php echo $pref['name']; ?>"> - <option value="5" <?php echo $on_5; ?>><?php echo _('Guest'); ?></option> - <option value="25" <?php echo $on_25; ?>><?php echo _('User'); ?></option> - <option value="50" <?php echo $on_50; ?>><?php echo _('Content Manager'); ?></option> - <option value="75" <?php echo $on_75; ?>><?php echo _('Catalog Manager'); ?></option> - <option value="100" <?php echo $on_100; ?>><?php echo _('Admin'); ?></option> + <option value="5" <?php echo $on_5; ?>><?php echo T_('Guest'); ?></option> + <option value="25" <?php echo $on_25; ?>><?php echo T_('User'); ?></option> + <option value="50" <?php echo $on_50; ?>><?php echo T_('Content Manager'); ?></option> + <option value="75" <?php echo $on_75; ?>><?php echo T_('Catalog Manager'); ?></option> + <option value="100" <?php echo $on_100; ?>><?php echo T_('Admin'); ?></option> </select> <?php unset(${$name}); ?> </td> @@ -74,11 +74,11 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST </tr> <?php } // End foreach ($preferences['prefs'] as $pref) ?> <tr class="th-bottom"> - <th class="cel_preference"><?php echo _('Preference'); ?></th> - <th class="cel_value"><?php echo _('Value'); ?></th> + <th class="cel_preference"><?php echo T_('Preference'); ?></th> + <th class="cel_value"><?php echo T_('Value'); ?></th> <?php if ($is_admin) { ?> - <th class="cel_applytoall"><?php echo _('Apply to All'); ?></th> - <th class="cel_level"><?php echo _('Access Level'); ?></th> + <th class="cel_applytoall"><?php echo T_('Apply to All'); ?></th> + <th class="cel_level"><?php echo T_('Access Level'); ?></th> <?php } ?> </tr> </table> |