Translations to english and debug messages removed
[shipsimu.git] / tests / old / personell-test.php
index 4fc139b2525de5c1cc6f81f619ddddd3b9d7a6a2..8ac3b71d23e74bf0465498e173f4fe6009246a95 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')) {
-       echo sprintf("Das Personal-Objekt sieht wie folgt aus:<br />
+       echo 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')) {
-       echo sprintf("Das Personal-Objekt sieht wie folgt aus:<br />
+       echo 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()
        ));
 }