-try {
- $lang = LanguageSystem::createLanguageSystem(
- $cfg->readConfig('base_path').
- FrameworkConfiguration::getInstance()->readConfig('lang_base_path')
- );
-} catch (LanguagePathIsEmptyException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
- $e->getMessage()
- ));
-} catch (InvalidLanguagePathStringException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
- $e->getMessage()
- ));
-} catch (LanguagePathIsNoDirectoryException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
- $e->getMessage()
- ));
-} catch (LanguagePathReadProtectedException $e) {
- ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
- $e->getMessage()
- ));
-}
+
+// Try to instance the language system
+$lang = LanguageSystem::createLanguageSystem(
+ $cfg->readConfig('base_path').
+ FrameworkConfiguration::getInstance()->readConfig('lang_base_path')
+);