diff options
| author | 2017-10-08 19:05:19 +0200 | |
|---|---|---|
| committer | 2017-10-10 06:46:25 +0200 | |
| commit | ac60e35f6a6849f2dc13b3644d94fae59d83db77 (patch) | |
| tree | d740d152002778251f9f6e70af4c56dd6d9c7315 /app | |
| 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')
| -rw-r--r-- | app/layout/nav_menu.phtml | 6 | ||||
| -rw-r--r-- | app/views/configure/system.phtml | 2 |
2 files changed, 4 insertions, 4 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> diff --git a/app/views/configure/system.phtml b/app/views/configure/system.phtml index 935b49fda..37b68c991 100644 --- a/app/views/configure/system.phtml +++ b/app/views/configure/system.phtml @@ -33,7 +33,7 @@ <div class="group-controls"> <?php $number = count(listUsers()); - echo _t($number > 1 ? 'admin.user.numbers' : 'admin.user.number', $number); + echo ($number > 1 ? _t('admin.user.numbers', $number) : _t('admin.user.number', $number)); ?> </div> </div> |
