Bugzilla – Bug 147611
Extend devtools to catch missing textdomain in C++ code
Last modified: 2006-02-27 17:48:40 UTC
See also bug #145189 If messages in C++ code are marked for translation with '_("something")', but that C++ file does not have a 'Textdomain "xy"' in its header, that text will not go to the .pot file and thus never go out to the translators. It will be silently ignored. We should add a check to catch that case. Obviously the maintainer of the C++ code has to specify what textdomain (and thus what .pot file) that message belongs to - we can't do that automatically (or can we)?. Since .pot file generation is moved out to a separate script already, it should not be too hard to do that check.
Hint for whoever does that: our makefiles call "y2tool y2makepot -s".
Missing textdomains are caught in C, C++, YCP and Perl code, if _(...) or __(...) is used. The default behavior is like following now: make package *fails* make pot *warns* if a textdomain is missing (and needed).
Forgot to close. :-)