0.3.0 inital import
[mailer.git] / inc / language.php
1 <?php
2 /**
3  * Try to initializes the language system
4  */
5 try {
6         $lang = LanguageSystem::createLanguageSystem(sprintf("%s%s",
7                 PATH,
8                 FrameworkConfiguration::getInstance()->readConfig("lang_base_path")
9         ));
10 } catch (LanguagePathIsEmptyException $e) {
11         ApplicationEntryPoint::app_die(sprintf("[Main:] Sprachsystem konnte nicht initialisiert werden. Reason: <strong>%s</strong>",
12                 $e->getMessage()
13         ));
14 } catch (InvalidLanguagePathStringException $e) {
15         ApplicationEntryPoint::app_die(sprintf("[Main:] Sprachsystem konnte nicht initialisiert werden. Reason: <strong>%s</strong>",
16                 $e->getMessage()
17         ));
18 } catch (LanguagePathIsNoDirectoryException $e) {
19         ApplicationEntryPoint::app_die(sprintf("[Main:] Sprachsystem konnte nicht initialisiert werden. Reason: <strong>%s</strong>",
20                 $e->getMessage()
21         ));
22 } catch (LanguagePathReadProtectedException $e) {
23         ApplicationEntryPoint::app_die(sprintf("[Main:] Sprachsystem konnte nicht initialisiert werden. Reason: <strong>%s</strong>",
24                 $e->getMessage()
25         ));
26 }
27
28 // [EOF]
29 ?>