diff options
| author | 2015-01-06 21:10:51 +0100 | |
|---|---|---|
| committer | 2015-01-06 21:10:51 +0100 | |
| commit | addcea9cd45a87f2ae56f879bad86425efc16fba (patch) | |
| tree | 2ee5d9b04e7ff01ae632a5f7747022bd0cc2ac09 /app/views/configure | |
| parent | 5f9672111f86c693d843138c00934a6c3eeede45 (diff) | |
Fix i18n loading and availableLanguages calls
- Change the way to init i18n
- Add a availableLanguages() method to Minz_Translate
See https://github.com/FreshRSS/FreshRSS/issues/730
Diffstat (limited to 'app/views/configure')
| -rw-r--r-- | app/views/configure/display.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index b68bf925b..36a075ea7 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -10,7 +10,7 @@ <label class="group-name" for="language"><?php echo _t('conf.display.language'); ?></label> <div class="group-controls"> <select name="language" id="language"> - <?php $languages = FreshRSS_Context::$user_conf->availableLanguages(); ?> + <?php $languages = Minz_Translate::availableLanguages(); ?> <?php foreach ($languages as $short => $lib) { ?> <option value="<?php echo $short; ?>"<?php echo FreshRSS_Context::$user_conf->language === $short ? ' selected="selected"' : ''; ?>><?php echo $lib; ?></option> <?php } ?> |
