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

widget labels are not localized (fails to override locale) #200

Open
forrestguice opened this issue May 9, 2018 · 1 comment
Open

widget labels are not localized (fails to override locale) #200

forrestguice opened this issue May 9, 2018 · 1 comment

Comments

@forrestguice
Copy link
Owner

forrestguice commented May 9, 2018

Tested using v0.8.1 w/ api15, api19, and api25. The bug is in all versions.
Some of the widget labels fail to localize despite having fully translated strings. Note that other parts of the app correctly localize these strings.

To reproduce..

  1. Navigate to Settings->Language Settings .. change the language to user-defined.
  2. Select a language w/ a complete translation (e.g. Basque, German, Esperanto, or Polish).
  3. Add a 2x1 moon widget to the homescreen; check "Show Labels".
  4. Observe the new widget - its fully localized except for the label (moon phase text).
  5. Resize the widget; the problem is also apparent in the 1x1 moon widgets and 3x1 moon widget.

The bug doesn't occur when the locale is set at the OS level (only the override behavior is affected).

@forrestguice
Copy link
Owner Author

The bug doesn't affect all labels, only the ones defined in the xml layout. Other text (that is assigned w/ setText) is correctly localized. It seems that the widgets do not fully override the locale - while the Resources (strings) are localized, the layouts are not.

The app doesn't currently provide any right-to-left languages, but supposing it did, I think this would also be broken for the same reason.

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

No branches or pull requests

1 participant