coinbin icon indicating copy to clipboard operation
coinbin copied to clipboard

Translation support

Open ghost opened this issue 9 years ago • 8 comments

This website should allow multiple languages.

ghost avatar Aug 01 '16 10:08 ghost

I could handle Japanese.

dabura667 avatar Aug 01 '16 14:08 dabura667

Seems like a good suggestion. Anyone else able or willing to translate?

OutCast3k avatar Aug 01 '16 15:08 OutCast3k

Yes, I'm sure that many users will translate, don't forget that this project has 80 forks.

ghost avatar Aug 01 '16 16:08 ghost

But the question is, how it'll work. There are three options

  • Transifex
  • Crowdin
  • Github Pull Request

ghost avatar Aug 01 '16 16:08 ghost

Crowdin +1

I am currently manager on the crowdin projects for breadwallet, Copay, and Telegram with Getgems.

I also wrote the script for Copay to build and update translations.

Transifex confuses me, and imo makes it hard to translate.

You can get a free repo if you are open source here:

https://crowdin.com/page/open-source-project-setup-request

dabura667 avatar Aug 01 '16 22:08 dabura667

Then the question remains:

How should we handle translation?

  1. Strings are sparsed across html and js files.
  2. Angular gettext would be best suited, but this site doesn't use angular.
  3. The sites need to be static.
  4. We don't want the user to need to download all languages.

I'm thinking creating a dummy function for JS that will wrap all translatable strings like _("text")

Then for html, a "translate" attribute for the surrounding tag should work.

Then all we need to do is make a script that parses all the files and extracts them into a po format etc.

Then another script to replace those in the files and generate new html and js files in a subfolder.

Ghetto Angular gettext without Angular, basically.

Or just throw the html and js files into crowdin and hope their algorithms get it right.

dabura667 avatar Aug 01 '16 23:08 dabura667

Transifex confuses me, and imo makes it hard to translate.

Same, I prefer crowdin too.

ghost avatar Aug 02 '16 07:08 ghost

What happened with the translation suggestion ? Any progress?

zilveer avatar May 09 '17 21:05 zilveer