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

Translating Arduino-IDE using Theia's nls API #545

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

msujew
Copy link
Contributor

@msujew msujew commented Oct 12, 2021

Hi team,

this PR adds translation keys for all user-facing strings inside of the Arduino-IDE using the Theia localization (nls) API.

Be aware that this does not add actual translations for the app. However, some strings are nevertheless translated, as they are contained by the vscode language pack.

How to test

  1. Start the app and observe that all user-facing strings are still correct (in English)
  2. Download a language pack of your choice from the vscode marketplace/ovsx registry.
  3. Unzip it and place it into the plugins folder
  4. Start the application and run the Configure Display Language command and change to your new language
  5. Open the File menu.
  6. Observe that some menu entries have been changed.

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2021

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Oct 12, 2021
@silvanocerza
Copy link
Contributor

Great jobs! It works really well and without issue. Approving. 👍

image
image

@fstasi
Copy link
Contributor

fstasi commented Oct 14, 2021

@msujew the labels that are not translated are those coming from theia, is this assumption correct?

@msujew
Copy link
Contributor Author

msujew commented Oct 14, 2021

@fstasi Yes and no. Those coming from Theia are not translated (as the appropriate PR isn't merged yet), as well as those that are specifically for your app (nls ids starting with arduino/*), since the Transifex pipeline isn't in place yet.

The only ones that are currently translated are the ones that are specified inside of the arduino-ide (like close/open/exit/etc.) but exist inside of the vscode language packs.

@fstasi fstasi merged commit 11b75bd into arduino:main Oct 18, 2021
@msujew msujew deleted the main-app-i18n branch October 20, 2021 15:16
@rsora rsora mentioned this pull request Jan 11, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants