diff options
author | Loui Chang <louipc.ist@gmail.com> | 2010-08-20 05:27:54 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2010-08-20 05:27:54 +0200 |
commit | cbf6349e6bd6179bea8200ddc2a4ac38ac37125c (patch) | |
tree | a928475d4d7113142809f640ce4f4bd84203706a /web/template | |
parent | e89db8745eb19372439554b497bf3fa4761f5524 (diff) | |
download | aur-cbf6349e6bd6179bea8200ddc2a4ac38ac37125c.tar.gz aur-cbf6349e6bd6179bea8200ddc2a4ac38ac37125c.tar.xz |
pkg_search_form: Properly call translation function to translate strings.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_search_form.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 9a82713e..c616c7b4 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -39,13 +39,13 @@ <label><?php print __("Search by"); ?></label> <select name='SeB'> <?php - $searchby = array('nd' => 'Name & Desc', 'n' => 'Name Only', 'm' => 'Maintainer', 's' => 'Submitter'); + $searchby = array('nd' => __('Name, Description'), 'n' => __('Name Only'), 'm' => __('Maintainer'), 's' => __('Submitter')); foreach ($searchby as $k => $v): if ($_REQUEST['SeB'] == $k): ?> - <option value="<?php print $k; ?>" selected="selected"><?php print __($v); ?></option> + <option value="<?php print $k; ?>" selected="selected"><?php print $v; ?></option> <?php else: ?> - <option value="<?php print $k; ?>"><?php print __($v); ?></option> + <option value="<?php print $k; ?>"><?php print $v; ?></option> <?php endif; endforeach; @@ -56,13 +56,13 @@ <label><?php print __("Sort by"); ?></label> <select name='SB'> <?php - $sortby = array('n' => 'Name', 'c' => 'Category', 'l' => 'Location', 'v' => 'Votes', 'w' => 'Voted', 'o' => 'Notify', 'm' => 'Maintainer', 'a' => 'Age'); + $sortby = array('n' => __('Name'), 'c' => __('Category'), 'l' => __('Location'), 'v' => __('Votes'), 'w' => __('Voted'), 'o' => __('Notify'), 'm' => __('Maintainer'), 'a' => __('Age')); foreach ($sortby as $k => $v): if ($_REQUEST['SB'] == $k): ?> - <option value='<?php print $k; ?>' selected="selected"><?php print __($v); ?></option> + <option value='<?php print $k; ?>' selected="selected"><?php print $v; ?></option> <?php else: ?> - <option value='<?php print $k; ?>'><?php print __($v); ?></option> + <option value='<?php print $k; ?>'><?php print $v; ?></option> <?php endif; endforeach; @@ -73,13 +73,13 @@ <label><?php print __("Sort order"); ?></label> <select name='SO'> <?php - $orderby = array('a' => 'Ascending', 'd' => 'Descending'); + $orderby = array('a' => __('Ascending'), 'd' => __('Descending')); foreach ($orderby as $k => $v): if ($_REQUEST['SO'] == $k): ?> - <option value='<?php print $k; ?>' selected="selected"><?php print __($v); ?></option> + <option value='<?php print $k; ?>' selected="selected"><?php print $v; ?></option> <?php else: ?> - <option value='<?php print $k; ?>'><?php print __($v); ?></option> + <option value='<?php print $k; ?>'><?php print $v; ?></option> <?php endif; endforeach; |