Qwant / qwantmaps

Central repository for Qwant Maps resources
https://www.qwant.com/maps/
Apache License 2.0
380 stars 34 forks source link

Open translations for more languages in Transifex #147

Closed ticotaco72 closed 2 years ago

ticotaco72 commented 3 years ago

Hello! I would like to translate at least a bit of Qwant maps into Polish. But to do it you(project maintainers) have to accept the requested language in transifex. Over 30 languages are waiting for approval in Transifex to start translations. I have seen Polish as requested on Transifex over 2 weeks ago or more(similar for other languages). How are we supposed to contribute if you aren't active there? Additionally (probably depending on your Transifex configuration) you'll need to accept every new member of every translator team.

sdrll commented 2 years ago

Hi, thank you for your message. We would like to extend at least to all European languages, but we have internals discussions about Transifex. The worfklow could change in the next months.

Charlotte-Ziegler commented 2 years ago

Hello I confirm that we are not using Transifex anymore.

ticotaco72 commented 2 years ago

So how can we translate now?

remi-dupre commented 2 years ago

I suppose the best way would now be to open a pull request in https://github.com/Qwant/erdapfel by editing the .po files with poedit. (@pascaloliv @xem could probably confirm as I'm less comfortable with the process)

We do realize that this may be less convenient though, we are open to suggestions and willing to help :wink:

xem commented 2 years ago

Hello @ticotaco72, sorry for the delay. Thank you for proposing your help to add Polish translations in Qwant Maps! Unfortunately, the Web interface of Transifex is no longer useable to do this, but there's a solution:

It should look like this:

image

Some strings have a singular form and a plural form, for example "%d room" / "%d rooms". (where %d is a number) Contrary to English, Polish has 3 plural forms, so you also need to go in the translation properties and add this expression to handle every plural form:

nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);

image

Then you will see that every pluralized string will be translateable into 3 different forms. (the "1" form, then the "2/3/4" form, then the 0/5/6/7/8/9 form). Click each tab to edit the three forms.

image

When you're done, you can open a PR.

Thank you!