GNOME Bugzilla – Bug 543665
support NC_()
Last modified: 2008-07-20 23:36:07 UTC
Intltool should support extraction of string marked using the NC_() no-op variant of C_() (added to glib in bug 536996).
Created attachment 114870 [details] [review] Trivial patch to support NC_
I'm just realizing that C_ support in intltool 0.40 is broken :-( ...and my patch also. xgettext requires an argument specifier when using contextual functions/macros. In this case, we should add "_C:1c,2" and "_NC:1c,2" instead of just _C or _NC. See also http://www.gnu.org/software/autoconf/manual/gettext/xgettext-Invocation.html, in the --keyword paragraph. I don't know Perl enough to know exactly which char needs to be escaped, so I'm letting the patch to Perl'ers. I'm ready to test it, though.
We do need to add the argument specifiers for C_ and NC_, yes. I don't know why exactly the = and _ were being escaped anyway. They are in strings and don't really need to be escaped. I've fixed this in SVN now. Your patch was insufficient anyway, as there is also a regex in FindLeftoutFiles() which needed to be modified as well, so that intltool-update -m will properly detect them.