Opened 4 years ago

Closed 3 years ago

#16191 closed bug (fixed)

HaikuDepot keeps cached categories named after they were translated

Reported by: victordomingos Owned by: apl-haiku
Priority: normal Milestone: Unscheduled
Component: Applications/HaikuDepot Version: R1/Development
Keywords: localization Cc:
Blocked By: Blocking:
Platform: All

Description

After having translated the HaikuDepot categories names at the haikudepotserver repository, they appear correctly in new installs but, in an existing nightly build installation, categories still showed up in English, despite de fact that the system was properly set up to use Portuguese.

I was instructed in the forum to delete ~/config/cache/HaikuDepot and that worked for me, but maybe other users are having the same issue.

Attachments (3)

ls.txt (483 bytes ) - added by victordomingos 4 years ago.
ls -la ~/config/cache/HaikuDepot/
debug.txt (788.1 KB ) - added by victordomingos 4 years ago.
HaikuDepot -v debug
reference-all_pt.json.gz (4.5 KB ) - added by victordomingos 4 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 by apl-haiku, 4 years ago

I have just tried this and am unable to see the problem. I am able to switch between;

  • English
  • German
  • Portuguese

In each case the HaikuDepot application correctly downloads the correct reference data into the directory ~/config/cache/HaikuDepot;

  • reference-all_de.json.gz
  • reference-all_en.json.gz
  • reference-all_pt.json.gz

I am able to switch between languages using the "Locale" preferences application and each time I restart HaikuDepot it shows the correctly localized package categories.

I am able to see in the trace log that the language is being detected and setup correctly;

...
set preferred language [de]
...

An older Haiku install may have an older HaikuDepot desktop application version which may not support the category localization by download data down from HDS, but this cannot be solved except through upgrading.

Can you please provide steps to reproduce the problem.

comment:2 by victordomingos, 4 years ago

So, I am not sure I know how to provide the information you need, but I still have a system that presents this issue. So, I had a 64bit VM with a nightly build that I kept updated regularly by using SoftwareUpdater, and there was were I first noticed it. Then by clearing the cache and reopening the application it was solved.

I have another computer with native 64 bit nightly, which I have also updated just today (hrev54287) and the same happens there, it is configured to Portuguese, but it still displays the categories in English. I haven't removed the HaikuDepot caches in that computer, so I would be able to do further inspection if need and instructed.

comment:3 by apl-haiku, 4 years ago

Hi Victor; can you please open a terminal and copy-paste the output of the following command into this ticket;

ls -la ~/config/cache/HaikuDepot

Please see this page describing how to get the HaikuDepot trace log. Please capture the log as HaikuDepot starts up and attach the log to this ticket. That will hopefully provide me with some clues.

Last edited 4 years ago by apl-haiku (previous) (diff)

by victordomingos, 4 years ago

Attachment: ls.txt added

ls -la ~/config/cache/HaikuDepot/

by victordomingos, 4 years ago

Attachment: debug.txt added

HaikuDepot -v debug

comment:4 by victordomingos, 4 years ago

I have attached the terminal output as text files. Please see above.

comment:5 by diver, 4 years ago

Keywords: localization added; localisation cache removed

comment:6 by apl-haiku, 4 years ago

Can you please attach the file reference-all_pt.json.gz from this host, or alternatively check to see if this file contains Portuguese localizations of the package categories.

Can I also check; you definitely checked this after the HDS deployment was completed that contained your Portuguese localizations?

by victordomingos, 4 years ago

Attachment: reference-all_pt.json.gz added

comment:7 by victordomingos, 4 years ago

As of hrev54154+111 (x86_64), the issue is still present. Apparently the cache file you mentioned does not contain the portuguese strings, but I am attaching it anyway.

I am going to do a regular software update today, and if anything changes I will report immediatly.

comment:8 by victordomingos, 4 years ago

I updated to hrev54154+113 and the issue persists.

comment:9 by apl-haiku, 4 years ago

Thanks for the extra information. I can see the problem is in the calculation of the modify timestamp of the reference data in HDS. I will take a look into that soon, but the fix will be in HDS.

comment:10 by apl-haiku, 4 years ago

This fix is in change 242bdbe162da2a943d2e359535056aa617e960aa in HDS which will go into the next version 1.0.122 which may be a while away.

comment:11 by apl-haiku, 3 years ago

Resolution: fixed
Status: newclosed

Was fixed in HDS.

Note: See TracTickets for help on using tickets.