GNOME Bugzilla – Bug 679467
Mention translation in g_warning() documentation
Last modified: 2017-10-06 10:24:36 UTC
Quite often, I find myself wondering whether I should translate messages passed to g_warning() (and friends). The consensus seems to be that warning messages *shouldn’t* be translated, since they’ll only ever appear in .xsession-errors, and it’s more useful to the program authors for debugging if warning messages pasted in bug reports are in English. Patch coming up to mention that the messages *shouldn’t* be translated for g_warning(), g_error(), g_critical() and g_debug().
Created attachment 218120 [details] [review] Mention translation in g_warning() documentation
Review of attachment 218120 [details] [review]: Looks good. ::: glib/gmessages.c @@ +164,3 @@ * + * A convenience function/macro to log a warning message. The message should + * typically <emphasis>not</emphasis> be translated to the user's language. We should definitely not use DocBook tags, here — but the whole file needs to be ported to Markdown, apparently, so it's not a big deal.
Ported to Markdown while rebasing the patch (gmessages.c has been ported to Markdown since this patch was written). Thanks for the review.