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

Untranslated strings on splash screen / prompt window #610

Open
scls19fr opened this issue May 5, 2021 · 5 comments
Open

Untranslated strings on splash screen / prompt window #610

scls19fr opened this issue May 5, 2021 · 5 comments

Comments

@scls19fr
Copy link
Contributor

scls19fr commented May 5, 2021

XCSoar versions having and not having the problem

XCSoar 7.6

Expected behavior

Strings on splash screen should be translated.

"Quit" button
"What do you want to do?"

Actual behavior

Screenshot_2021-05-05-11-32-08-30_943b36a15770a48ab82837a5cf06e5e4

Steps to reproduce the behavior

  1. Set language to a non english language (Config / System / Look / Language, Input).
  2. Quit XCSoar
  3. Run XCSoar

Do you have any idea what may have caused this?

canvas.DrawText(label_position, _("What do you want to do?"));

uses _ macro not N_ macro

same for

quit_button.Create(*this, look.button, _("Quit"), rc, style,

Do you have an idea how to solve the issue?

Using N_ macro instead.

But such changes may not be enough (because I don't know XCSoar startup process enough)

@MaxKellermann
Copy link
Contributor

When that screen is displayed, XCSoar hasn't loaded any profile yet. Without a profile, your profile's language configuration is not set.

@scls19fr
Copy link
Contributor Author

Maybe profile should be loaded before this page is shown?

@MaxKellermann
Copy link
Contributor

Which profile? Profile selection comes after that.

@scls19fr
Copy link
Contributor Author

I didn't saw any option to choose a specific profile because I was only using default profile. Maybe choosing profile should simply be done before showing this page.
An other option could be to use default system language until profile is not loaded

@lordfolken
Copy link
Contributor

XCSoar uses the system locale to define a language on initial start. So we could also use this to change the start screen. If the user then loads a different language in his profile, that's a conscious choice on his behalf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants