SevTech: Ages of the Sky

SevTech: Ages of the Sky

1M Downloads

Chinese translation was unreadable code

luzeas opened this issue · 12 comments

commented

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.

commented

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/ "

commented

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.

commented

360截图17130410104136129
360截图18550210336439

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

commented

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.

commented

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

commented

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

commented

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

commented

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

commented

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

commented

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

commented

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

commented

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