mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
Monstra MultiLanguage Development Init Commit
This commit is contained in:
@@ -224,7 +224,11 @@ class Monstra
|
||||
/**
|
||||
* Init I18n
|
||||
*/
|
||||
I18n::init(Option::get('language'));
|
||||
if (BACKEND) {
|
||||
I18n::init('admin', Option::get('language'));
|
||||
} else {
|
||||
I18n::init('site', Site::getCurrentSiteLocale());
|
||||
}
|
||||
|
||||
/**
|
||||
* Init Plugins API
|
||||
@@ -235,7 +239,7 @@ class Monstra
|
||||
* Init Notification service
|
||||
*/
|
||||
Notification::init();
|
||||
|
||||
|
||||
/**
|
||||
* Init site module
|
||||
*/
|
||||
@@ -315,6 +319,7 @@ class Monstra
|
||||
if (count($namespaces = Dir::scan(CACHE)) > 0) foreach ($namespaces as $namespace) Dir::delete(CACHE . DS . $namespace);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Initialize Monstra Engine
|
||||
*
|
||||
|
Reference in New Issue
Block a user