Bug 354678

Summary: y2makepot seems to ignore 'gettext' keyword
Product: [openSUSE] openSUSE 11.0 Reporter: Katarina Machalkova <kmachalkova>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 1   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Katarina Machalkova 2008-01-18 09:28:42 UTC
yast2-apparmor sources use inconsistent marking of strings for translation - _("") macro for YCP files and gettext() for Perl modules/agents. 

Running y2makepot (without parameters) on apparmor src/ directory seems to ignore files where strings are marked with gettext(), unless they are explicitly specified in POTFILES file. Thus, strings from Perl modules never make it to apparmor.pot
Comment 1 Martin Vidner 2008-01-18 11:16:27 UTC
well, finding the agents/ag_* files is one thing, which can be fixed.
then there's a problem with the agents not having a file extension so xgettext treats them as C.
Comment 2 Martin Vidner 2008-01-31 13:07:05 UTC
xgettext would like us to rename the files to *.pl, but that could confuse the yast component loader. It seems we have to use a workaround used in yast2-installation already for the control files: symlinks.
I committed them to SVN.

I also fixed the devtools to look for gettext() in addition to _() and __().