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

Suggestion: Accept a second return value from the translator function #162

Open
jcrmatos opened this issue Jan 30, 2019 · 1 comment
Open

Comments

@jcrmatos
Copy link

Please accept a second return value from the translator function (if possible make it an optional one) so that we can return not only the translated string, but also the underline position. The underline position is important for menu items and buttons (at least), and it changes with the language used.

@alejandroautalan
Copy link
Owner

Tip for this issue for future implementation:

  • Allow to pass a translator object to the builder,
  • This translator class/object will have a translate method that will receive the string to translate and the current widget.
  • So the function can modify the widget according to translation.
  • Also will need to move translation from xml loading (Uidefinition) to widget creation and configuration.

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

No branches or pull requests

2 participants