[Koha-patches] [PATCH] Improve error message when translation installation fails

Frédéric Demians f.demians at tamil.fr
Wed May 18 07:23:21 CEST 2011


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.
---
 misc/translator/TmplTokenizer.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/translator/TmplTokenizer.pm b/misc/translator/TmplTokenizer.pm
index cb4da7d..cb04513 100644
--- a/misc/translator/TmplTokenizer.pm
+++ b/misc/translator/TmplTokenizer.pm
@@ -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
 	    }
 	}
     }
-- 
1.7.5.1



More information about the Koha-patches mailing list