Пример #1
0
 public function __construct()
 {
     Ac::on("AC_Module_on_create_i18n", function () {
         Ac::setConfig("available_languages", array("en", "es", "de", "it"), "i18n");
     });
     parent::__construct('app');
 }
Пример #2
0
 public function __construct()
 {
     Ac::on("Ac_Router_before_resolve", array($this, "routerBeforeResolve"));
     parent::__construct('i18n', array('lang_in_urls' => true, 'default_language' => "en", "available_languages" => array('en')));
 }