X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/6165f1ef9bf8abf6d07caff88f14a36f368832c6..d496172554ae4ab0dac6e9d7a1e77eb8fd3749df:/lib/lang.php diff --git a/lib/lang.php b/lib/lang.php old mode 100755 new mode 100644 index b1265f8..89f890f --- a/lib/lang.php +++ b/lib/lang.php @@ -1,7 +1,7 @@ + * Copyright (C) 2015 Jerome Jutteau * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -23,7 +23,7 @@ 'fr' => 'Français'); /* Translation */ -function _ ($text) +function t ($text) { $cfg = $GLOBALS['cfg']; $languages_list = $GLOBALS['languages_list']; @@ -44,7 +44,7 @@ function _ ($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) @@ -54,4 +54,4 @@ function _ ($text) return ($text); } -?> \ No newline at end of file +?>