gnucash-htdocs beta: Use builtin setlocale.
John Ralls
jralls at code.gnucash.org
Wed Aug 11 19:14:33 EDT 2021
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/d60af2de (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/91f379cc (commit)
commit d60af2de473c8965299ac1b455af80a10699d624
Author: John Ralls <jralls at ceridwen.us>
Date: Wed Aug 11 16:14:14 2021 -0700
Use builtin setlocale.
diff --git a/lang.php b/lang.php
index 8c7058d..9b4fb2d 100644
--- a/lang.php
+++ b/lang.php
@@ -103,7 +103,7 @@ setcookie("lang_cookie", $locale);
require_once("externals/gettext.inc");
//putenv("LANG=$locale");
//putenv("LANGUAGE=$locale");
-$locale_res = T_setlocale(LC_ALL, $locale);
+$locale_res = setlocale(LC_ALL, $locale);
$domain = "gnucash-htdocs";
if (! isset($text_dir)) { $text_dir = $locale_dir; }
$dir_res = T_bindtextdomain($domain, $text_dir);
Summary of changes:
lang.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list