Skip to content
Permalink
Browse files

force load of English, even on home page (and do not load it if the u…

…ser is already in English)
  • Loading branch information
plegall committed Nov 29, 2019
1 parent 9013091 commit 85fb1c1d8252ea8e1c9fe938b04957df9cfa43d3
Showing with 8 additions and 1 deletion.
  1. +8 −1 main.inc.php
@@ -246,7 +246,10 @@ function porg_load_content()
$template->set_filenames(array('porg_page' => realpath($tpl_file)));
/* Load en_UK translation */
load_language($porg_file . '.lang', PORG_PATH, array('language' => 'en_UK', 'no_fallback' => true));
if ('en_UK' != $user['language'])
{
load_language($porg_file . '.lang', PORG_PATH, array('language' => 'en_UK', 'no_fallback' => true));
}
/* Load user language translation */
load_language($porg_file . '.lang', PORG_PATH);
@@ -262,6 +265,10 @@ function porg_load_content()
}
else
{
if ('en_UK' != $user['language'])
{
load_language('home.lang', PORG_PATH, array('language' => 'en_UK', 'no_fallback' => true));
}
load_language('home.lang', PORG_PATH);
$template->set_filenames(array('porg_page' => realpath(PORG_PATH . 'template/' . 'home.tpl')));
$meta_title = porg_get_page_title('home');

0 comments on commit 85fb1c1

Please sign in to comment.
You can’t perform that action at this time.