mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
js i18n: finish implementation with addition of the compiled locale strings file to additional javascripts
This commit is contained in:
parent
3f98522ff2
commit
67db0a878a
@ -1277,6 +1277,12 @@ function buildJavascript() {
|
||||
'uri' => addslashes((!empty($uri) ? $config['uri_stylesheets'] : '') . $uri));
|
||||
}
|
||||
|
||||
// Check if we have translation for the javascripts; if yes, we add it to additional javascripts
|
||||
list($pure_locale) = explode(".", $config['locale']);
|
||||
if (file_exists ($jsloc = "inc/locale/".$pure_locale."/LC_MESSAGES/javascript.js")) {
|
||||
array_unshift($config['additional_javascript'], $jsloc);
|
||||
}
|
||||
|
||||
$script = Element('main.js', array(
|
||||
'config' => $config,
|
||||
'stylesheets' => $stylesheets
|
||||
|
Loading…
Reference in New Issue
Block a user