r533 - trunk/scripts

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Mar 1 00:02:58 EST 2008


Author: icculus
Date: 2008-03-01 00:02:58 -0500 (Sat, 01 Mar 2008)
New Revision: 533

Modified:
   trunk/scripts/mojosetup_init.lua
Log:
Print out the original string when a translation has an escape sequence error,
 since I don't know how to search for Russian characters.   :)


Modified: trunk/scripts/mojosetup_init.lua
===================================================================
--- trunk/scripts/mojosetup_init.lua	2008-03-01 04:13:51 UTC (rev 532)
+++ trunk/scripts/mojosetup_init.lua	2008-03-01 05:02:58 UTC (rev 533)
@@ -433,7 +433,7 @@
                 end
                 if val ~= "%" then
                     if tonumber(val) > maxval then
-                        MojoSetup.fatal("BUG: '" .. k .. "' localization ['" .. v .. "'] has escape sequence > max for translation.")
+                        MojoSetup.fatal("BUG: '" .. k .. "' localization ['" .. v .. "'] has escape sequence > max for translation of ['" .. str .. "'].")
                     end
                 end
             end




More information about the mojosetup-commits mailing list