diff options
Diffstat (limited to 'search_advanced.php')
| -rw-r--r-- | search_advanced.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/search_advanced.php b/search_advanced.php index b6e8bc3fd1..db26806d9c 100644 --- a/search_advanced.php +++ b/search_advanced.php @@ -110,15 +110,15 @@ echo '<script>'; opt = document.createElement('option'); opt.value=''; /* The translation strings use HTML entities, but javascript does not. See bug 687980 */ - opt.text='<?php echo html_entity_decode(WT_I18N::plural('±%d year','±%d years', 2, 2), ENT_COMPAT, 'UTF-8'); ?>'; + opt.text='<?php echo html_entity_decode(WT_I18N::plural('±%d year','±%d years', 2, 2), ENT_COMPAT, 'UTF-8'); ?>'; sel.appendChild(opt); opt = document.createElement('option'); opt.value='5'; - opt.text='<?php echo html_entity_decode(WT_I18N::plural('±%d year','±%d years', 5, 5), ENT_COMPAT, 'UTF-8'); ?>'; + opt.text='<?php echo html_entity_decode(WT_I18N::plural('±%d year','±%d years', 5, 5), ENT_COMPAT, 'UTF-8'); ?>'; sel.appendChild(opt); opt = document.createElement('option'); opt.value='10'; - opt.text='<?php echo html_entity_decode(WT_I18N::plural('±%d year','±%d years', 10, 10), ENT_COMPAT, 'UTF-8'); ?>'; + opt.text='<?php echo html_entity_decode(WT_I18N::plural('±%d year','±%d years', 10, 10), ENT_COMPAT, 'UTF-8'); ?>'; sel.appendChild(opt); var spc = document.createTextNode(' '); elm.appendChild(spc); @@ -166,9 +166,9 @@ echo '</script>'; ?> <select name="plusminus[<?php echo $i; ?>]"> <option value=""><?php echo WT_I18N::translate('Exact date'); ?></option> - <option value="2" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i]==2) echo " selected=\"selected\""; ?>><?php echo WT_I18N::plural('±%d year','±%d years', 2, 2); ?></option> - <option value="5" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i]==5) echo "selected=\"selected\""; ?>><?php echo WT_I18N::plural('±%d year','±%d years', 5, 5); ?></option> - <option value="10" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i]==10) echo "selected=\"selected\""; ?>><?php echo WT_I18N::plural('±%d year','±%d years', 10, 10); ?></option> + <option value="2" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i]==2) echo " selected=\"selected\""; ?>><?php echo WT_I18N::plural('±%d year','±%d years', 2, 2); ?></option> + <option value="5" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i]==5) echo "selected=\"selected\""; ?>><?php echo WT_I18N::plural('±%d year','±%d years', 5, 5); ?></option> + <option value="10" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i]==10) echo "selected=\"selected\""; ?>><?php echo WT_I18N::plural('±%d year','±%d years', 10, 10); ?></option> </select> <?php } ?> </td> |
