We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 966877b commit 21282fdCopy full SHA for 21282fd
public/main/install/index.php
@@ -90,6 +90,13 @@
90
// Set translation
91
$translator = new Translator($installationLanguage);
92
$translator->addLoader('po', new PoFileLoader());
93
+
94
+$langResourceFile = api_get_path(SYMFONY_SYS_PATH).'translations/messages.'.(explode('_', $installationLanguage, 2)[0]).'.po';
95
96
+if (file_exists($langResourceFile)) {
97
+ $translator->addResource('po', $langResourceFile, $installationLanguage);
98
+}
99
100
Container::$translator = $translator;
101
102
// The function api_get_setting() might be called within the installation scripts.
0 commit comments