Opened 10 years ago
Closed 10 years ago
#11240 closed bug (fixed)
HaikuDepot: localized categories not working
Reported by: | dsjonny | Owned by: | stippi |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/HaikuDepot | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Using hrev47855 nightly anyboot x86_gcc2 when the locale is not English than only the all packages working. If I select any other categories the list is empty. In English there is no problem.
(note: the categories were never worked for me in Hungarian locale.)
Attachments (3)
Change History (11)
by , 10 years ago
Attachment: | HaikuDepot-English.png added |
---|
by , 10 years ago
Attachment: | HaikuDepot-localized.png added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Are the screenshots from the same installation of Haiku? Or is one of them GCC2 based and the other GCC4 based?
comment:3 by , 10 years ago
Of corse, they were taken on the same installation (hrev47855 x86_gcc2).
comment:4 by , 10 years ago
I think I am observing a bug where the list sometimes stays empty, even though it should show items. You can uncheck and re-check the Available checkbox to trigger an update of the list. Does that change anything in the Hungarian version?
comment:6 by , 10 years ago
Can you attach a screenshot of your Locale preferences? I'd like to replicate the situation as closely as possible. Thanks!
by , 10 years ago
comment:7 by , 10 years ago
I am only download the latest x86_gcc2 nightly anyboot image, write it to an USB drive and at first boot I select "Magyar" from the list and boot to the desktop. I never change any othe locale setting. In the preferences there is only the "Magyar" in the right list.
comment:8 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This should be fixed with hrev47902. The problem was that categories needs the web-app to reply to the requests, but there is only a fixed, limited list of supported languages for translations. If an "invalid" language code was requested, the web-app would respond with an error, which also means that the categories were not transmitted.
This is really weird. The
PackageCategory
distinguishes between "label" and "name". The first is translated, the second is the identifier which is not translated. I've followed all the related code paths, and everything seems right. Even more weird is that this works for me with the German locale. Not all category translations are up to date (like Internet & Network in your example), but "Games" is displayed as "Spiele" in the drop-down and it gives me a list of games. I also do see "caya" in the list of packages when I select Internet & Network running Haiku in German.