http://bugzilla.novell.com/show_bug.cgi?id=412164 http://bugzilla.novell.com/show_bug.cgi?id=412164#c4 --- Comment #4 from Christian Boltz <suse-beta@cboltz.de> 2010-05-05 00:07:53 CEST --- (In reply to comment #2)
Also if anybody has suggestion how to do this non-translated logging of texts that are marked for translation, speak up :O)
The main target is obviously to avoid text duplication in the source code. My solution would be to write a function log_and_translate. PHP-like Pseudocode: function log_and_translate($severity, $message, array $printf_params) { write_to_log(prinf($message, $printf_params), $severity); return printf( _($message), $printf_params); } echo log_and_translate("critical", "%s conflicts with %s", "java-1.5", "java-1.6"); I'll leave it up to you how you handle the variable number of printf_params - that's the advantage of pseudocode ;-) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.