History/Bookmarks (Places) trees don't switch language with intl.multilingual.liveReload enabled (Library, sidebar, star UI)
Categories
(Core :: Internationalization, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox100 | --- | fixed |
People
(Reporter: Paenglab, Assigned: gregtatum)
References
Details
Attachments
(5 files)
Set intl.multilingual.liveReload to true and open the History sidebar.
When using the en-US locale the tree shows Today, Yesterday etc.
Now switch to de-DE for example. The tree still shows Today, Yesterday etc. but should show Heute, Gestern etc.
Not sure if this is only an issue because it's not yet moved to Fluent or it comes from the issue noted in Bug 1751784 comment 8:
The thread pane is redrawn, but only partly updates: The content of the (usually unused) status column updates, but the date column does not. We debugged it a bit and saw that mozilla::intl::AppDateTimeFormat::Format() returns the date/time formatted to the original locale even when switching language (and setting the formatting to follow the app locale and not the OS locale). This is visible when changing between English and German, especially when adding a weekday (mail.ui.display.dateformat.thisweek set to 4).
| Assignee | ||
Comment 1•4 years ago
|
||
It looks like it's only translating once.
Scenario 1 (working)
Steps to reproduce:
- Open Firefox fresh.
- Switch from "en-US" to "es-ES".
- Open history panel.
Expected and actual behavior:
- The panel is correctly translated to "es-ES".
Scenario 2 (broken)
Steps to reproduce:
- Open Firefox fresh.
- Open history panel.
- Switch from "en-US" to "es-ES".
Expected behavior:
- The panel is correctly translated to "es-ES".
- The top title say "Historial"
Actual behavior:
- The top title say "History"
| Assignee | ||
Comment 2•4 years ago
|
||
Marking as an enhancement until we enable the feature, then it would be a defect, since no users can see it yet.
Comment 3•4 years ago
|
||
TB uses mozilla::intl::AppDateTimeFormat::Format() also used for certificate display in FF:
https://searchfox.org/mozilla-central/rev/41614c2fb53602e9a4c9793afa76f2422c0bf9a2/security/manager/ssl/nsCertTree.cpp#544
When you look at this bug, please check that certificate display follows the locale the user chose.
Comment 4•4 years ago
|
||
(In reply to Rachel Martin from comment #3)
TB uses
mozilla::intl::AppDateTimeFormat::Format()also used for certificate display in FF:
https://searchfox.org/mozilla-central/rev/41614c2fb53602e9a4c9793afa76f2422c0bf9a2/security/manager/ssl/nsCertTree.cpp#544
When you look at this bug, please check that certificate display follows the locale the user chose.
Let's not lump too much into one bug, it'll only cause things to be missed or confused. The fact that AppDataTimeFormat is still returning the wrong thing after a switch feels like it warrants a bug in itself - it is a specific issue that some of these others may depend on. The certificate display is probably best filed as a separate bug as well - then we have an explicit reminder to check it.
Comment 5•4 years ago
|
||
Updating the subject - the history & bookmarks trees are all maintained by the same tree/places code implementation, so fixing one will fix the rest.
Comment 7•4 years ago
|
||
I should also note, these strings are all non-fluent at the moment: https://searchfox.org/mozilla-central/rev/9bed2623831804ac086bbb80cb666e5c3b00416a/toolkit/locales/en-US/chrome/places/places.properties
| Reporter | ||
Comment 8•4 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #4)
Let's not lump too much into one bug, it'll only cause things to be missed or confused. The fact that
AppDataTimeFormatis still returning the wrong thing after a switch feels like it warrants a bug in itself - it is a specific issue that some of these others may depend on. The certificate display is probably best filed as a separate bug as well - then we have an explicit reminder to check it.
Filed bug 1755961 for this. If the subject is wrong correct it as I don't know what this function does.
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 9•4 years ago
|
||
| Assignee | ||
Comment 10•4 years ago
|
||
Depends on D140664
| Assignee | ||
Comment 11•4 years ago
|
||
Depends on D140666
| Assignee | ||
Comment 12•4 years ago
|
||
| Assignee | ||
Comment 13•4 years ago
|
||
The startup cache essentially leaks memory here for the old startup cache
data. My assumption here is that there can be dangling pointers into this
data so it's not safe to delete these old tables. Live language switching
is a relatively rare event, so this leak should be acceptable compared to
adding locking mechanisms to the underlying data.
Depends on D140667
Comment 14•4 years ago
|
||
Comment 15•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/df0671c449b9
https://hg.mozilla.org/mozilla-central/rev/00c77cbfd73a
https://hg.mozilla.org/mozilla-central/rev/b61343e0db5a
https://hg.mozilla.org/mozilla-central/rev/9e4a3a9fe4cd
https://hg.mozilla.org/mozilla-central/rev/7f04f6c7c9c2
Description
•