RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 618979 - [anaconda] POT file outdated
Summary: [anaconda] POT file outdated
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 527925 576455
TreeView+ depends on / blocked
 
Reported: 2010-07-28 09:10 UTC by Ankit Patel
Modified: 2010-07-28 14:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-28 14:10:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ankit Patel 2010-07-28 09:10:42 UTC
Hi,

Could you please also make sure all messages that appears in anaconda
installation screen are marked for translation extraction?

Because when I have tried "intltool-update -P" in po directory it has thrown
many warning messages, perhaps some of the messages are not properly marked for
translation extraction (guess not i18nized or gettextized properly).

[root@ankit-test po]# intltool-update -P
xgettext: warning: file `./../anaconda' extension `' is unknown; will try C
./../anaconda:41: warning: unterminated character constant
./../anaconda:301: warning: unterminated character constant
./../anaconda:328: warning: unterminated character constant
./../anaconda:442: warning: unterminated string literal
./../anaconda:445: warning: unterminated string literal
./../anaconda:499: warning: unterminated character constant
./../anaconda:500: warning: unterminated character constant
./../anaconda:543: warning: unterminated character constant
./../anaconda:651: warning: unterminated character constant
./../anaconda:652: warning: unterminated character constant
./../anaconda:658: warning: unterminated character constant
./../anaconda:676: warning: unterminated character constant
./../anaconda:707: warning: unterminated character constant
./../anaconda:860: warning: unterminated character constant
./../anaconda:929: warning: unterminated character constant
./../anaconda:937: warning: unterminated character constant
./../anaconda:954: warning: unterminated character constant
./../anaconda:961: warning: unterminated character constant
./../anaconda:1085: warning: unterminated character constant
./../installinterfacebase.py:47: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                          The translator cannot reorder the
arguments.
                                          Please consider using a format string
with named arguments,
                                          and a mapping instead of a tuple for
the arguments.
./../installinterfacebase.py:51: warning: 'msgid_plural' format string with
unnamed arguments cannot be properly localized:
                                          The translator cannot reorder the
arguments.
                                          Please consider using a format string
with named arguments,
                                          and a mapping instead of a tuple for
the arguments.
./../platform.py:246: warning: 'msgid' format string with unnamed arguments
cannot be properly localized:
                               The translator cannot reorder the arguments.
                               Please consider using a format string with named
arguments,
                               and a mapping instead of a tuple for the
arguments.
./../iw/filter_gui.py:151: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                    The translator cannot reorder the
arguments.
                                    Please consider using a format string with
named arguments,
                                    and a mapping instead of a tuple for the
arguments.
./../iw/partition_gui.py:478: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                       The translator cannot reorder the
arguments.
                                       Please consider using a format string
with named arguments,
                                       and a mapping instead of a tuple for the
arguments.
./../iw/partition_gui.py:544: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                       The translator cannot reorder the
arguments.
                                       Please consider using a format string
with named arguments,
                                       and a mapping instead of a tuple for the
arguments.
./../storage/devices.py:2472: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                       The translator cannot reorder the
arguments.
                                       Please consider using a format string
with named arguments,
                                       and a mapping instead of a tuple for the
arguments.
./../storage/formats/fs.py:355: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                         The translator cannot reorder the
arguments.
                                         Please consider using a format string
with named arguments,
                                         and a mapping instead of a tuple for
the arguments.
./../storage/formats/lvmpv.py:104: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                            The translator cannot reorder the
arguments.
                                            Please consider using a format
string with named arguments,
                                            and a mapping instead of a tuple
for the arguments.
./../storage/formats/swap.py:162: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
                                           The translator cannot reorder the
arguments.
                                           Please consider using a format
string with named arguments,
                                           and a mapping instead of a tuple for
the arguments.
xgettext: error while opening "./../liveinst/liveinst.desktop.in.h" for
reading: No such file or directory
ERROR: xgettext failed to generate PO template file. Please consult
       error message above if there is any.
[root@ankit-test po]# 

Please check them as well.

Thanks!
Ankit

Comment 2 RHEL Program Management 2010-07-28 09:37:34 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 3 Chris Lumens 2010-07-28 14:10:15 UTC
The anaconda.pot file is updated every time we do a build.  You can't simply run "intltool-update" and expect that to work - as you can see, you're getting a ton of warnings because it thinks the anaconda file is C when it's in fact python.  You need to use the right makefile target to update this stuff.

Comment 4 David Cantrell 2010-07-28 14:51:56 UTC
As Chris stated, we do update the pot file with each build.  But the critical part to understand is that we update the pot file for each build, not just committing changes to the repository.  So if someone commits a string change after we've done a build, the pot file will not be updated in the git repository until the next build we do.

If you want to update the pot on your own, it is very important to use the Makefile target rather than relying on intltool-update.  The main reason for this is we pull strings from more than just .c and .py files.  We extract from .glade files, shell scripts, and other files.

To update the po/anaconda.pot file on your own for RHEL-6 anaconda, first clone the repository and ensure your system meets the build requirements:

    git clone git://git.fedorahosted.org/git/anaconda.git
    cd anaconda
    git checkout -b rhel6-branch origin/rhel6-branch
    PKGS="$(grep ^BuildRequires: anaconda.spec.in | cut -d ' ' -f 2)"
    yum install $PKGS automake autoconf

Now you can update the pot file:

    ./autogen.sh
    ./configure
    make -C po anaconda.pot-update


Note You need to log in before you can comment on or make changes to this bug.