changeset 89:f9cd4c5ca3d6

Translate one more error message.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Oct 2012 01:06:22 +0300
parents d78a063b2053
children 556af969a248
files index.php
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Thu Oct 25 01:02:35 2012 +0300
+++ b/index.php	Thu Oct 25 01:06:22 2012 +0300
@@ -47,6 +47,15 @@
     "en" => "Class not set, using default <b>%1</b>.",
     "fi" => "Luokkaa ei asetettu, käytetään vakioarvoa <b>%1</b>.",
   ),
+
+  "classDataNotFound" => array(
+    "fi" => "Luokan %1 tietoja ei löytynyt! Jos luokkakoodi on uusi, ".
+    "ilmestyy se järjestelmään seuraavan päivityksen aikana. Luokkatiedot ".
+    "päivitetään kerran viikossa.",
+    "en" => "Data for class %1 was not found. If the class code is new, it ".
+    "should appear in this system during the next update. The data is updated ".
+    "once per week.",
+  ),
   
   "Style" => array("fi" => "Tyyli"),
 //  "" => array("fi" => ),
@@ -360,9 +369,7 @@
 $dataFile = $cachePath.$luokka.".data";
 if (!file_exists($dataFile))
 {
-  errorMsg("Luokan ".lukChEntities($luokka)." tietoja ei löytynyt! ".
-  "Jos luokkakoodi on uusi, ilmestyy se järjestelmään seuraavan ".
-  "päivityksen aikana. Luokkatiedot päivitetään kerran viikossa.");
+  errorMsg(lukMsg("classDataNotFound", lukChEntities($luokka)));
   $haveData = FALSE;
 }
 else