r536 - trunk/scripts

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Mar 2 01:14:36 EST 2008


Author: icculus
Date: 2008-03-02 01:14:36 -0500 (Sun, 02 Mar 2008)
New Revision: 536

Modified:
   trunk/scripts/mojosetup_init.lua
Log:
More localization debugging: write out untranslated string here, too.


Modified: trunk/scripts/mojosetup_init.lua
===================================================================
--- trunk/scripts/mojosetup_init.lua	2008-03-02 03:03:25 UTC (rev 535)
+++ trunk/scripts/mojosetup_init.lua	2008-03-02 06:14:36 UTC (rev 536)
@@ -429,7 +429,7 @@
             for val in string.gmatch(v, "%%.") do
                 val = string.sub(val, 2)
                 if string.match(val, "^[^%%0-9]$") ~= nil then
-                    MojoSetup.fatal("BUG: '" .. k .. "' localization ['" .. v .. "'] has invalid escape sequence.")
+                    MojoSetup.fatal("BUG: '" .. k .. "' localization ['" .. v .. "'] has invalid escape sequence for translation of ['" .. str .. "'].")
                 end
                 if val ~= "%" then
                     if tonumber(val) > maxval then




More information about the mojosetup-commits mailing list