git-touch icon indicating copy to clipboard operation
git-touch copied to clipboard

[Help wanted] Improve translations

Open pd4d10 opened this issue 4 years ago • 14 comments

We are using WebLate to do translation works:

Workflow

  1. Go to Weblate to improve current translations or add new translations.
  2. There are still some texts which are not translatable. Here's the way:
    1. Add a key in lib/l10n/intl_en.arb
    2. Replace the text with AppLocalizations.of(context).yourNewKey in the widget
    3. Submit a pull request. After merged, these texts would be translatable at Weblate.

Status

Translation status Translation status

pd4d10 avatar Jan 05 '21 11:01 pd4d10

@pd4d10 It would be great if your project were added to some localization platform, such as Crowdin, WebLate, POEditor, etc. These platforms have free plans and make the work of translators much easier.

RickyM7 avatar Jan 11 '21 13:01 RickyM7

Good idea! Which platform would you suggest?

pd4d10 avatar Jan 11 '21 14:01 pd4d10

@pd4d10 WebLate for having more scripts that automate the process of bringing translations to repo or Crowdin by having many open source projects there. For translators both platforms are good but WebLate is a bit better (in my opinion).

RickyM7 avatar Jan 11 '21 15:01 RickyM7

I would happily contribute in WebLate

1hiking avatar Jan 28 '21 19:01 1hiking

OK, let's give it a try!

But the WebLate seems to have no free option. The trial would expire after a week.

image

pd4d10 avatar Jan 30 '21 06:01 pd4d10

What about Crowdin? Seems to be free.

Screenshot_20210130-123500.png

shreyas1599 avatar Jan 30 '21 07:01 shreyas1599

OK, let's give it a try!

But the WebLate seems to have no free option. The trial would expire after a week.

image

@pd4d10 That's weird, take a look. weblategratis

Can you take a look at this site? That's to have the Libre plan. But if it doesn't work out with WebLate, using Crowdin would be great too.

RickyM7 avatar Jan 30 '21 10:01 RickyM7

Spend some time to figure out how it works: The libre hosting approval is requested.

https://hosted.weblate.org/projects/git-touch/git-touch/

pd4d10 avatar Jan 30 '21 17:01 pd4d10

https://hosted.weblate.org/projects/git-touch/git-touch/#alerts

image

WebLate marks zh and nb as duplicated translation, which are necessary for Flutter (See https://github.com/git-touch/git-touch/pull/180#issuecomment-772168805)

Does anyone know how to solve this?

pd4d10 avatar Feb 03 '21 11:02 pd4d10

Submitted an issue to weblate repo: https://github.com/WeblateOrg/weblate/issues/5427

pd4d10 avatar Feb 14 '21 05:02 pd4d10

Temporarily solved by excluding these by language filter: ^(?!(zh|nb)$).+$

pd4d10 avatar Feb 15 '21 02:02 pd4d10

Some strings are not translatable. E.g. App Language.

linsui avatar Feb 27 '21 11:02 linsui

Some strings are not translatable

Yep, we should do something in the codebase:

  1. Add a key in lib/l10n/intl_en.arb
  2. Replace the text with AppLocalizations.of(context).yourNewKey in the widget

Then submit a pull request. These texts could be translated after merged to the main branch.

pd4d10 avatar Feb 27 '21 11:02 pd4d10

I added the German language, but I could not find some entries in the app, so it is difficult to translate them accurately.

Tealk avatar Mar 31 '21 04:03 Tealk