projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3644909
)
error out if language is not available
author
Alan Knowles
<alan@roojs.com>
Mon, 11 Jan 2021 06:15:13 +0000
(14:15 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 11 Jan 2021 06:15:13 +0000
(14:15 +0800)
DataObjects/Core_template.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_template.php
b/DataObjects/Core_template.php
index
684d90a
..
fcc2ddd
100644
(file)
--- a/
DataObjects/Core_template.php
+++ b/
DataObjects/Core_template.php
@@
-415,7
+415,13
@@
WHERE (
}
putenv("LANGUAGE=$lang");
}
putenv("LANGUAGE=$lang");
- setlocale(LC_ALL, $lang);
+ if (!setlocale(LC_ALL, $lang)) {
+ if (!setlocale(LC_ALL, $lang.'UTF8')) {
+ $ff->page->jerr("Language is not available {$lang}");
+ }
+ }
+
+
$d = DB_DataObject::factory($this->tableName());
$d->whereAdd("
LOWER(
$d = DB_DataObject::factory($this->tableName());
$d->whereAdd("
LOWER(