Opened 5 years ago

Closed 5 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:
Has a Patch: no Platform: All


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)

HaikuDepot-English.png (21.4 KB ) - added by dsjonny 5 years ago.
HaikuDepot-localized.png (18.1 KB ) - added by dsjonny 5 years ago.
hd.png (31.1 KB ) - added by dsjonny 5 years ago.

Download all attachments as: .zip

Change History (11)

by dsjonny, 5 years ago

Attachment: HaikuDepot-English.png added

by dsjonny, 5 years ago

Attachment: HaikuDepot-localized.png added

comment:1 by stippi, 5 years ago

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.

comment:2 by stippi, 5 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 dsjonny, 5 years ago

Of corse, they were taken on the same installation (hrev47855 x86_gcc2).

comment:4 by stippi, 5 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:5 by dsjonny, 5 years ago

Nothing is changing when I am checking the checkboxes.

comment:6 by stippi, 5 years ago

Can you attach a screenshot of your Locale preferences? I'd like to replicate the situation as closely as possible. Thanks!

by dsjonny, 5 years ago

Attachment: hd.png added

comment:7 by dsjonny, 5 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 stippi, 5 years ago

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.