]> git.p6c8.net - jirafeau_project.git/commitdiff
lib/lang: make translation file names have a better pattern
authorJerome Jutteau <mojo@couak.net>
Mon, 23 Mar 2015 17:28:22 +0000 (18:28 +0100)
committerJerome Jutteau <mojo@couak.net>
Mon, 23 Mar 2015 17:28:22 +0000 (18:28 +0100)
lib/lang.php
lib/lang/lang_fr.php [moved from lib/lang/fr.php with 100% similarity]

index 86ffd4d3b1117b118c67698e9ef114069176097c..89f890fd637ccdc6fd46a714f813084ed23005d1 100644 (file)
@@ -44,7 +44,7 @@ function t ($text)
     if ($found && strcmp ($l, "en"))\r
     {\r
         /* $tr is defined in this requirement. */\r
-        require (JIRAFEAU_ROOT . "lib/lang/$l.php");\r
+        require (JIRAFEAU_ROOT . "lib/lang/lang_$l.php");\r
 \r
         foreach ($tr as $o => $t)\r
             if (strcmp ($text, $o) == 0)\r
similarity index 100%
rename from lib/lang/fr.php
rename to lib/lang/lang_fr.php

patrick-canterino.de