/** * Define all locales which in which a new translation is allowed. * Checked in {@link canTranslate()}. * * @param array List of allowed locale codes (see {@link i18n::$all_locales}). * Example: array('de_DE','ja_JP') */ static function set_allowed_locales($locales) { self::$allowed_locales = $locales; }