Skip to content
Snippets Groups Projects
Commit 1d540afe authored by Jaime Perez Crespo's avatar Jaime Perez Crespo Committed by Hanne Moa
Browse files

Fix build.

parent 4f678fe8
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,8 @@ class Localization ...@@ -77,7 +77,8 @@ class Localization
* @param string $domain Name of domain * @param string $domain Name of domain
*/ */
private function loadGettextGettextFromPO($domain = self::DEFAULT_DOMAIN) { private function loadGettextGettextFromPO($domain = self::DEFAULT_DOMAIN) {
$langcode = explode('_', $this->langcode)[0]; $langcode = explode('_', $this->langcode);
$langcode = $langcode[0];
$localeDir = $this->localeDomainMap[$domain]; $localeDir = $this->localeDomainMap[$domain];
$poPath = $localeDir.'/'.$langcode.'/LC_MESSAGES/'.$domain.'.po'; $poPath = $localeDir.'/'.$langcode.'/LC_MESSAGES/'.$domain.'.po';
$translations = Translations::fromPoFile($poPath); $translations = Translations::fromPoFile($poPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment