36 Commits (8cf3c217f76b1505207fb1cdf80dc1cc403ab77c)

Author SHA1 Message Date
Adriaan de Groot c508e3ed4d [welcome] Show progress during requirements checking 7 years ago
Adriaan de Groot a19d81e38c [welcome] Chase renaming of files
- Rename the classes to match
 - Drop some unused includes
7 years ago
Adriaan de Groot 43eae0bc47 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot 084f4d2445 [libcalamaresui] Refactor: move LocaleLabel to UI library
- This is prep-work for making locale labels consistent everywhere.
 - While here, improve code documentation.
7 years ago
Harald Sitter 311af6de5d [locale] prefer native language and country names when available
This basically means we talk about localization in the respective
localized variant. e.g. "German (Germany)" ➡ "Deutsch (Deutschland)".

If geoip lookup failed or isn't configured for whatever reason it's a
stretch to expect the user to know english enough to find their own
language. Preferring the localized strings resolves this issue.

Additionally this happens to bypass #712 respectively
https://bugreports.qt.io/browse/QTBUG-34287
as the native names are properly spelled. So, as long as Qt has localized
names the names will also be properly spelled.
7 years ago
Adriaan de Groot bf40f3bd23 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot 39bf2eb9aa [welcome] Fix display of unsupported locales
- Some locales have no nativeLanguageName(), so instead display
   the locale id (e.g. "eo") and the resulting language in English
   (which, if it is really unsupported, will be "C").
8 years ago
Adriaan de Groot 42f5ed5d41 [welcome] Fix build, reduce redundancy
- constexpr isn't applicable because of non-trivial destructor
 - May as well only create " (%1)" once.

FIXES #938
8 years ago
Adriaan de Groot e5b599fbe3 [welcome] Drop accidental logging 8 years ago
Adriaan de Groot a9ffd3351d [welcome] Support sr@latin
- The QLocale constructor which takes a string (locale name) doesn't
   understand sr@latin, and returns the Cyrillic locale. Fix that
   by creating locales ourselves for @latin locales.
 - sr and sr@latin now display correctly in the right script in the
   native language dropdown.
8 years ago
Adriaan de Groot 7cc2b222d9 [welcome] Present RTL (country) annotations better
- The (RTL) text "Arabiy (Misr)" should be entirely RTL, so
   make the parenthetical insert -- which would otherwise be LTR
   and so mess up the placing of those parenthesis around the country --
   explicitly RTL.
 - Since there are no RTL languages in Calamares right now with
   country-local translations, this isn't visible.
8 years ago
Adriaan de Groot 7c944760fc [welcome] Only show (country) in list if the locale suggests it
- A locale suggests it is country-specific by having the form <lang>_<country>
 - This mostly fixes locale "ar" being presented as "Arabiy (Misr)" when
   there is no need to (and the RTL is messed up then, too).
8 years ago
Adriaan de Groot 59537d86d6 [welcome] Present languages in native format
- Introduce intermediate data class for building up the list
   of languages to present.
 - Sort on the English names, with en_US at the top (ugh).
 - Show the native names.
8 years ago
Adriaan de Groot 6930400b67 DEBUG logging 8 years ago
Adriaan de Groot 4b7465696d [welcome] Refactor the code that picks a locale to use
- Much like std::find_if, but slightly muddled because there's
   no iterator that we can sensibly use.
 - Scan the ComboBox for a locale that matches a predicate.
 - Log more as the search for a good locale progresses.
 - Don't mix matching the locale with filling the ComboBox
   (even though that's slightly more efficient).
8 years ago
Adriaan de Groot e2b8fb0afe [welcome] Log if no translations matched at all 8 years ago
Adriaan de Groot a72bdfac52 Merge branch 'master' into requirements-checking 8 years ago
Adriaan de Groot a7d7f3a83b [welcome] Make link to Calamares site https 8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Adriaan de Groot bd27dda474 [welcome] Restructure requirements checking
- Move widget behavior into its own container / widget class
 - Change the RequirementsChecker class to just check the
   requirements, returning a results list
 - Connect from the module manager to the results widget.
8 years ago
Adriaan de Groot 4a5cee133f About: adjust to the system font size.
FIXES #433
8 years ago
Adriaan de Groot ee4e4dfccc C++ trickery to make the code shorter to read. 8 years ago
Adriaan de Groot 3ecd2f2ff6 Add self to copyright notice 8 years ago
Adriaan de Groot 90e8a6cff9 Shrink upper padding.
FIXES #591
8 years ago
Adriaan de Groot f1cfde36d6 Allow different welcome message.
FIXES #592
8 years ago
Teo Mrnjavac afd7ae3938 Update about text. 9 years ago
Andrius Štikonas 9f0ca042fe Port away from most cases of Q_FOREACH to C++11 ranged for loop.
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
9 years ago
Teo Mrnjavac c54ab3aa59 Add translators credit. 10 years ago
Teo Mrnjavac b636d69a45 Scale Welcome image correctly, adjust layouts throughout Welcome page. 10 years ago
Teo Mrnjavac 3545e4fb86 Layout improvement. 10 years ago
Teo Mrnjavac bd7dd43c90 Hardcode Calamares logo in About.
CAL-241 #close
10 years ago
Teo Mrnjavac 43698b18f5 Rearrange WelcomePage checker layout to make more space for reports. 11 years ago
Teo Mrnjavac f0dc3d5ae6 Layout fixes in welcome page. 11 years ago
Teo Mrnjavac 43992c5251 Hook up RequirementsChecker with the WelcomeViewStep. 11 years ago
Teo Mrnjavac 3dd1d7932f Fix up identifiers + use QComboBox instead of QListView. 11 years ago
Teo Mrnjavac 7bcb060967 The greeting module is now welcome. 11 years ago