[rhel7-branch] Rebase our language/locale handling code

Vratislav Podzimek vpodzime at redhat.com
Wed Sep 25 17:27:43 UTC 2013


There has been major changes of the language/locale handling code done in the
F20 cycle which significantly improve user experience of the installer and also
make our code cleaner, more deterministic and better documented.

On behalf of the bug #1006458 [1] all these 14 patches should be ported from
master to rhel7-branch. They contain a lot of changes, but they are just ports
of the master patches, so they should be okay.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1006458

Vratislav Podzimek (14):
  Rewrite the localization module
  Adapt to the new localization module
  Fix the langcode parsing regexp
  Specify also query script when getting locale's native name
  Remove an unused argument of get_available_translations
  Allow seting up locale without modifying ksdata
  Rework the Welcome spoke to allow users choose from all locales
  Get rid of the non-deterministic expand_langs and its usage
  Match langs with stripped accents when filtering languages
  Rework the Langsupport spoke to work with all locales
  Share code between the Welcome and Langsupport spokes
  More robust parsing of the layout and variant string specification
  Normalize keyboard layout and variant strings from langtable
  Center the Langsupport spoke's description

 anaconda                                           |  38 +-
 anaconda.spec.in                                   |   3 +-
 pyanaconda/keyboard.py                             |  59 +-
 pyanaconda/localization.py                         | 716 ++++++++++-----------
 pyanaconda/packaging/yumpayload.py                 |   9 +-
 pyanaconda/timezone.py                             |  36 +-
 pyanaconda/ui/gui/hubs/progress.py                 |  53 +-
 pyanaconda/ui/gui/spokes/langsupport.glade         | 172 +++--
 pyanaconda/ui/gui/spokes/langsupport.py            | 204 +++---
 .../ui/gui/spokes/lib/lang_locale_handler.py       | 161 +++++
 pyanaconda/ui/gui/spokes/welcome.glade             | 336 +++++-----
 pyanaconda/ui/gui/spokes/welcome.py                | 260 +++-----
 pyanaconda/ui/gui/utils.py                         |  40 ++
 13 files changed, 1108 insertions(+), 979 deletions(-)
 create mode 100644 pyanaconda/ui/gui/spokes/lib/lang_locale_handler.py

-- 
1.7.11.7



More information about the anaconda-patches mailing list