projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac2c660
)
DataObjects/Core_templatestr.php
author
Alan Knowles
<alan@roojs.com>
Wed, 9 Dec 2020 04:31:10 +0000
(12:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 9 Dec 2020 04:31:10 +0000
(12:31 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
33b250e
..
1ff4004
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-131,6
+131,8
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
$x = DB_Dataobject::Factory($this->tableName());
$x->selectAdd();
$x->selectAdd('distinct(lang) as lang');
+
+ $x->selectAdd("i18n_translate('l', lang, 'en') as lang_name");
$x->whereAdd("lang != ''");
$ret= array();
foreach( $x->fetchAll('lang') as $l) {