Bug 1004960 - String modified before looked up among translations
Summary: String modified before looked up among translations
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: David Shea
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-05 21:15 UTC by Göran Uddeborg
Modified: 2013-09-19 02:41 UTC (History)
7 users (show)

Fixed In Version: anaconda-20.17-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-19 02:41:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Göran Uddeborg 2013-09-05 21:15:20 UTC
While translating anaconda/master, I came across the message:

    msgid "IPv4 address or %s for DHCP"

I looked up the source to see what %s could be, to get this right.  I found this code:

    Entry(_('IPv4 address or %s for DHCP' % '"dhcp"'), "ip", ...

Unless I'm mistaken, this won't work.  The string that is extracted to the po file is 'IPv4 address or %s for DHCP'.  But the argument of the "_" function will be 'IPv4 address or "dhcp" for DHCP'.  And that won't be available in any translation catalog.

Wouldn't the correct way to express this be as follows?

    Entry(_('IPv4 address or %s for DHCP') % '"dhcp"', "ip", ...

Comment 1 David Shea 2013-09-05 21:30:41 UTC
That's correct. Thanks for catching this.

Comment 2 Fedora Update System 2013-09-06 22:42:58 UTC
anaconda-20.12-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.12-1.fc20

Comment 3 Fedora Update System 2013-09-07 17:03:31 UTC
Package anaconda-20.12-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-20.12-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-16040/anaconda-20.12-1.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-09-10 00:11:40 UTC
anaconda-20.13-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.13-1.fc20

Comment 5 Fedora Update System 2013-09-10 19:48:56 UTC
anaconda-20.14-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.14-1.fc20

Comment 6 Fedora Update System 2013-09-12 01:03:57 UTC
anaconda-20.15-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.15-1.fc20

Comment 7 Fedora Update System 2013-09-14 01:05:41 UTC
anaconda-20.16-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.16-1.fc20

Comment 8 Fedora Update System 2013-09-16 17:48:48 UTC
anaconda-20.17-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.17-1.fc20

Comment 9 Fedora Update System 2013-09-19 02:41:39 UTC
anaconda-20.17-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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