Translations to english and debug messages removed
[shipsimu.git] / tests / old / loader-test.php
index 130f696123d48b65421521f869334689e7f1030b..0f415eec40935ee26b2aaeef9220e6024bb488d6 100644 (file)
@@ -32,70 +32,70 @@ require(PATH . "application/ship-simu/loader.php");
 try {
        $personell = SimulatorPersonell::createSimulatorPersonellByID("SimulatorPersonell@829292aeca3f6bf78c16e25fc4f75c98");
 } catch (InvalidIDFormatException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidArrayCountException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (NullPointerException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (NoObjectException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (MissingMethodException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (FileIsEmptyException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (FilePointerNotOpenedException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidArrayCountException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidMD5ChecksumException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidDataLengthException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidSimulatorIDException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (MismatchingCompressorsException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (ContainerItemIsNullException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (ContainerItemIsNoArrayException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (ContainerMaybeDamagedException $e) {
-       die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Could  not create personal list for follwing reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 }
 
 // Personal-Objekt debuggen
 if (defined('DEBUG_PERSONELL_OBJ')) {
-       DebugMiddleware::getInstance()->output(sprintf("Das Personal-Objekt sieht wie folgt aus:<br />
+       DebugMiddleware::getInstance()->output(sprintf("The personal object looks like this:<br />
 <pre>%s</pre>\n",
                print_r($personell, true)
        ));
@@ -108,22 +108,22 @@ exit();
 try {
        $personell = SimulatorPersonell::createSimulatorPersonell(20);
 } catch (NullPointerException $e) {
-       die(sprintf("[Main:] Personenliste nicht angelegt. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Personal list not created for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (NoObjectException $e) {
-       die(sprintf("[Main:] Personenliste nicht angelegt. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Personal list not created for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (MissingMethodException $e) {
-       die(sprintf("[Main:] Personenliste nicht angelegt. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Personal list not created for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 }
 
 // Personal-Objekt debuggen
 if (defined('DEBUG_PERSONELL_OBJ')) {
-       DebugMiddleware::getInstance()->output(sprintf("Das Personal-Objekt sieht wie folgt aus:<br />
+       DebugMiddleware::getInstance()->output(sprintf("The personal object looks like this:<br />
 <pre>%s</pre>\n",
                print_r($personell, true)
        ));
@@ -133,35 +133,35 @@ if (defined('DEBUG_PERSONELL_OBJ')) {
 try {
        $personell->saveObjectToDatabase();
 } catch (NullPointerException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (NoObjectException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidObjectException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (MissingMethodException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (UnsupportedLimitationPartException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (GetterNotFoundException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (NoArrayCreatedException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 } catch (InvalidArrayCountException $e) {
-       die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
+       die(sprintf("[Main:] Object not saved for following reason: <strong>%s</strong><br />\n",
                $e->getMessage()
        ));
 }