4392 Commits (6a36e1dc8e7c6766eb3e614e6dd82c7124c732e3)
 

Author SHA1 Message Date
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).
7 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.
7 years ago
Adriaan de Groot 8ee4cc1966 Desktop: increase redundancy of repetitions
FIXES #936
7 years ago
Adriaan de Groot b8b607c421 [locale] Fix QString-vs-char* confusion 7 years ago
Adriaan de Groot ba2dbd4f2e
Merge pull request #937 from stikonas/master
[partition] Switch to scoped Device enums.
7 years ago
Andrius Štikonas 1b21668bff [partition] Switch to scoped Device enums. 7 years ago
Adriaan de Groot 6930400b67 DEBUG logging 7 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).
7 years ago
Adriaan de Groot 522adf766a [locale] Switch HTTP GET test to KDE servers
- Use the official name of the KDE GeoIP service
 - Log the URL *before* the check, in case one fails
7 years ago
Adriaan de Groot 5acf67a057 [locale] Fix tests with spaces in zone names
- "North Dakota" -> "North_Dakota" following the change that fixes up
   dodgy names automatically.
7 years ago
Adriaan de Groot b4e4b691fd [locale] Accomodate more dodgy GeoIP providers
- Force spaces to _
 - Document the bits

FIXES #933
7 years ago
Adriaan de Groot 3ef0fbe892 [locale] Add tests for a bunch of GeoIP providers
- Since these tests use network resources, they are not enabled by default.
   Set the environment variable TEST_HTTP_GET to actually do them.
 - Do one request for each provider and check that they are all consistent.
   (This works for me, yielding Europe/Amsterdam for all).
7 years ago
Adriaan de Groot 0f5e061c4a [locale] Support multi-level selection from JSON data
- Some providers don't provide a single flat JSON object
   (e.g. "{time_zone: foo}") but a nested structure
   (e.g. "{location: {time_zone: foo}}"), so allow dots
   in the selector to do multi-level selection.
7 years ago
Adriaan de Groot 6545d5d022 Merge branch 'expand-geoip'
- Allow configurable TZ selector string, to allow for more variation in providers
7 years ago
Adriaan de Groot d04e243c4e [locale] Auto-clean up time zone data
- Some providers return weirdly escaped data; strip out useless
   escaping before splitting (there are no characters in correct
   time zone names that need escaping)
 - Add some tests for TZ splitting
7 years ago
Adriaan de Groot fa5d40006c [locale] Fix interpretation of configured selector
- In GeoIP handler constructors that take a string (to configure the
   selector to use), interpret the empty string (which generally isn't
   a meaningful selector) as meaning "use the default".
 - Drop the no-argument constructors in favor of a default-argument
   which is empty.
7 years ago
Adriaan de Groot 352b385b12 [locale] Make the selector configurable via the config file 7 years ago
Adriaan de Groot b1b59b27b2 [locale] Expand tests for alternate selectors
- Check that the alternate selectors are used
7 years ago
Adriaan de Groot fe20416a54 [locale] Make the selector configurable
- GeoIP gets a string selector; the interpretation is up to derived classes.
 - GeoIPXML and GeoIPJSON use the selector to select an element by tag
   or an attribute, respectively.
7 years ago
Adriaan de Groot 79a6d7ccbd [locale] Make file and class consistent GeoIPXML
- Rename the class to match the filename.
7 years ago
Adriaan de Groot 2cd4461b57 [locale] Rename JSON handler
- The handler for JSON data should be called that, not named
   specially after the original provider it was implemented for.
 - Make filename and classname consistent, GeoIPJSON.
