From: Jerome Jutteau Date: Mon, 23 Mar 2015 17:28:22 +0000 (+0100) Subject: lib/lang: make translation file names have a better pattern X-Git-Tag: 1.1~130 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/7061fbc7ccad9696d97f59ef34830f42bfd35b77?ds=sidebyside;hp=-c lib/lang: make translation file names have a better pattern --- 7061fbc7ccad9696d97f59ef34830f42bfd35b77 diff --git a/lib/lang.php b/lib/lang.php index 86ffd4d..89f890f 100644 --- a/lib/lang.php +++ b/lib/lang.php @@ -44,7 +44,7 @@ function t ($text) if ($found && strcmp ($l, "en")) { /* $tr is defined in this requirement. */ - require (JIRAFEAU_ROOT . "lib/lang/$l.php"); + require (JIRAFEAU_ROOT . "lib/lang/lang_$l.php"); foreach ($tr as $o => $t) if (strcmp ($text, $o) == 0) diff --git a/lib/lang/fr.php b/lib/lang/lang_fr.php similarity index 100% rename from lib/lang/fr.php rename to lib/lang/lang_fr.php