DiscordSRV

DiscordSRV

86.8k Downloads

Localize messages to Japanese

Scarsz opened this issue · 19 comments

commented

639-1 code is ja, need to modify util/LangUtil.java & add appropriate resource files

Only Japanese person I know is @ucchyocean, he implemented LunaChatHook so he'll probably be able to help out with this as his userbase coincides with ours as far as Japanese users go

commented

Hi @Scarsz ,
OK, I understood. Leave it to me.

commented

Any ETA for this @ucchyocean?

commented

I will send PR, today or tomorrow.

commented
commented

#143

I'll investigate the loading issues, seems to just be a problem with SnakeYAML and Japanese characters or something

commented

@ucchyocean Japanese translations seem to work fine for me, can't reproduce your issue

[Thu, 23. Mar 2017 15:45:07 INFO] [DiscordSRV] チャットプラグインへの接続は一つもありません
[Thu, 23. Mar 2017 15:45:07 INFO] [DiscordSRV] 色: {3498DB=, 71368A=, 95A5A6=, AD1457=, 11806A=, 206694=, 1ABC9C=, 992D22=, E67E22=, A84300=, E74C3C=, 2ECC71=, 979C9F=, 607D8B=, 99AAB5=, F1C40F=, 1F8B4C=, E91E63=, 9B59B6=, C27C0E=, 546E7A=}
commented

Oh, really?!
In my Windows10 environment, I cannot load it yet.
Which OS did you use when checking a reproduction confirmation? Windows, Macintosh, or Linux?

commented
commented

Hi @Scarsz ,
I made Japanese translation resource messages.
ucchyocean@79b26c2

But, something wrong. DiscordSRV cannot be loaded on ja_JP environment.
Maybe, DiscordSRV cannot handle UTF-8 encording message resource file for now.
I have to do some debug before send PR.

commented

Any error to go with?

commented

Thanks.

Is it an issue specific to my environment?
I will ask other Japanese developers to do the test as well.

commented

Specific to your environment? Don't know but I have a strong feeling that it's not. Maybe you were running an outdated dev build of DiscordSRV?

Definitely ask other Japanese developers to test the latest dev build though.

commented

OK, I see.
I will re-build and re-test it.

commented
commented

Oh, your work is very quickly 👍

commented

I re-built and re-tested it, but I could not load the plugin correctly yet.

It seems that the plugin is reading the message resource file with ANSI encoding. This hinders internationalization of plugins.

I sent new pull request.
#145
Please review this.

commented

Go ahead and try the latest snapshot from the build server, http://scarsz.tech:8080/job/DiscordSRV/223/artifact/target/DiscordSRV-Build-13.0-SNAPSHOT-223.jar. If it loads for you, Japanese translations are good to go.

commented

Good to hear. 😊

commented

OK!
I tried 13.0-SNAPSHOT-223. It works correctly!
Thanks.