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

Add command line parameter to force language #199

Closed
szszszsz opened this issue Nov 28, 2016 · 2 comments
Closed

Add command line parameter to force language #199

szszszsz opened this issue Nov 28, 2016 · 2 comments
Assignees
Milestone

Comments

@szszszsz
Copy link
Member

szszszsz commented Nov 28, 2016

Add --language CLI parameter for cases where automatic language detection would not return expected results (eg. where user has different language/locale on OS than he wants to use in application).

@szszszsz szszszsz added this to the 0.6 milestone Nov 28, 2016
@szszszsz szszszsz self-assigned this Nov 28, 2016
@jans23
Copy link
Member

jans23 commented Nov 28, 2016 via email

@szszszsz
Copy link
Member Author

szszszsz commented Nov 28, 2016

Available options are listed in i18n/directory - all ts/qm pairs without the nitrokey_ prefix. Currently these are:

  • none - translation file will be selected automatically (default)
  • arabic - recently added translation for Arabic (should be selected automatically on systems with Arabic locale set)
  • de_DE - German
  • en - English (second default if there could be no language file selected automatically)

Translation files are selected automatically through locale code (like de_DE, en_GB etc.) or by language. If OS has locale other than language user wants to use, he has to run application once with desired language, eg.:
nitrokey-app.exe --language arabic
The choice will be stored in application's settings file and used on subsequent application runs (whether it is run from a terminal or not). To clear it user has to use --language switch without a param:
nitrokey-app.exe --language
Similar information regarding language switching could be obtained by running:
nitrokey-app.exe --help

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