Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 634531 Details for
Bug 858801
[zh_TW] Please add Chinese (Taiwan) language to language selection menu in anaconda
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch using os.listdir() to get a list of all translations in /usr/share/locale/
localization-languages-list-1.patch (text/plain), 878 bytes, created by
Steve Tyler
on 2012-10-28 13:35:45 UTC
(
hide
)
Description:
patch using os.listdir() to get a list of all translations in /usr/share/locale/
Filename:
MIME Type:
Creator:
Steve Tyler
Created:
2012-10-28 13:35:45 UTC
Size:
878 bytes
patch
obsolete
>--- localization_18_21_1.py 2012-10-25 18:07:12.000000000 -0700 >+++ localization_18_21_1_EXP_3.py 2012-10-28 06:02:34.239552441 -0700 >@@ -154,9 +154,13 @@ > domain = domain or gettext._current_domain > localedir = localedir or gettext._default_localedir > >- langdict = babel.Locale('en', 'US').languages >- messagefiles = gettext.find(domain, localedir, langdict.keys(), all=True) >- languages = [path.split(os.path.sep)[-3] for path in messagefiles] >+ translations_list = [] >+ for t in sorted(os.listdir(localedir)): >+ if os.path.isdir(os.path.join(localedir, t)): >+ translations_list.append(t) >+ >+ messagefiles = gettext.find(domain, localedir, translations_list, all=True) >+ languages = sorted([path.split(os.path.sep)[-3] for path in messagefiles]) > > # usually there are no message files for en > if 'en' not in languages:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 858801
:
632670
|
632671
|
634517
| 634531