Adriaan de Groot
ab27f0aa2e
[locale] Repair locale-matching (cherry-pick from *calamares*)
...
- add struct that splits a locale name into parts
- be more chatty during matching
(cherry picked from commit fd56b5bdc4
)
(cherry picked from commit 78e216fedb
)
(cherry picked from commit cfb8ef9f65
)
(cherry picked from commit eb242168bf
)
(cherry picked from commit 40527ffd4e
)
(cherry picked from commit 6cbf2d7e32
)
(cherry picked from commit a422fd80d9
)
(cherry picked from commit 3540121449
)
2022-08-23 07:58:13 -03:00
Adriaan de Groot
57374a3271
CMake: blanket-apply gersemi
2022-08-23 12:32:42 +02:00
Adriaan de Groot
33961ff6f4
[bootloader] Repair Python 3.3 compatibility
...
Argument *text* is an addition in 3.7, while the Calamares 3.2
branch supports Python 3.3 and later. Use the 'backwards compatibility'
name of the parameter, *universal_newlines*.
FIXES #2033
2022-08-07 14:43:06 +02:00
demmm
492dba2f63
[calamares] fix for https://github.com/calamares/calamares/issues/2030
...
adjust CalamaresWindow.cpp so About & Debug buttons pick needd translation for widget sidebar
2022-07-29 23:44:14 +02:00
demmm
6444b4205b
[luksopenswaphookcfg] fix for https://github.com/calamares/calamares/issues/1659
2022-07-21 01:11:19 +02:00
Adriaan de Groot
4b541b5b29
[locale] Fix test -- needs translation languages, old style
2022-07-19 21:06:52 +02:00
Adriaan de Groot
1e42e1562e
[locale] Test KDE neon and FreeBSD separately, same data
...
- wrangle the test framework so it hands the same data to
two different collections of tests; do KDE neon and FreeBSD
separately so it's clearer which lookups are being done
(and a failure in one doesn't prevent the test of the other).
2022-07-19 19:00:20 +02:00
Adriaan de Groot
61a07f05ba
[locale] Add FreeBSD test data for locale-mapping
2022-07-19 19:00:20 +02:00
Adriaan de Groot
f7a7ad9943
[locale] Add test for language-mapping
...
Adds specific data from KDE neon and expected mappings.
The test fails right now because the mapping is incorrect.
2022-07-19 19:00:20 +02:00
Adriaan de Groot
b11ee3abc5
[libcalamares] Add alternatives ca@valencia and ca_ES@valencia
2022-06-19 15:34:20 +02:00
Adriaan de Groot
82b19a6314
[locale] Fix up handling of regional variants, country-specifics
...
- expand tests to include Serbian variants
- massage detection code to do better filtering based on
country-selection (so "American English" doesn't later
pick "English" with Antigua and Barbados for locale)
2022-06-19 15:25:23 +02:00
Adriaan de Groot
18626901d3
[locale] Improve regional variant lookup
2022-06-19 14:49:46 +02:00
Adriaan de Groot
40d8e1e0f6
[locale] Expand tests for matching-valencia locales
2022-06-19 14:39:12 +02:00
Adriaan de Groot
b8b7b10bfd
[locale] Be more chatty when loading locales
2022-06-19 14:17:12 +02:00
Adriaan de Groot
b7dcf55d4c
[locale] Add debug while mapping language+country
2022-06-19 11:51:38 +02:00
Adriaan de Groot
7f7e4aa1ae
[locale] Expand tests to language-matching
2022-06-18 12:33:02 +02:00
Adriaan de Groot
79db04dc2e
[locale] Defer to the locale-service idea of LANG
...
- Using QLocale().name() loses some special locales that
Calamares understands but Qt does not (e.g. sr@latn, ca@valencia)
so do it in two steps.
2022-06-18 11:48:50 +02:00
Adriaan de Groot
2478570deb
[libcalamares, keyboard] Use convenience for getting current locale
2022-06-18 00:40:26 +02:00
Adriaan de Groot
d80661211c
[libcalamares] Introduce convenience for reading Locale map
2022-06-18 00:23:21 +02:00
Adriaan de Groot
700f2a6af3
[fstab] Warn when the mount options end up weird
...
Cherry-picked from 3.3, but only half of it applies.
2022-06-12 14:50:51 +02:00
Adriaan de Groot
8b44eef002
[calamares] Make naming consistent between 'special' buttons
2022-06-07 16:02:29 +02:00
Adriaan de Groot
e6960ceec1
[calamares] Restore text on debug- and about-buttons
2022-06-07 16:02:29 +02:00
Adriaan de Groot
fb910d7c41
[fstab] Fix schema for new tmpOptions settings
2022-05-29 17:04:24 +02:00
Adriaan de Groot
55f1df9563
[users] Just don't test restore-to-previous, too flaky
2022-05-29 17:00:37 +02:00
Adriaan de Groot
1b2d12b9a1
[calamares] Give QML-progress-panel an about-button
2022-05-29 16:12:10 +02:00
Adriaan de Groot
ce74d2fdfc
[calamares] Fix QML progress highlights
2022-05-29 15:56:21 +02:00
Adriaan de Groot
d34f593562
[calamares] Migrate the about-dialog to the debug (meta) window manager
...
- DebugWindowManager already manages not-really-Calamares windows
like the Debug window, add About-Dialog to its responsibilities.
- Make about() accessible to the QML progress panel.
2022-05-29 15:54:03 +02:00
Adriaan de Groot
00898b18d6
[welcomeq] Remove about-calamares button from default QML
2022-05-29 15:38:06 +02:00
Adriaan de Groot
84186babab
[welcome] Remove the about-calamares button from the (widgets) UI
2022-05-29 15:34:19 +02:00
Adriaan de Groot
18363ca183
[welcome] Move about-calamares box to Calamares (main)
2022-05-29 15:31:25 +02:00
Adriaan de Groot
006c3f99e6
[calamares] Add 'about calamares' button alongside the debug-button
2022-05-29 15:22:02 +02:00
Adriaan de Groot
3e72635204
[libcalamares] Fix path-search for loading branding-translation
...
- log which path is actually being used
- there are two overloads for QTranslator::load(); the intention
was to call `QTranslator::load(const QLocale&, ...)`, but the
types of the arguments were wrong, leading to the other
overload being called, and interpreting the locale-name
(e.g. "nl") as a full filename.
Improve logging, call the "other" overload with the right parameters
and drop the not-needed ones.
FIXES #1961
2022-05-29 00:55:35 +02:00
Adriaan de Groot
6e8d820737
[partition] Missing space
2022-05-28 13:43:45 +02:00
Adriaan de Groot
135fce77c1
i18n: update english
2022-05-27 12:39:58 +02:00
Adriaan de Groot
af813ac95b
[fstab] Don't import (unused) subprocess
2022-05-24 16:51:36 +02:00
Adriaan de Groot
bb395db9f4
Merge branch 'release-3.2.58.2' into calamares
2022-05-24 16:48:05 +02:00
Adriaan de Groot
ff7ceb2e2b
[fstab] Replace two-step attribute-setting with one step
2022-05-24 15:56:34 +02:00
Adriaan de Groot
f4e5e08aa8
[fstab] Be more careful in setting up btrfs swap
...
- do not use subprocess module in Python bits,
- do +C (no-CoW) after turning compression off
2022-05-24 15:18:50 +02:00
abalfoort
63ee982d36
[fstab] Configure tmp on tmpfs
...
Adds a new option / configuration keys to `fstab.conf` to
configure how /tmp is created. The example shows how /tmp
is made *tmpfs* on an SSD, or on not-SSD, is just-a-directory.
FIXES #1818
2022-05-24 13:26:07 +02:00
abalfoort
4e5078c950
[fstab] Fix unencrypted root check
...
There are more ways (than not having a keyfile) for the root
partition to be unencrypted. Check it based on the settings
in the partition data.
2022-05-24 13:25:28 +02:00
abalfoort
badb1d4706
[luksbootkeyfile] Handle key-slots-are-full
2022-05-24 13:07:17 +02:00
Adriaan de Groot
fd53c090f4
[partition] Massage coding style
...
- some long-missing (unrelated to recent PR) braces
- remove some redundant comments
2022-05-24 12:58:02 +02:00
Adriaan de Groot
6de880c95d
[partition] No need for temporary variable
2022-05-24 12:58:02 +02:00
Adriaan de Groot
de03a92a8f
[partition] Move LUKS helpers code-documentation
2022-05-24 12:58:02 +02:00
abalfoort
2a7cbd2520
[partition] update LuksDevice to savePassphrase and enum
2022-05-24 12:58:02 +02:00
Adriaan de Groot
7e4fc3e4c7
[welcome] Use about-message from Config
...
- for QML, this is the easiest way to factor out the message
(no convenient access to free functions, unless I bung the
message into e.g. Branding where I don't think it fits
very well).
2022-05-23 17:11:45 +02:00
Adriaan de Groot
f9f18e5d3b
[welcome] Use welcome message from Config object
2022-05-23 17:00:56 +02:00
Adriaan de Groot
4a852facb3
[welcome] Use generated about string
2022-05-23 16:57:51 +02:00
Adriaan de Groot
09255a1d9c
[libcalamares] Add a more extensible About message
...
- make the years easier to update without annoying translators
- make the maintainers extensible.
2022-05-23 16:45:23 +02:00
Adriaan de Groot
f8345a09a2
[netinstall] Add disambiguation to labels
2022-05-23 15:41:45 +02:00