Skip to content
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

[Dooble] Localization support is broken. #9964

Closed
OscarL opened this issue Jan 8, 2024 · 2 comments
Closed

[Dooble] Localization support is broken. #9964

OscarL opened this issue Jan 8, 2024 · 2 comments

Comments

@OscarL
Copy link
Contributor

OscarL commented Jan 8, 2024

As seen on the forum, using Dooble in anything but English seems like a mission impossible:

  1. Dooble tries to find the .qm files under:

    • /boot/home/Translations when started via Deskbar/Tracker.
    • under a Translations subdir of the current working directory when started from the Terminal.
  2. Forcing the search path with: export DOOBLE_TRANSLATIONS_PATH=/boot/system/apps/Dooble/Translations fixes part of the issue, but even when locale -l returns plain es... Dooble wants to find a dooble_es_ES.qm file.

    Sounds like QLocale::system().name() is returning es_ES even for plain "Español" (same thing with hu_HU vs hu, etc).

  3. After doing:

    extern DOOBLE_TRANSLATIONS_PATH=/tmp/Dooble`
    cp /boot/system/apps/Dooble/Translations/dooble_es.qm /tmp/Dooble/dooble_es_ES.qm
    cp /boot/system/apps/Dooble/Translations/dooble_es.ts /tmp/Dooble/dooble_es_ES.ts
    cp /boot/system/apps/Dooble/Translations/qtbase_es.qm /tmp/Dooble/qtbase_es_ES.qm

    Dooble gives a: "Warning! the file /tmp/Dooble/dooble_es_ES.qm is perhaps incomplete. The system option has been disabled. English will be assumed. Please read Source/dooble_settings.cc, line 243".


Point 1 should be patched on our Doodle .recipe, I think.

Point 3 sounds like a Dooble issue, but also... perhaps we shouldn't be packaging translations that can't ever be used?

Point 2... no idea really. Sounds buggy that QLocale::system::name() returns es_ES for what should be just es. Bug on our Qt port? on Haiku's LocaleKit? (in any case... I think Dooble should gracefully pick up dooble_es.qm if dooble_es_ES.qm can't be found, but it does not has such logic implemented).

Putting everything here for now (for reference, in case we need to open an issue upstream).

@korli
Copy link
Contributor

korli commented Jan 8, 2024

Workaround: in a Terminal, "cd /system/apps/Dooble", then "./dooble". Switch the language to System in Settings, then restart Dooble in the terminal.

@korli
Copy link
Contributor

korli commented Jan 8, 2024

patched in c47ca39

@korli korli closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants