DarkPacks / SevTech-Ages

SevTech: Ages is a massive Minecraft modpack packed with content and progression.
https://minecraft.curseforge.com/projects/sevtech-ages
GNU General Public License v3.0
229 stars 79 forks source link

Chinese translation was unreadable code #3726

Closed luzeas closed 5 years ago

luzeas commented 5 years ago

How should the latest version be translated into Chinese? Where are the titles and descriptions of the achievement? I don't know where to start. Would you please tell me where the translated documents are? thanks.

Streamcyper commented 5 years ago

The language localization file for advancments and tips is located under \resources\sevtechages\lang I would guess that to translate it you could just copy one of those and start working out from that. The name of the file would then be " zh_CH " I'm guessing (just running of from https://wpastra.com/docs/complete-list-wordpress-locale-codes/ "

sam-kirby commented 5 years ago

Take a copy of this file: https://github.com/DarkPacks/SevTech-Ages/blob/master/src/resources/sevtechages/lang/en_us.lang (or if you understand French or Russian better, use that as a starting point!)

Rename it as @Streamcyper described above, though keep it lower case.

For each line, leave everything on the left of the equals sign as it is. Replace everything on the right with your translation.

When you're done, and if you're happy to share what you've done for inclusion in the pack, it would be great if you could open a pull request.

luzeas commented 5 years ago

Emmm,all of the Chinese is unreadable code. Changing to utf8 and Unicode doesn't help either. What went wrong?

luzeas commented 5 years ago

360截图17130410104136129 360截图18550210336439

This is translated,But the text in the game is garbled Transcoding is fine

sam-kirby commented 5 years ago

Would you mind uploading a copy of the file you're working on here and I'll take a look at it. As there is a Russian translation using the Cyrillic alphabet it seems the mod is capable of displaying unicode characters and so hopefully this is just an issue with encoding.

luzeas commented 5 years ago

This is the file being translated https://github.com/luzeas/minecraft

sam-kirby commented 5 years ago

It does seem to be an encoding issue, file downloaded from your repo is ISO-8859-1 but displayed as though it is UTF-8

When converted to UTF-8 it works in Minecraft.

Screenshot 2019-04-19 at 16 10 28
luzeas commented 5 years ago

=。= Emmmm,What operating system do you use?Windows?Linux? The file will change from UTF-8 to ANSI when star game every time.

sam-kirby commented 5 years ago

Here is a correctly encoded version of your file, download it and work from that. Works on Windows and Linux.

luzeas commented 5 years ago

I have found the reason. Resource loader will force a change to the language file encoding,consequently , Chinese characters are unreadable code.Have you fixed it? Hopefully a new version will be released soon and fix this issue

sam-kirby commented 5 years ago

Someone has offered a Chinese Localisation for SkyFactory 4, you may be able to follow their example or ask how they've generated their lang file to aid in your translation of SevTech?

https://github.com/Darkosto/SkyFactory4/pull/22

xpesir commented 5 years ago

使用unicode是可行的,但是需要切换一下minecraft的语言 It's possible to use unicode, but you need toSwitch the language of minecraft.