From: Alan Knowles Date: Thu, 15 Sep 2011 03:19:37 +0000 (+0800) Subject: DataObjects/I18n.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=102db3ba974a4ab82f3de6c86e559c6e7c7ba004;p=Pman.Core DataObjects/I18n.php --- diff --git a/DataObjects/I18n.php b/DataObjects/I18n.php index 40a53553..ed27c82c 100644 --- a/DataObjects/I18n.php +++ b/DataObjects/I18n.php @@ -24,8 +24,14 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject { //DB_DataObject::debugLevel(1); - if (!empty($q['query']['empty_etype'])) { - $this->whereAdd("etype = ''"); + if (!empty($q['query']['_with_en'])) { + $this->selectAdd("" + i18n_translate(ltype, lkey, 'en') as lval_en + + ") + + + } } }