diff options
| author | 2017-10-08 19:05:19 +0200 | |
|---|---|---|
| committer | 2017-10-10 06:46:25 +0200 | |
| commit | ac60e35f6a6849f2dc13b3644d94fae59d83db77 (patch) | |
| tree | d740d152002778251f9f6e70af4c56dd6d9c7315 /app/layout | |
| parent | 863ce029dde483e201ee3177db02bae93d2b62e0 (diff) | |
Improve translation tools
I was not happy with the previous version. I refactored everything to make it reusable.
It allows me do do more verifications and to build a tool to handle the files themselves.
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/nav_menu.phtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 04ee03cd6..2bc693e5d 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -186,16 +186,16 @@ if (FreshRSS_Context::$order === 'DESC') { $order = 'ASC'; $icon = 'up'; - $title = 'index.menu.older_first'; + $title = _t('index.menu.older_first'); } else { $order = 'DESC'; $icon = 'down'; - $title = 'index.menu.newer_first'; + $title = _t('index.menu.newer_first'); } $url_order = Minz_Request::currentRequest(); $url_order['params']['order'] = $order; ?> - <a id="toggle-order" class="btn" href="<?php echo Minz_Url::display($url_order); ?>" title="<?php echo _t($title); ?>"> + <a id="toggle-order" class="btn" href="<?php echo Minz_Url::display($url_order); ?>" title="<?php echo $title; ?>"> <?php echo _i($icon); ?> </a> |
