Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Translate Addictive Community using our new i18n tool! #132

Open
3 of 4 tasks
brunnopleffken opened this issue May 20, 2017 · 18 comments
Open
3 of 4 tasks

Translate Addictive Community using our new i18n tool! #132

brunnopleffken opened this issue May 20, 2017 · 18 comments

Comments

@brunnopleffken
Copy link
Owner

brunnopleffken commented May 20, 2017

  1. Go to this link: https://poeditor.com/join/project/8K9tfyp8T6
  2. Select your language (or add a new one) and join the project
  3. In the project's dashboard, select your language:
  4. Start translating! On the left you'll see the original string in English as reference and the namespace. On the right is your work space. Just write the translated string and press TAB.

screen shot 2017-05-19 at 23 02 26

As you all know, those %s and %d are variables. Don't change it or remove it!


Any other language is welcome!

@halojoy
Copy link
Contributor

halojoy commented May 20, 2017

Good work, Brunno.
I will pop in at POEditor.com later today. Or tomorrow.
I already have an account.

@zalexstudios
Copy link

Very nice!
I'm already working!
Thanks!

@zalexstudios
Copy link

I translated everything!

@brunnopleffken
Copy link
Owner Author

@zalexstudios Really? That's awesome! I'll see it, and merge to this repository.

@brunnopleffken
Copy link
Owner Author

And by the way, feel free to put your own idiomatic expressions or synonyms when necessary. Don't restrict yourself to literal translations. For example, in Portuguese there's no single word for "case-sensitive", so I have to write "differentiate capital and lowercase letters". 😝

@zalexstudios
Copy link

Ok! Start translation to Chineese lng. it's take a lot of time!

@brunnopleffken
Copy link
Owner Author

@zalexstudios No problems! Take your time. ;)

And by the way, I already committed the translations and modified both the installer and Admin CP to manage the JSON files! Just git pull/clone and reinstall Addictive Community, and you'll see your translation in action.

Then you can navigate through it, check if everything is OK.
I already made some changes in pt_BR because some terms were too long, breaking the layout.

@zalexstudios
Copy link

Hi! In file: kernel/Html.php
This string : $template .= "<li class="label">Pages:";
This word is not in the translated files!
Translation to Russian by hand :-)

@zalexstudios
Copy link

All is OK!
Has corrected some words. When answering a new topic, the field is an attachment. There is a button "Upload". In which file is this line? Need translate.
Corrected file i'l send to Brunno Email.

@brunnopleffken
Copy link
Owner Author

brunnopleffken commented May 23, 2017

Nice! Thanks for your report.

About missing translations, I need to create the key in POEditor, so the new field appears in every language (because we must add the missing translation also in en, pt-br, ru, sv, etc.) and change de .phtml file to use the __("translation.key") function. Maybe... I don't know, HAHAHA. A new issue just to report missing translation keys?


@halojoy @xQuByte
Translations were stucked. Yesterday I upgraded the POEditor to their cheapest plan ($15) and now we have up to 3000 strings and I think now you can proceed without any trouble.

@halojoy
Copy link
Contributor

halojoy commented May 24, 2017

I finally visited POEditor.com after you flushed swedish.
Now I have translated 3 pages out of the 18.
It is really a lot of work. But I think we can do it.

The translation to swedish will not be 100% perfect.
It is a bit like being blind when one can not see the proper context for the phrase.
But most of it will do.

@brunnopleffken
Copy link
Owner Author

Indeed. Now we're unable to check the translation in real-time.
The only way you have to check the term's context is this:

screen shot 2017-05-24 at 11 30 52

I kept the first JSON node as the controller name.

But don't worry! When your translation is ready, I'll merge it so you can review it. Actually POEditor has integration with GitHub but I still don't now how it works (does it exports directly to the repository?), so need to explore it with caution: I don't want to mess up everything.

@halojoy
Copy link
Contributor

halojoy commented Jul 4, 2017

Got the error message:
'All strings are used. Please contact the project owner'

@brunnopleffken
Copy link
Owner Author

I've downgraded the plan to 'Free' until we find a better solution than this. 🙄

I mean... It's nice because it's collaborative and you can edit the entries very fast, but there's a LOT of entries (and there's more to come, because the article module is already in development) and as you said before: you're out of context, unable to see the actual result. If you want it, you need to download the JSON file, replace it in localhost and then refresh the page. If it's incorrect: edit in POEditor, download it, replace it, and then refresh the page again.

Maybe this kind of system may work right into the Admin CP: using JS to automatically save the changes (the same way POEditor does: write, TAB, write, TAB), refresh the page and yaay! It's right there!

But right now i'm a little busy with the 'Articles' stuff.

@arcestia
Copy link

arcestia commented Jul 5, 2017

I can help with Chinese and Indonesian.
i fluently speak some of asian lng

@brunnopleffken
Copy link
Owner Author

@arcestia Nice! This is just great!
As I said, I've downgraded the plan in POEditor to their free plan. So, the limit of strings has reached.

But...

If you and @halojoy want to proceed with the translation maybe I can upgrade the plan just for this month so you can finish the translation. So they'll be released yet in the next version (v0.13).

@arcestia
Copy link

arcestia commented Jul 6, 2017

no need i can download the english json file and translated that uploaded to POEditor

@brunnopleffken
Copy link
Owner Author

Nice! This will work too... 😆
And by the way, thanks for your collaboration!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants