LorisYounger / VPet

虚拟桌宠模拟器 一个开源的桌宠软件, 可以内置到任何WPF应用程序
Apache License 2.0
4.63k stars 465 forks source link

Mod description text can not be translated in some cases #349

Closed j6845 closed 2 months ago

j6845 commented 2 months ago

file: info.lps

If you use a special symbol (most frequently the , ) it will geht changed to "/com" after uplading the mod. Text with "/com" inside can not be translated.

For example:

vupmod#modname:|author#creator:|gamever#11000:|ver#301:| intro#great mod/com i guess.:| itemid#0000000000:| lang#en:|modname#modname:|modname#modname:| lang#zh-Hans:|模组名称#模组名称:|modname#模组名称:| lang#zh-Hant:|模组名称#模组名称:|modname#模组名称:|

LorisYounger commented 2 months ago

I checked and found that it's because in the name, the translation file needs to be displayed in a non-escaped way. In your example, the translation is

lang#en:|great mod, i guess#great mod/com i guess:|
LorisYounger commented 2 months ago

I will support two methods for subsequent updates

LorisYounger commented 2 months ago

Is this a problem caused by the MOD maker?