aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Languages.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/Languages.php')
-rw-r--r--application/Languages.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/Languages.php b/application/Languages.php
index 8d0e13c8..60e91631 100644
--- a/application/Languages.php
+++ b/application/Languages.php
@@ -41,7 +41,7 @@ class Languages
41 /** 41 /**
42 * Core translations domain 42 * Core translations domain
43 */ 43 */
44 const DEFAULT_DOMAIN = 'shaarli'; 44 public const DEFAULT_DOMAIN = 'shaarli';
45 45
46 /** 46 /**
47 * @var TranslatorInterface 47 * @var TranslatorInterface
@@ -122,7 +122,9 @@ class Languages
122 $translations = new Translations(); 122 $translations = new Translations();
123 // Core translations 123 // Core translations
124 try { 124 try {
125 $translations = $translations->addFromPoFile('inc/languages/' . $this->language . '/LC_MESSAGES/shaarli.po'); 125 $translations = $translations->addFromPoFile(
126 'inc/languages/' . $this->language . '/LC_MESSAGES/shaarli.po'
127 );
126 $translations->setDomain('shaarli'); 128 $translations->setDomain('shaarli');
127 $this->translator->loadTranslations($translations); 129 $this->translator->loadTranslations($translations);
128 } catch (\InvalidArgumentException $e) { 130 } catch (\InvalidArgumentException $e) {