Red Hat Bugzilla – Bug 1032189
improper use of gettext
Last modified: 2014-08-09 02:57:06 EDT
Created attachment 826212 [details]
There are numerous cases where we are calling gettext with positional string substitution, which does not work. We must always use name-based substitution in case a translate needs to change the word order.
The attached output is for the platform only. "xgettext" should be run in pulp_rpm and pulp_puppet as well, where I suspect more errors will be found.
This can be verified by running the same two commands shown at the top of the attachment, and making sure the list of warnings is shorter than the list in the attachment.
[root@yttrium ~]# rpm -qa pulp-server
[root@yttrium ~]# find . -name *.py > source_files.txt
[root@yttrium ~]# xgettext -f source_files.txt -o catalog.pot
This has been fixed in Pulp 2.4.0-1.