Translator is not set on tests
*/
public function updateEnv()
{
+ global $translator;
+
setlocale(LC_ALL, $this->getLongID());
if (
textdomain($domain);
bind_textdomain_codeset($domain, 'UTF-8');
}
+ if ($translator) {
+ $translator->setLocale($this->getLongID());
+ }
}
/**
}
}
- /**
- * Retrieve fields from database
- *
- * @deprecated Do not seem to be used as of 2013-07-16
- *
- * @return array
- */
- public static function getDbFields()
- {
- global $zdb;
- $columns = $zdb->getColumns(self::TABLE);
- $fields = array();
- foreach ($columns as $col) {
- $fields[] = $col->getName();
- }
- return $fields;
- }
-
/**
* Initialize texts at install time
*