extract strings using g_dngettext

Bug #387223 reported by c7d2f5c8667d26fffd5e7772d632c76d
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intltool
Fix Released
Undecided
dobey

Bug Description

"intltool-update --p" doesn't extract strings that use g_dngettext (a glib variant of dngettext).

Related branches

Revision history for this message
dobey (dobey) wrote :

Does this work if you use dngettext directly instead? intltool itself doesn't extract any strings from C, and relies on xgettext to handle it. This could be a bug in xgettext perhaps? If dngettext itself works, then perhaps there is some way we need to tell xgettext to extract strings from g_dngettext calls as well?

Revision history for this message
c7d2f5c8667d26fffd5e7772d632c76d (c7d2f5c8667d26fffd5e7772d632c76d-deactivatedaccount) wrote :

g_dngettext is a glib addition just like C_() or NC_(), so a --keyword arg needs to be added to the xgettext invocation in intltool-update like for C_/NC_.

(In the instance I encountered this problem, I cannot use dngettext directly since g_dngettext is not just a forward to dngettext but does additional checks.)

dobey (dobey)
Changed in intltool:
status: New → In Progress
dobey (dobey)
Changed in intltool:
assignee: nobody → Rodney Dawes (dobey)
status: In Progress → Fix Committed
dobey (dobey)
Changed in intltool:
milestone: none → 0.41.0
dobey (dobey)
Changed in intltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.