-
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
fix: properly handle installer language changes #1746
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
119364f
fix(rust): fix the D-Bus manager's LocaleProxy path
imobachgs 970ce9b
refactor(web): convert installerL10n to TypeScript
imobachgs 33309f3
refactor(web): annotate installerL10n types
imobachgs 4145587
fix(web): fix capitalization of RFC 5646 language tags
imobachgs fc46977
fix(web): fix installer language handling
imobachgs d72bcbb
fix(web): better fallback value for unsupported languages
imobachgs 9d57f26
fix(web): refresh products on language change
imobachgs 92d21fe
fix(web): set UI language after the keymap
imobachgs 8edf7bb
fix(web): move installerL10n tests to TypeScript
imobachgs 9c7b125
fix(web): adapt installerL10n tests
imobachgs c3f6425
fix(web): adapt App tests to language fixes
imobachgs a6e0cc5
fix(service): do not crash when checking storage issues before probing
imobachgs b8acc1d
fix(rust): fix the Locale proxy default path
imobachgs 01153b5
docs: update changes files
imobachgs a3cf8ab
Merge branch 'master' into bsc-1233160
imobachgs c1f640e
Rename a duplicate interface to org.opensuse.Agama1.LocaleMixin
mvidner 688397a
refactor(web): do not use cancellablePromise in installerL10n context
imobachgs e4631f9
docs(web): fix a typo
imobachgs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Wed Nov 13 12:03:02 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- Properly update the localization settings of the D-Bus services | ||
(bsc#1233159, bsc#1233160). | ||
|
||
------------------------------------------------------------------- | ||
Mon Nov 11 09:52:59 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Wed Nov 13 12:14:06 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- Do not crash when trying to change the language of the storage | ||
service before the "config" phase (gh#agama-project/agama#1746). | ||
|
||
------------------------------------------------------------------- | ||
Tue Nov 5 16:11:35 UTC 2024 - Martin Vidner <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
------------------------------------------------------------------- | ||
Wed Nov 13 12:06:41 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- Several translation fixes (gh#agama-project/agama#1746): | ||
- Use the correct capitalization for RFC 5646 language tags | ||
(e.g., "pt-BR" instead of "pt-BR" instead of "pt-br") (bsc#1233160). | ||
- Translate the products descriptions when the user changes | ||
the language (gh#agama-project/agama#1724). | ||
- Fallback to a similar language if the given one is not supported | ||
(e.g., "es" for "es-AR") (gh#agama-project/agama#860). | ||
|
||
------------------------------------------------------------------- | ||
Wed Nov 6 06:06:51 UTC 2024 - Michal Filka <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
{ | ||
"af": "za", | ||
"am": "et", | ||
"ar": "eg", | ||
"ast": "es", | ||
"be": "by", | ||
"bg": "bg", | ||
"bn": "in", | ||
"bs": "ba", | ||
"ca": "es", | ||
"cs": "cz", | ||
"cy": "gb", | ||
"da": "dk", | ||
"de": "de", | ||
"en": "us", | ||
"el": "gr", | ||
"es": "es", | ||
"et": "ee", | ||
"eu": "es", | ||
"fa": "ir", | ||
"fi": "fi", | ||
"fr": "fr", | ||
"gl": "es", | ||
"gu": "in", | ||
"he": "il", | ||
"hi": "in", | ||
"hr": "hr", | ||
"hu": "hu", | ||
"id": "id", | ||
"it": "it", | ||
"ja": "jp", | ||
"ka": "kz", | ||
"km": "kh", | ||
"kn": "in", | ||
"ko": "kr", | ||
"lt": "lt", | ||
"lv": "lv", | ||
"mk": "mk", | ||
"mr": "in", | ||
"ms": "my", | ||
"my": "mm", | ||
"nb": "no", | ||
"nds": "de", | ||
"ne": "np", | ||
"nl": "nl", | ||
"nn": "no", | ||
"pa": "in", | ||
"pl": "pl", | ||
"pt": "pt", | ||
"ro": "ro", | ||
"ru": "ru", | ||
"si": "lk", | ||
"sk": "sk", | ||
"sl": "si", | ||
"sq": "al", | ||
"sr": "rs", | ||
"sv": "se", | ||
"ta": "in", | ||
"tg": "tj", | ||
"th": "th", | ||
"tr": "tr", | ||
"uk": "ua", | ||
"vi": "vn", | ||
"zu": "za" | ||
"af": "ZA", | ||
"am": "ET", | ||
"ar": "EG", | ||
"ast": "ES", | ||
"be": "BY", | ||
"bg": "BG", | ||
"bn": "IN", | ||
"bs": "BA", | ||
"ca": "ES", | ||
"cs": "CZ", | ||
"cy": "GB", | ||
"da": "DK", | ||
"de": "DE", | ||
"en": "US", | ||
"el": "GR", | ||
"es": "ES", | ||
"et": "EE", | ||
"eu": "ES", | ||
"fa": "IR", | ||
"fi": "FI", | ||
"fr": "FR", | ||
"gl": "ES", | ||
"gu": "IN", | ||
"he": "IL", | ||
"hi": "IN", | ||
"hr": "HR", | ||
"hu": "HU", | ||
"id": "ID", | ||
"it": "IT", | ||
"ja": "JP", | ||
"ka": "KZ", | ||
"km": "KH", | ||
"kn": "IN", | ||
"ko": "KR", | ||
"lt": "LT", | ||
"lv": "LV", | ||
"mk": "MK", | ||
"mr": "IN", | ||
"ms": "MY", | ||
"my": "MM", | ||
"nb": "NO", | ||
"nds": "DE", | ||
"ne": "NP", | ||
"nl": "NL", | ||
"nn": "NO", | ||
"pa": "IN", | ||
"pl": "PL", | ||
"pt": "PT", | ||
"ro": "RO", | ||
"ru": "RU", | ||
"si": "LK", | ||
"sk": "SK", | ||
"sl": "SI", | ||
"sq": "AL", | ||
"sr": "RS", | ||
"sv": "SE", | ||
"ta": "IN", | ||
"tg": "TJ", | ||
"th": "TH", | ||
"tr": "TR", | ||
"uk": "UA", | ||
"vi": "VN", | ||
"zu": "ZA" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Good catch... except it does not work: 🤣 😢
When I run this code and change the UI langue in the browser,
journalctl
has:Looking up "Could not synchronize settings" in the source, I arrive at a
update_dbus
fn, which uses aset_locales
fn, defined in...agama/rust/agama-lib/src/localization/proxies.rs
Line 62 in 65939ce
Which is a similar, yet different file from this diff
🤷
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.
Well, it works for me (TM) 😉 Actually, I would not expect the
set_locales
method to be involved because that's responsible for changing the locales to install, not the installer's language. Are you changing the language through the "Installer Options" menu? Did you restart theagama-dbus-server
process too (restarting theagama.service
should be enough)?Having two interfaces with the same name (
org.opensuse.Agama1.Locale
) is unfortunate, I know, but they are different things:agama-dbus-server
). We kept a D-Bus interface because it was needed for internal communication. But the idea is to get rid of it and rely only on HTTP.I wonder if we should add
default_path = "/org/opensuse/Agama1/Locale",
to the 1st proxy, but in my testing system it seems to work (unless I am missing something).In any case, I will build an image that includes all the changes so we can perform more tests.
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.
I have fixed both proxies and now I see no error in the logs.
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.
It's not unfortunate, it is wrong 😄 but it happens to work now. I hope I can add a simple fix, otherwise postpone it for another PR
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.
Yes, it is wrong 😅 The point is that we plan to drop one of them, so it won't be duplicated anymore.