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

[Help wanted] Improve translations #142

Open
pd4d10 opened this issue Jan 5, 2021 · 14 comments
Open

[Help wanted] Improve translations #142

pd4d10 opened this issue Jan 5, 2021 · 14 comments
Labels
help wanted Extra attention is needed

Comments

@pd4d10
Copy link
Owner

pd4d10 commented Jan 5, 2021

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 pd4d10 added the help wanted Extra attention is needed label Jan 5, 2021
@pd4d10 pd4d10 pinned this issue Jan 5, 2021
@RickyM7
Copy link
Contributor

RickyM7 commented Jan 11, 2021

@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
Copy link
Owner Author

pd4d10 commented Jan 11, 2021

Good idea! Which platform would you suggest?

@RickyM7
Copy link
Contributor

RickyM7 commented Jan 11, 2021

@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
Copy link
Contributor

1hiking commented Jan 28, 2021

I would happily contribute in WebLate

@pd4d10
Copy link
Owner Author

pd4d10 commented Jan 30, 2021

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
Copy link
Contributor

What about Crowdin? Seems to be free.

Screenshot_20210130-123500.png

@RickyM7
Copy link
Contributor

RickyM7 commented Jan 30, 2021

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
Copy link
Owner Author

pd4d10 commented Jan 30, 2021

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
Copy link
Owner Author

pd4d10 commented Feb 3, 2021

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 #180 (comment))

Does anyone know how to solve this?

@pd4d10
Copy link
Owner Author

pd4d10 commented Feb 14, 2021

Submitted an issue to weblate repo: WeblateOrg/weblate#5427

@pd4d10
Copy link
Owner Author

pd4d10 commented Feb 15, 2021

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

@pd4d10 pd4d10 changed the title [Help wanted] Translation [Help wanted] Improve translation Feb 27, 2021
@pd4d10 pd4d10 changed the title [Help wanted] Improve translation [Help wanted] Improve translations Feb 27, 2021
@linsui
Copy link
Contributor

linsui commented Feb 27, 2021

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

@pd4d10
Copy link
Owner Author

pd4d10 commented Feb 27, 2021

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
Copy link
Contributor

Tealk commented Mar 31, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants