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

[IDE] No "Increase Font Size"/"Decrease Font Size" in .po files #6815

Closed
ReAlUA opened this Issue Oct 11, 2017 · 5 comments

Comments

4 participants
@ReAlUA
Contributor

ReAlUA commented Oct 11, 2017

Strings "Increase Font Size" and "Decrease Font Size" (Editor.java) not exist in .po files so they are can't be translated on transifex.

Looks like some script must be launched manually for updating .po files here and on IDE translation project.

@facchinm

This comment has been minimized.

Show comment
Hide comment
@facchinm

facchinm Oct 11, 2017

Member

They should be, since they are wrapped in a tr() (see

JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
) .
@cmaglie is there any special procedure we should follow to tell Transifex to pick up that strings?

Member

facchinm commented Oct 11, 2017

They should be, since they are wrapped in a tr() (see

JMenuItem increaseFontSizeItem = newJMenuItem(tr("Increase Font Size"), '+');
) .
@cmaglie is there any special procedure we should follow to tell Transifex to pick up that strings?

@feikname

This comment has been minimized.

Show comment
Hide comment
@feikname

feikname Oct 11, 2017

Contributor

@facchinm @ReAlUA

The README file present in arduino-core/src/processing/app/i18n has the answers for your questions.

Contributor

feikname commented Oct 11, 2017

@facchinm @ReAlUA

The README file present in arduino-core/src/processing/app/i18n has the answers for your questions.

@ReAlUA

This comment has been minimized.

Show comment
Hide comment
@ReAlUA

ReAlUA Oct 11, 2017

Contributor

@feikname
Is any Transifex user can push to Arduino IDE 1.5 project?
Anyway, I can't make changes in arduino/Arduino repository but only in forked one. I think it is not a good idea to do this (standard) job via fork & pull request.

Contributor

ReAlUA commented Oct 11, 2017

@feikname
Is any Transifex user can push to Arduino IDE 1.5 project?
Anyway, I can't make changes in arduino/Arduino repository but only in forked one. I think it is not a good idea to do this (standard) job via fork & pull request.

@cmaglie cmaglie closed this in 8199761 Oct 13, 2017

@cmaglie

This comment has been minimized.

Show comment
Hide comment
@cmaglie

cmaglie Oct 13, 2017

Member

A change in the "translatable" strings in the code is propagated to transifex in the following way:

  1. the script arduino-core/src/processing/app/i18n/update.sh en must be run (with the parameter en), to update the files Resources_en.po and Resources_en.properties. All the new/changed strings are loaded into those files and they can be commited together with the patch (if the author knows how to do it and he/she remembers to do it).

  2. An admin of the transifex project (me in this case), picks the new Resource_en.po, that is the base language, and update the resource on transifex. This action will update all the strings to be translated on the other languages.

This is enough to allow translators to work on new strings.

  1. Before a release, I run the pull.sh with -a to donwload from transifex all the language resources that have been updated by translators in the meantime so they can be included in the next release.
Member

cmaglie commented Oct 13, 2017

A change in the "translatable" strings in the code is propagated to transifex in the following way:

  1. the script arduino-core/src/processing/app/i18n/update.sh en must be run (with the parameter en), to update the files Resources_en.po and Resources_en.properties. All the new/changed strings are loaded into those files and they can be commited together with the patch (if the author knows how to do it and he/she remembers to do it).

  2. An admin of the transifex project (me in this case), picks the new Resource_en.po, that is the base language, and update the resource on transifex. This action will update all the strings to be translated on the other languages.

This is enough to allow translators to work on new strings.

  1. Before a release, I run the pull.sh with -a to donwload from transifex all the language resources that have been updated by translators in the meantime so they can be included in the next release.
@ReAlUA

This comment has been minimized.

Show comment
Hide comment
@ReAlUA

ReAlUA Oct 13, 2017

Contributor

Thanks! I just made a translation of new lines for the Ukrainian on Transifex :-)
And check it by ./pull.sh uk in local clone.

Contributor

ReAlUA commented Oct 13, 2017

Thanks! I just made a translation of new lines for the Ukrainian on Transifex :-)
And check it by ./pull.sh uk in local clone.

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