pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.56k stars 134 forks source link

[Help wanted] Improve translations #142

Open pd4d10 opened 3 years ago

pd4d10 commented 3 years ago

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

RickyM7 commented 3 years ago

@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.

pd4d10 commented 3 years ago

Good idea! Which platform would you suggest?

RickyM7 commented 3 years ago

@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).

1hiking commented 3 years ago

I would happily contribute in WebLate

pd4d10 commented 3 years ago

OK, let's give it a try!

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

image

shreyas1599 commented 3 years ago

What about Crowdin? Seems to be free.

Screenshot_20210130-123500.png

RickyM7 commented 3 years ago

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.

pd4d10 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

pd4d10 commented 3 years ago

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

linsui commented 3 years ago

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

pd4d10 commented 3 years ago

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.

Tealk commented 3 years ago

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