language.php

Go to the documentation of this file.
00001 <?php
00023 try {
00024         $lang = LanguageSystem::createLanguageSystem(sprintf("%s%s",
00025                 $cfg->readConfig('base_path'),
00026                 FrameworkConfiguration::getInstance()->readConfig('lang_base_path')
00027         ));
00028 } catch (LanguagePathIsEmptyException $e) {
00029         ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
00030                 $e->getMessage()
00031         ));
00032 } catch (InvalidLanguagePathStringException $e) {
00033         ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
00034                 $e->getMessage()
00035         ));
00036 } catch (LanguagePathIsNoDirectoryException $e) {
00037         ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
00038                 $e->getMessage()
00039         ));
00040 } catch (LanguagePathReadProtectedException $e) {
00041         ApplicationEntryPoint::app_die(sprintf("[Main:] The language sub-system could not be initialized for the following reason: <span class=\"exception_reason\">%s</span>",
00042                 $e->getMessage()
00043         ));
00044 }
00045 
00046 // Is the app variable there and valid?
00047 if (is_object($app)) $app->setLanguageInstance($lang);
00048 
00049 // [EOF]
00050 ?>

Generated on Mon Dec 8 01:06:46 2008 for Ship-Simulator by  doxygen 1.5.6