7 years ago
Calamares CI 4161120385 i18n: [python] Automatic merge of Transifex translations 7 years ago
Calamares CI 8ba4de6d0a i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Calamares CI ef2a15b45b i18n: [desktop] Automatic merge of Transifex translations 7 years ago
Calamares CI 4ed65c290d i18n: [calamares] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot ec113e3df3 [locale] Log GeoIP attempt URL, use possibly-modified form 7 years ago
Adriaan de Groot d6f082752d [locale] On GeoIP failure, log URL 7 years ago
Adriaan de Groot 47b7040897 [locale] Adjust to Calamares 3.2 idiom 7 years ago
Adriaan de Groot 3ea5a06157 Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 14fcc2fad6 [plasmalnf] Continue fighting with layout
- The screenshot stays one size, but different ThemeWidgets may overlap
   partially when you shrink the screen or have more than three / four
   themes listed.
 - Probably needs work in the surrounding container and overall better
   page-scrollbar support.
7 years ago
Adriaan de Groot c9928c99c8 Merge remote-tracking branch 'origin/3.1.x-stable' into 3.1.x-stable 7 years ago
Adriaan de Groot 1340613ef5 [locale] Additional test application for GeoIP processing 7 years ago
Adriaan de Groot 76e37402b3 [locale] Extend tests with negative results 7 years ago
Adriaan de Groot 0c1453ff18 [locale] Fix string value handled by XML parser 7 years ago
Adriaan de Groot eea421f499 [locale] Add tests for GeoIP handlers
- One sample JSON result
 - Two sample XML results
7 years ago
Adriaan de Groot 6b7c8a694a [locale] Make the style of GeoIP retrieval selectable
- Unchanged config files will continue to use the weird addition
   of /json, and interpret JSON data.
 - Allow to specify full URL with data format through one of
     geoipStyle: json
     geoipStyle: xml
 - XML support is optional
7 years ago
Adriaan de Groot 5b98e58ae7 [locale] Refactor GeoIP handlers
- Read the data in the caller of the handler, instead of in the callers
7 years ago
Adriaan de Groot 939cdff93b [locale] Add alternate GeoIP data format 7 years ago
Adriaan de Groot aaae1507cd [locale] Convenience function for TZ splitting 7 years ago
Adriaan de Groot 3636226425 [locale] Document change to the way GeoIPURL is handled. 7 years ago
Adriaan de Groot fe98b789f0 [locale] Document the settings in locale.conf
- The geoipUrl is weird, because it is not a complete URL.
   Document that, and what kind of data is expected.

FIXES #920
7 years ago
Adriaan de Groot d5623af8ef [locale] Refactor geoip handling
- Configuration **must** be a complete URL. The implementation no
   longer appends /json to the URL.
7 years ago
Adriaan de Groot c0d5a153d4 [locale] Refactor GeoIP handler
- Move GeoIP to its own cpp file
 - Provide a default implementation of the URL mangler
7 years ago
Adriaan de Groot 445f181cc3 [locale] Start refactoring geoip handling
- Introduce a handler interface for GeoIP providers
 - Move the implementation of FreeGeoIP into a struct of its own
7 years ago
Adriaan de Groot fa933b9a16 [plasmalnf] Search for theme screenshots
- Search in branding dir, and ., for relative paths,
 - Absolute paths used as-is.
 - Document search as such.
7 years ago
Adriaan de Groot bfb37e6b37 [plasmalnf] Avoid use of 'uint' 7 years ago
Adriaan de Groot cb616ec1bb [plasmalnf] Keep fixed size of screenshots (relative to font size) 7 years ago
Adriaan de Groot 5ab01eba9f [plasmalnf] Don't even try to load an empty filename for screenshot.
- Avoid one attempt-to-load if the filename is empty, and one
   re-creating of the Pixmap.
7 years ago
Adriaan de Groot 06e43a7312 CI: Switch to stable Neon, to avoid all-builds-failing.
The dev-unstable Neon branch now has a too-new KPMCore for
this branch of Calamares.
7 years ago
Adriaan de Groot 00a5baa3d9 [libcalamares] Improve process logging
- Don't insert a space before the output of a process
 - To do this, suppress space and quoting on the output, and to do
   that move the labeling-output for warnings and errors into
   the constructor (so that an idiomatic .nospace() does the right thing).
7 years ago