Improve error message when translation installation fails
authorFrédéric Demians <f.demians@tamil.fr>
Wed, 18 May 2011 05:23:21 +0000 (07:23 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 18 May 2011 07:25:33 +0000 (19:25 +1200)
For Translator Manager (myself...). A translation installation may fail because
translator hasn't enter properly string parameters (%s). With this patch, the
message ID is displayed not only the parameter.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/translator/TmplTokenizer.pm

index cb4da7d..cb04513 100644 (file)
@@ -427,7 +427,7 @@ sub parametrize ($$$$) {
                $it .= $&;
                die "$&: Unknown or unsupported format specification\n"; #XXX
            } else {
-               die "$&: Completely confused parametrizing\n";#XXX
+               die "$&: Completely confused parametrizing -- msgid: $fmt_0\n";#XXX
            }
        }
     }