]> wagnertech.de Git - timetracker.git/commitdiff
Localized xml parsing error string.
authorNik Okuntseff <support@anuko.com>
Sat, 10 Nov 2018 12:12:17 +0000 (12:12 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 10 Nov 2018 12:12:17 +0000 (12:12 +0000)
32 files changed:
WEB-INF/lib/ttOrgImportHelper.class.php
WEB-INF/resources/ca.lang.php
WEB-INF/resources/cs.lang.php
WEB-INF/resources/da.lang.php
WEB-INF/resources/de.lang.php
WEB-INF/resources/en.lang.php
WEB-INF/resources/es.lang.php
WEB-INF/resources/et.lang.php
WEB-INF/resources/fa.lang.php
WEB-INF/resources/fi.lang.php
WEB-INF/resources/fr.lang.php
WEB-INF/resources/gr.lang.php
WEB-INF/resources/he.lang.php
WEB-INF/resources/hu.lang.php
WEB-INF/resources/it.lang.php
WEB-INF/resources/ja.lang.php
WEB-INF/resources/ko.lang.php
WEB-INF/resources/nl.lang.php
WEB-INF/resources/no.lang.php
WEB-INF/resources/pl.lang.php
WEB-INF/resources/pt-br.lang.php
WEB-INF/resources/pt.lang.php
WEB-INF/resources/ro.lang.php
WEB-INF/resources/ru.lang.php
WEB-INF/resources/sk.lang.php
WEB-INF/resources/sl.lang.php
WEB-INF/resources/sr.lang.php
WEB-INF/resources/sv.lang.php
WEB-INF/resources/tr.lang.php
WEB-INF/resources/zh-cn.lang.php
WEB-INF/resources/zh-tw.lang.php
WEB-INF/templates/footer.tpl

index 015579c00b349b387b8ad820b0825af13362dc27..57f2210820df43132443812cde1ce844094c91c2 100644 (file)
@@ -171,9 +171,9 @@ class ttOrgImportHelper {
     $file = fopen($filename, 'r');
     while ($data = fread($file, 4096)) {
       if (!xml_parse($parser, $data, feof($file))) {
-        $this->errors->add(sprintf("XML error: %s at line %d",
-          xml_error_string(xml_get_error_code($parser)),
-          xml_get_current_line_number($parser)));
+        $this->errors->add(sprintf($i18n->get('error.xml'),
+          xml_get_current_line_number($parser),
+          xml_error_string(xml_get_error_code($parser))));
       }
     }
     if ($this->conflicting_entities) {
@@ -199,9 +199,9 @@ class ttOrgImportHelper {
     $file = fopen($filename, 'r');
     while ($data = fread($file, 4096)) {
       if (!xml_parse($parser, $data, feof($file))) {
-        $this->errors->add(sprintf("XML error: %s at line %d",
-          xml_error_string(xml_get_error_code($parser)),
-          xml_get_current_line_number($parser)));
+        $this->errors->add(sprintf($i18n->get('error.xml'),
+          xml_get_current_line_number($parser),
+          xml_error_string(xml_get_error_code($parser))));
       }
     }
     xml_parser_free($parser);
index 2a74077ead8881fb9a645ace83448aed4435e8c9..5bfd796e91a02d953e87a8d591886cebc5e5d127 100644 (file)
@@ -116,6 +116,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 4d593749497b7392ff6ce4905607130ef79d0d00..d407dccf6895274c754e9492cf11888a0e090a0e 100644 (file)
@@ -118,6 +118,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 914bba6d99524f1f39b413e5e655631c54d5c7a4..f475e06f11edf84491e69a944e0da6904a9b7af2 100644 (file)
@@ -109,6 +109,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Tidsinterval overlapper eksisterende poster.',
 'error.future_date' => 'Datoen er ud i fremtiden.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 9e118e4ac302e1026afc79302ff06bbd006a164a..ea58b9a4e6279c13e3e9d659d7acc37a2eceae9b 100644 (file)
@@ -102,6 +102,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Der Zeitinterval überschneidet sich mit vorhandenen Einträgen.',
 'error.future_date' => 'Datum ist in der Zukunft.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 16f61f22a1e1f914af3974cd4a2642a6da981801..82059051e957fa89d0f6926ea5df79e528d17e58 100644 (file)
@@ -100,6 +100,7 @@ $i18n_key_words = array(
 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 'error.overlap' => 'Time interval overlaps with existing records.',
 'error.future_date' => 'Date is in future.',
+'error.xml' => 'Error in XML file at line %d: %s.',
 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 2ee7de8c30333cc84c753f1ddcb81a87f6ab712f..740be1230633c0bcffd63b53eaef8c3c62623764 100644 (file)
@@ -114,6 +114,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 86cde2a337f3fc702e24768e5acfbb7c86e5b1c3..b9f784f73e623fa4dc11f7a058ee899faff359ff 100644 (file)
@@ -119,6 +119,7 @@ $i18n_key_words = array(
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 55625a8832bda0b1278120448ca283f54253887c..e6d54ee9359105bf1b5a94a8f78a1208db26f0a3 100644 (file)
@@ -116,6 +116,7 @@ $i18n_key_words = array(
 'error.overlap' => 'بازه زمانی با سوابق موجود هم پوشانی دارد.',
 // TODO: translate the following.
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 36b4d0bd3195138005f0978f44926215b09bf281..316b3f8f9208b5845f3838b320376586759b7a6f 100644 (file)
@@ -111,6 +111,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Aikavälillä on päällekkäisiä syötteitä.',
 'error.future_date' => 'Aika on tulevaisuudessa.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 6290479f21210178a6d2baa48e993459438d0416..529fc2da0503555366e6c0745128522f4aa98378 100644 (file)
@@ -109,6 +109,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Les heures des projets ne peuvent se chevaucher.',
 'error.future_date' => 'Date ultérieure.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index f2de6f5199583ee6d91f504595efd3869342a4c7..2b523141b30053451d682926009c608dad3aeb5b 100644 (file)
@@ -103,6 +103,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Το χρονικό διάστημα επικαλύπτει υπάρχουσες καταχωρήσεις.',
 'error.future_date' => 'Η ημερομηνία είναι στο μέλλον.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 66cbea766ab6fae93a5318af906d021444c9b9e1..878e5ba9da9bae5c94833f9c22dc79aac145b873 100644 (file)
@@ -126,6 +126,7 @@ $i18n_key_words = array(
 'error.overlap' => 'טווח הזמן מתנגש עם רישומים קיימים.',
 // TODO: translate the following.
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index b740fe3564f70a57ccb46cccc300c33c1c7bf7f8..f98dffa133183941d2b5251ccf408d9015041e87 100644 (file)
@@ -115,6 +115,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 5d0600aa13ab8b9a62d6b7940994134dcf09481b..07ed67c568ae5196aeb19bbee40c3d8c10fdeba9 100644 (file)
@@ -107,6 +107,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Intervallo temporale sovrapposto a voci esistenti.',
 'error.future_date' => 'La data è nel futuro.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 6149e7c4bc1311274e6d07262fff8d26d05363de..0d077507c9af4a834586353bff1dc7de8e2d85c8 100644 (file)
@@ -120,6 +120,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index fa41f2ca0fc71dbfeb0258f737f42c8b7b81a8d8..0bc21ee8a454e629399718454c8db0071497bfb8 100644 (file)
@@ -119,6 +119,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 8c4a5244c5c5f9ed36b2410d62606c56e1cbde06..02e0ab3268242ce6084c70c9f44c24cf671fd663 100644 (file)
@@ -100,6 +100,7 @@ $i18n_key_words = array(
 'error.overlap' => 'De huidige registratie overlapt een reeds bestaande registratie.',
 'error.future_date' => 'Datum ligt in de toekomst.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 044a6f33872cf55aa269133f3875958139546ad5..c7f0fe2548e3332ec00dd1255b8653e04e34db3c 100644 (file)
@@ -120,6 +120,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index c94ae1c95bff06ab2dc16cd714714423052eab24..ffc6d37bbbcb518998f91703bf0b0fb8738a13b1 100644 (file)
@@ -113,6 +113,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Okres czasowy nakłada się z istniejącymi wpisami.',
 'error.future_date' => 'Data jest w przyszłości.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons
index f40b5f0175b5b0ca7c05b34cb609459dc77d0ff9..9b5bf7594219bbdcd8d32e2a1778cb5f1f71fd6e 100644 (file)
@@ -110,6 +110,7 @@ $i18n_key_words = array(
 'error.overlap' => 'O intervalo se sobrepõe com entradas já existentes.',
 'error.future_date' => 'Data é no futuro.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 4f7d748b9bedf65dc0afde759179717f4aef187f..e2e95a8a721b6f2ade9fc578344b336eb54f55a2 100644 (file)
@@ -112,6 +112,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 82d5d3e6aa58ceb2cc561ca89e669b69ed2923c1..6840977e62279a8809cd5ed3b778410669297f84 100644 (file)
@@ -120,6 +120,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 3974d16734228cbec48a47d0af14e1bad89f403a..3354eaaaebddd3f0aab00a0ae8f996b1218f0366 100644 (file)
@@ -99,6 +99,7 @@ $i18n_key_words = array(
 'error.goto_uncompleted' => 'Посмотреть неоконченную запись.',
 'error.overlap' => 'Интервал времени перекрывается с существующими записями.',
 'error.future_date' => 'Дата в будущем.',
+'error.xml' => 'Ошибка в файле XML на строке %d: %s.',
 'error.cannot_import' => 'Невозможно импортировать: %s.',
 
 // Labels for buttons.
index cfca9b0a81b9f620cc7a882ebfc8271fd42a4c34..18fa470d1dbef474235ca64700d7ee116932e790 100644 (file)
@@ -115,6 +115,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index e07b2089879b97d9e63643af5fdc5f774df8541b..7f09aac45a41b1e41c0ca153f49e7a2dcf5d374f 100644 (file)
@@ -109,6 +109,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 6bc886a0adba3db1b521b9559d8d745d13a70994..890b8ee95d3b812ae398b234490c8b55feaf800e 100644 (file)
@@ -110,6 +110,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Navedeni vremenski interval se podudara sa već unetim vremenom.',
 'error.future_date' => 'Naveli ste budući datum.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index a646aab5eff55bf3413674d9dfba059e1c1a44f0..d2e227dc55e8c3b4eaa512dd56db0c66fc6cd289 100644 (file)
@@ -107,6 +107,7 @@ $i18n_key_words = array(
 'error.overlap' => 'Tidsintervallet överlappar med en redan existerande tidsregistrering.',
 'error.future_date' => 'Det går inte att registrera tider framåt i tiden.',
 // TODO: translate the following.
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index eb4887542705cb9df5bc4b493c62f64e885b184a..7f34cb37050a668833c9380ea327887dc1e48376 100644 (file)
@@ -123,6 +123,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index e37138ba37364cc13454a2a64c4005e402bd53b6..96e43164c670b88cac52e03674497fb541b95b13 100644 (file)
@@ -112,6 +112,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index f46f456271d7ed7f1458e163b3412b21bbba0895..8664f193428c3a8b8f0ee5f6d29c22e6b8de84ff 100644 (file)
@@ -117,6 +117,7 @@ $i18n_key_words = array(
 // 'error.goto_uncompleted' => 'Go to uncompleted entry.',
 // 'error.overlap' => 'Time interval overlaps with existing records.',
 // 'error.future_date' => 'Date is in future.',
+// 'error.xml' => 'Error in XML file at line %d: %s.',
 // 'error.cannot_import' => 'Cannot import: %s.',
 
 // Labels for buttons.
index 9e7af7c9513d482808d7aa1e5b706d1ed03ae8aa..3789b25cbb0aa2f04aa5804e7d84692cb52d8203 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.12.4399 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.12.4400 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>