aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/langs.inc.php b/langs.inc.php
index 5a358587e..f1b154b3c 100644
--- a/langs.inc.php
+++ b/langs.inc.php
@@ -451,12 +451,15 @@ function _lang_load($locale, $domain) { return i18n::_lang_load($locale, $domain
*/
function read_translation_file($locale, $name_of_translation)
{
- if($locale == 'en') {
- $filename = $name_of_translation . '.pot';
+ if($name_of_translation == '../_nav/langs/en') {
+ $path_filename = '/_nav/langs/' . $locale . '.po';
} else {
- $filename = $name_of_translation . '.po';
+ $path_filename = '/langs/' . $locale . '/' . $name_of_translation . '.po';
+ }
+ if($locale == 'en') {
+ $path_filename .= 't';
}
- return phpmo_parse_po_file(G_APP_ROOT . '/langs/' . $locale . '/' . $filename);
+ return phpmo_parse_po_file(G_APP_ROOT . $path_filename);
}
/**