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

Fix English translations not used despite being preferred #3822

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MatthiasKunnen
Copy link

When specifying the preferred language on Linux, the $LANGUAGE env var is used. See https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html.

Example:
$ LANGUAGE=en:nl flameshot

Expected:
flameshot should be in English as this is a localization that flameshot provides. If English would not be supported, it should fall back to using Dutch (nl).

Actual:
flameshot uses Dutch translations.

Cause:
If an empty translation file for the base language (here "en") is not provided, the base language is only used as a fallback.
See https://bugreports.qt.io/browse/QTBUG-69196

Additional search keywords:

  • $LANGUAGE not respected
  • Wrong language used

When specifying the preferred language on Linux, the $LANGUAGE env var
is used. https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html

Example:
$ LANGUAGE=en:nl flameshot

Expected:
flameshot should be in English as this is a localization that flameshot provides.
If English would not be supported, it should fall back to using Dutch (nl).

Actual:
flameshot uses Dutch translations.

Cause:
If an empty translation file for "en" is not provided, English is only
used as a fallback.
See https://bugreports.qt.io/browse/QTBUG-69196
@mmahmoudian
Copy link
Member

Thank you for the PR and the detailed explanations. Looks good to me. Let's just wait for one more dev to review the PR too.

@mmahmoudian mmahmoudian added this to the v13 milestone Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants