diff options
author | plegall <plg@piwigo.org> | 2014-09-11 07:56:57 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2014-09-11 07:56:57 +0000 |
commit | f14dcf0f7bd8db1b358562810302c4570251c420 (patch) | |
tree | 8fbc404cb978d49b79d106a39be4aaa79413b07e /plugins/TakeATour/main.inc.php | |
parent | be35b776bc0eefde5d114f613921cd8786900d70 (diff) |
dispatch language keys in tour_* files (1 tour = 1 language file)
git-svn-id: http://piwigo.org/svn/trunk@29475 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/TakeATour/main.inc.php')
-rw-r--r-- | plugins/TakeATour/main.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/TakeATour/main.inc.php b/plugins/TakeATour/main.inc.php index c0d2a00fd..216aea9a7 100644 --- a/plugins/TakeATour/main.inc.php +++ b/plugins/TakeATour/main.inc.php @@ -45,6 +45,9 @@ function TAT_tour_setup() global $template, $TAT_restart, $conf;
$tour_to_launch=pwg_get_session_var('tour_to_launch');
load_language('plugin.lang', PHPWG_PLUGINS_PATH .'TakeATour/', array('force_fallback'=>'en_UK'));
+
+ list(, $tour_name) = explode('/', $tour_to_launch);
+ load_language('tour_'.$tour_name.'.lang', PHPWG_PLUGINS_PATH .'TakeATour/', array('force_fallback'=>'en_UK'));
$template->set_filename('TAT_js_css', PHPWG_PLUGINS_PATH.'TakeATour/tpl/js_css.tpl');
$template->assign('ADMIN_THEME', $conf['admin_theme']);
|