$i = DB_DataObject::Factory('I18n');
$i->ltype = 'l'; // string(1) not_null multiple_key
$i->lkey = $lang; // string(8) not_null
- if (!$i->count()) {
-
-
- $this->jerr('invalid lang configured: ' . $lang);
+ if (!$i->count()) {
+ $i = DB_DataObject::Factory('I18n');
+ $i->buildDb();
+ $i = DB_DataObject::Factory('I18n');
+ $i->ltype = 'l'; // string(1) not_null multiple_key
+ $i->lkey = $lang;
+ if (!$i->count()) {
+ $this->jerr('invalid lang configured: ' . $lang);
+ }
}