wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Translation strings missing

Open Kirvx opened this issue 11 years ago • 8 comments

Hi :)

HOME,RECEIVE and HISTORY are missing from template.pot

Kirvx avatar Apr 24 '15 21:04 Kirvx

"Personal Wallet" above the balance too. And DELETE WALLET

Kirvx avatar Apr 25 '15 11:04 Kirvx

screenshot_2015-04-26-06-12-10 screenshot_2015-04-26-06-12-04 screenshot_2015-04-26-06-11-51 screenshot_2015-04-26-06-11-19 screenshot_2015-04-26-06-10-47 screenshot_2015-04-26-06-10-39 screenshot_2015-04-26-06-07-41 screenshot_2015-04-26-06-07-27 screenshot_2015-04-26-06-07-06

My bitcoin address Sent Received Language (日本人) → (日本語) Wallet invitation Paste invitation here Master extended private key (this shows up somewhere else translated though) If not given, a secure key will be generated BIP32 master extended private key If not given, a random key will be generated BIP32 master extended private key Import legacy wallet Importing... EMAIL Email USERNAME Username

These are the terms I could find.

dabura667 avatar Apr 25 '15 21:04 dabura667

Also, 2 of 3 etc "of" requires the number order to be reversed in Japanese so I tried using / ... But it is difficult to understand.

I will return to English "of" for the time being once I get access to a computer.

Would it be possible to use variables to represent the numbers so I could switch order.

dabura667 avatar Apr 25 '15 21:04 dabura667

screenshot_2015-04-26-06-32-35 Here's the delete wallet screen too

Need that string translatable

dabura667 avatar Apr 25 '15 21:04 dabura667

Thanks a lot for your detailed report!

We need to create a script that extract the translatable strings from the Javascript code (currently we are only exposing HTML strings). That is why there are still many strings to add. We don't want to do it by hand since it will be too difficult to maintain. Probably in the next ~10days that will be ready.

thanks

On Sat, Apr 25, 2015 at 6:33 PM, dabura667 [email protected] wrote:

[image: screenshot_2015-04-26-06-32-35] https://cloud.githubusercontent.com/assets/6586275/7334952/0f989f26-ebde-11e4-99f5-9866910e4c46.png Here's the delete wallet screen too

Need that string translatable

— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/2631#issuecomment-96282400.

BitPay.com

matiu avatar Apr 25 '15 23:04 matiu

I believe crowdin has a library to automate translations replacing in source files...

I think that is how Electrum does it

from i18n import _

some_text = _("Hey!")

Any text with _( ) around it is automatically replaced via automation

Maybe the Electrum team made it up themselves, but it seems like a good way to do it.

dabura667 avatar Apr 26 '15 16:04 dabura667

If all strings in the source were surrounded by a _( ) it might be easier to run a script that searches through each source file and looks for _( ) and replaces.

var _ = function(x){return x};

var some_result = some_function(x, y, _("Some text"))

dabura667 avatar May 08 '15 16:05 dabura667

We are using gettext for this function. Maybe we could replace gettext by _() in a the near future

cmgustavo avatar May 08 '15 16:05 cmgustavo