Teo Mrnjavac
8f44f76443
Use LocaleConfiguration in LocalePage. Add relevant widgets.
...
Also fix error reporting.
Move guesswork to LocaleConfiguration + a total rewrite.
Locale is now a LocaleConfiguration, that converts to QMap.
2016-08-10 11:45:22 +02:00
Teo Mrnjavac
5e12096e4b
Only use UTF-8 locales.
2016-08-02 13:25:33 +02:00
Teo Mrnjavac
39782f80c9
Fix warnings.
2016-07-27 13:38:30 +02:00
Teo Mrnjavac
9450290212
Add support for locales in /usr/share/i18n/SUPPORTED
2016-05-27 17:14:17 +02:00
Teo Mrnjavac
1b1d78cf51
Improve locale.gen file parser.
2016-04-01 15:30:35 +02:00
Teo Mrnjavac
b75b13b466
Make sure to update GlobalStorage on every timezone change.
2015-07-15 17:48:59 +02:00
Teo Mrnjavac
71851ed274
Process user-visible strings in TimezoneWidget and LocalePage.
2015-02-20 16:21:30 +01:00
Teo Mrnjavac
5fdca37db5
Focus fix in Locale page.
2014-11-26 18:52:44 +01:00
Kevin Kofler
b79618aa15
locale: Move the string processing out of the loop.
2014-11-26 17:12:18 +01:00
Teo Mrnjavac
88dfd7fa10
Fix system locale string + allow 3 letter language codes.
2014-11-26 11:30:06 +01:00
Kevin Kofler
e7d0f205a4
locale: Support distributions without locale-gen.
...
If /etc/locale.gen (or the configured localeGenPath) does not exist,
assume that all the supported languages are already built into the
locale archive, and retrieve the list from "locale -a".
The list will then contain lines with only the locale rather than
locale + space + encoding, but that should not affect any of the rest of
the code. UTF-8 locales will still contain the string "UTF-8" (as part
of the ".UTF-8" suffix), we will not write a locale.gen file if we don't
have locale-gen, and everything else just strips away the encoding.
2014-11-25 20:03:37 +01:00
Kevin Kofler
440b38addf
locale: Optimize guessLCLocale by moving function calls out of loops.
2014-11-25 19:44:16 +01:00
Kevin Kofler
bcbe5103b9
locale: Don't assume 2-letter language codes.
...
Some languages have 3-letter codes. So instead of splitting the output
of QLocale::name, use QLocale::language and the static
QLocale::languageToString.
2014-11-25 19:41:01 +01:00
Teo Mrnjavac
2ca58c6f91
Massive cleanup in LocalePage. Add LCLocale setting, with autodetect.
2014-11-25 17:41:27 +01:00
Teo Mrnjavac
e5c3888be2
Allow multiple CALAMARES_RETRANSLATE blocks in the same widget.
2014-11-11 15:12:44 +01:00
Teo Mrnjavac
945b59748a
Add RETRANSLATE macro to CalamaresUtils::Retranslator.
2014-11-11 15:12:44 +01:00
Teo Mrnjavac
6f3898a73d
Use Retranslator in LocalePage.
2014-11-11 12:44:32 +01:00
Teo Mrnjavac
dec452f9b5
Make LocalePage retranslatable.
2014-11-10 14:56:29 +01:00
Teo Mrnjavac
271b0945c9
Create jobs in locale viewmodule.
2014-08-01 16:29:19 +02:00
Teo Mrnjavac
e3741c4d26
Make the locale viewmodule load the initial timezone from config.
2014-07-15 11:35:05 +02:00
Teo Mrnjavac
f1ba2e1270
Add prettyStatus to Locale module.
2014-07-08 18:28:28 +02:00
Teo Mrnjavac
87b009cc23
Layout fixes for LocalePage + default location.
2014-07-02 18:12:53 +02:00
Teo Mrnjavac
1ac10b40e6
Initial commit for the locale viewmodule.
2014-07-02 18:12:53 +02:00