SF Bug #2839213 - Few localization -related bugs

This commit is contained in:
Harri 2009-08-18 19:16:36 +10:00 committed by Deon George
parent 9f1a207eba
commit 0eaf3bb67b
2 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ class QueryRender extends PageRender {
echo '<td>'; echo '<td>';
echo '<select name="query">'; echo '<select name="query">';
if ($this->haveDefaultTemplate()) if ($this->haveDefaultTemplate())
printf('<option value="%s" %s>%s</option>','none','',('Custom Query')); printf('<option value="%s" %s>%s</option>','none','',_('Custom Query'));
foreach ($templates->getTemplates() as $template) foreach ($templates->getTemplates() as $template)
printf('<option value="%s" %s>%s</option>', printf('<option value="%s" %s>%s</option>',
@ -104,9 +104,9 @@ class QueryRender extends PageRender {
echo '<select name="format" style="width: 200px">'; echo '<select name="format" style="width: 200px">';
printf('<option value="list" %s>%s</option>', printf('<option value="list" %s>%s</option>',
$_SESSION[APPCONFIG]->getValue('search','display') == 'list' ? 'selected' : '',_('List')); $_SESSION[APPCONFIG]->getValue('search','display') == 'list' ? 'selected' : '',_('list'));
printf('<option value="table" %s>%s</option>', printf('<option value="table" %s>%s</option>',
$_SESSION[APPCONFIG]->getValue('search','display') == 'table' ? 'selected' : '',_('Table')); $_SESSION[APPCONFIG]->getValue('search','display') == 'table' ? 'selected' : '',_('table'));
echo '</select>'; echo '</select>';
echo '</td>'; echo '</td>';

View File

@ -807,7 +807,7 @@ class TemplateRender extends PageRender {
if ($this->template_id) { if ($this->template_id) {
$subtitle .= '<br />'; $subtitle .= '<br />';
$subtitle .= sprintf('%s: <b>%s</b>',('Template'),$this->template->getID() != 'none' ? $this->template->getTitle() : _('Default')); $subtitle .= sprintf('%s: <b>%s</b>',_('Template'),$this->template->getID() != 'none' ? $this->template->getTitle() : _('Default'));
if ($this->template->getName()) if ($this->template->getName())
$subtitle .= sprintf(' (<b>%s</b>)',$this->template->getName(false)); $subtitle .= sprintf(' (<b>%s</b>)',$this->template->getName(false));
} }
@ -821,7 +821,7 @@ class TemplateRender extends PageRender {
if ($this->template_id) { if ($this->template_id) {
$subtitle .= '<br />'; $subtitle .= '<br />';
$subtitle .= sprintf('%s: <b>%s</b>',('Template'),$this->template->getID() != 'none' ? $this->template->getTitle() : _('Default')); $subtitle .= sprintf('%s: <b>%s</b>',_('Template'),$this->template->getID() != 'none' ? $this->template->getTitle() : _('Default'));
if ($this->template->getName()) if ($this->template->getName())
$subtitle .= sprintf(' (<b>%s</b>)',$this->template->getName(false)); $subtitle .= sprintf(' (<b>%s</b>)',$this->template->getName(false));
} }