-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization #881
Localization #881
Conversation
* Additionally, consider as supported all the locales known to systemd. * Rename LabelsForLocales to ListLocales.
* Include the code, the language and the territory name. * Use the UILocale for translations.
- One context for installer localization and another for target system localization.
35f9f38
to
caf8451
Compare
* Most probably, we will need to bring it back in the future.
It fixes a potential problem when calling #on_language_change on different objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Folks, I've reviewed the web/ part. It LGTM.
Just a few not blocking notes.
Thanks a lot!
padding-top: var(--pf-v5-c-modal-box__body--PaddingTop); | ||
background-color: var(--pf-v5-c-modal-box--BackgroundColor); | ||
|
||
[role="search"] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE for my self: we should unify the search input (now we have two styles, the one used in Software page and this)
## Problem In #881 localization was improved and works in the web UI. This PR adds CLI and autoinstallation - https://trello.com/c/AvrY5iBP ## Solution Mimic the structure of the other configuration scopes. TODO: - [x] decide where to use `locale` and/or `localization` in the code: mostly "localization" except the D-Bus proxy which is "locale" ## Testing - Tested manually - More unit tests for `KeymapId` ## Screenshots `agama config show` now works for `localization`: ```console 7e24bb397c23:/checkout # (cd rust/; cargo run --bin agama -- -f yaml config show) [... Compiling ...] Running `target/debug/agama -f yaml config show` user: fullName: '' [... etc ...] localization: language: en_US keyboard: us timezone: Europe/Berlin ```
Problem
Agama already offers a D-Bus interface for localizing both the installer and the target system. But the web UI does not allow to select a keyboard or timezone yet.
Solution
The localization page was redesigned in order to allow changing language, keyboard and timezone for the target system.
The D-Bus API also needed some rework. Now it offers an API adapted to what clients need: listing locales, keymaps and timezones, and also selecting locales, keymap and timezone.
Note: Auto-installation is out of the scope of this PR.
Testing
Screenshots
System in Spanish with GNOME Desktop
UI