Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I customize my localization translations? #541

Closed
clevebitr opened this issue Aug 17, 2024 · 12 comments
Closed

How do I customize my localization translations? #541

clevebitr opened this issue Aug 17, 2024 · 12 comments
Labels
question Further information is requested

Comments

@clevebitr
Copy link
Contributor

I've never touched the C# language,How do I customize a localized translation under a file like Properties/Strings.resx and run it in my game?

@sailro
Copy link
Owner

sailro commented Aug 17, 2024

No need to use C# in this case. We made the work to extract all strings to those resource files.

Strings.resx contains the default language en-us, and as an exemple you have String.fr.resx for French.

If you just want to quickly customize for your own usage only, the easiest is to directly update Strings.resx with a resource editor (like the one provided with Visual Studio).

In the end, you'll need to recompile the bits with Visual Studio.


You can also clone Strings.resx for your own language let's say Chinese simplified so Strings.zh-cn.resx and send us a PR.

This way other users will be able to use this Chinese translation when installing the Trainer using the following command:

.\Installer -l zh-cn like we do for the current French version using .\Installer -l fr

@sailro sailro added the question Further information is requested label Aug 17, 2024
@sailro
Copy link
Owner

sailro commented Aug 17, 2024

I will add more information about localization support in the main README for awareness.

@sailro sailro pinned this issue Aug 17, 2024
@clevebitr
Copy link
Contributor Author

I tried to create Strings.zh-cn.resx under the Properties folder. Will this enable other users to use Chinese translation during installation?Strings.zh-cn.resx

@clevebitr
Copy link
Contributor Author

I don't quite understand how to compile this project, could you explain in detail what I have to do?

@clevebitr
Copy link
Contributor Author

Good news, I managed to compile the modified version, but the translation was only achieved by replacing Strings.resx. I am trying to figure out how to change the localization language support through the installer

@sailro
Copy link
Owner

sailro commented Aug 18, 2024

Just create a PR using your fork. Once validated/merged, you'll be able to use the Universal Installer with the following command .\Installer -l zh-cn

@clevebitr
Copy link
Contributor Author

I've submitted a pull request, you can see if it's time right

@sailro
Copy link
Owner

sailro commented Aug 18, 2024

All good. It seems to work !

2024-08-18 10-22  (0)

@clevebitr
Copy link
Contributor Author

Thanks for the guidance! Now all users can use localized Chinese translation!

@sy748139807
Copy link

sy748139807 commented Oct 9, 2024

你好,我现在已经通过轻松安装好了,但是进去游戏加载的是英文,我不知道该怎么去汉化?我对c语言并不了解,麻烦您能讲解一下吗
Uploading 475f0cbae61ff02cff7495b1c3e1f84.png…

@clevebitr
Copy link
Contributor Author

很简单,把安装程序复制到游戏根目录,它会自动检测到游戏,在资源管理器地址栏中输入cmd打开控制台,输入"./安装程序的文件名字 -l zh-cn"来安装程序,如果你之前安装过,不必担心,它会覆盖安装,但是,在安装程序之前,请至少运行过一次游戏

@zwqute
Copy link

zwqute commented Oct 18, 2024

难以置信 现在有中文了 爱你~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants