[anaconda][initial-setup][rhel7-branch][PATCH] Fix translations in Initial Setup

Martin Kolman mkolman at redhat.com
Mon Mar 31 15:21:45 UTC 2014


As can be seen in the de_DE or pt_BR locale, Initial Setup current does not translate
many strings in the GUI even though they are properly translated in the PO files.
Turns out all strings specified in Glade and the spoke title are affected.
It is caused by Initial Setup using Hub and Spoke classes from Anaconda,
which all have the "anaconda" translation domain hardcoded.
Like this translations are looked up in the "anaconda" instead of the
"initial-setup" domain and the strings remain untranslated.

Fortunately, the fix turned out to be pretty simple. :)

The patch for Anaconda adds support for overriding the Hub translation domain
by subclasses and also forwards the spoke domain to gettext when translating spoke title.

The patch for Initial Setup makes sure all Hub and Spoke subclasses
override the translation domain with the "initial-setup" one.

This together makes sure all strings are properly translated.

Martin Kolman (1):
  Make it possible to override translation domain in GUIObjects
    (#1040240)

 pyanaconda/ui/gui/__init__.py      |  3 ++-
 pyanaconda/ui/gui/hubs/__init__.py | 13 ++++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

-- 
1.8.5.3



More information about the anaconda-patches mailing list