Kaynağa Gözat

Fix translation bug

A path registered after initialization must be loaded.
Marien Fressinaud 11 yıl önce
ebeveyn
işleme
b23fc3187c
3 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 1 0
      app/i18n/en/admin.php
  2. 1 0
      app/i18n/fr/admin.php
  3. 1 0
      lib/Minz/Translate.php

+ 1 - 0
app/i18n/en/admin.php

@@ -104,6 +104,7 @@ return array(
 	),
 	'extensions' => array(
 		'empty_list' => 'There is no installed extension',
+		'no_configure_view' => 'This extension cannot be configured.',
 		'system' => 'System extension (you have no rights on it)',
 		'title' => 'Extensions',
 	),

+ 1 - 0
app/i18n/fr/admin.php

@@ -104,6 +104,7 @@ return array(
 	),
 	'extensions' => array(
 		'empty_list' => 'Il n’y a aucune extension installée.',
+		'no_configure_view' => 'Cette extension ne peut pas être configurée.',
 		'system' => 'Extension système (vous n’avez aucun droit dessus)',
 		'title' => 'Extensions',
 	),

+ 1 - 0
lib/Minz/Translate.php

@@ -85,6 +85,7 @@ class Minz_Translate {
 		}
 
 		self::$path_list[] = $path;
+		self::loadLang($path);
 	}
 
 	/**