Coder Social home page Coder Social logo

tr about wcs HOT 5 CLOSED

thapwned avatar thapwned commented on June 1, 2024
tr

from wcs.

Comments (5)

 avatar commented on June 1, 2024

Characters cannot be displayed after translation

from wcs.

ThaPwned avatar ThaPwned commented on June 1, 2024

wcs_centertell Unable to use Chinese Translation

Characters cannot be displayed after translation

This is not an issue with WCS but the ES Emulator instead. I've been trying to find where the issues lies but haven't been able to do so.

from wcs.

 avatar commented on June 1, 2024

wcs_centertell Unable to use Chinese Translation

Characters cannot be displayed after translation

This is not an issue with WCS but the ES Emulator instead. I've been trying to find where the issues lies but haven't been able to do so.

Do you have any alternatives to make it display my translation normally, I am using the race of https://github.com/ManifestManah/Racepack-Standard

from wcs.

ThaPwned avatar ThaPwned commented on June 1, 2024

Do you have any alternatives to make it display my translation normally, I am using the race of https://github.com/ManifestManah/Racepack-Standard

A thing you could do (if you're comfortable with coding a bit yourself) is to add the translations to the resource/source-python/translations/wcs/strings.ini file (create it if it doesn't exist), and then use wcs_xtell (instead of es_tell) and wcs_xcentertell (instead of es_centertell).

So instead of (taking Archmage Proudmore as an example):
es wcs_centertell event_var(userid) event_var(es_attackername) struck you with his earthquake!
You change it to:
es wcs_xcentertell event_var(userid) archmage_proudmore_shake_victim name event_var(es_attackername)
The strings.ini file would then look like this:

[archmage_proudmore_shake_victim]
  en = "$name struck you with his earthquake!"
  zh-cn = "$name 震撼了你!"

(my apologize if I've completely butchered the translation - Google Translate's fault)
archmage_proudmore_shake_victim is the text wcs_xcentertell (and wcs_xtell for that matter) searches for, so make sure it's unique to that race as well as skill (and for multiple messages in same skill, make them unique as I've done: Added _victim for the victim's message). The name part of the command is a key it searches for in the translations. It's then being replaced by the next argument which is event_var(es_attackername).

from wcs.

 avatar commented on June 1, 2024

你有没有别的办法让它显示我的翻译,我用的是Https://github.com/ManifestManah/Racepack-Standard

您可以做的一件事(如果您对自己编写代码很满意的话)是将翻译添加到resource/source-python/translations/wcs/strings.ini文件(如果它不存在的话创建它),然后使用wcs_xtelt(而不是es_telt)和wcs_x心TEL(而不是es_中心语)。

因此,不要(以大法师Proudmore为例):
es wcs_centertell event_var(userid) event_var(es_attackername) struck you with his earthquake!
你把它改为:
es wcs_xcentertell event_var(userid) archmage_proudmore_shake_victim name event_var(es_attackername)
这个strings.ini然后,文件将如下所示:

[archmage_proudmore_shake_victim]
  en = "$name struck you with his earthquake!"
  zh-cn = "$name 震撼了你!"

(如果我把翻译全毁了--谷歌翻译的错误,我很抱歉)
archmage_proudmore_shake_victim是文本wcs_xcentertell(和wcs_xtell)搜索,所以确保它对该种族和技能都是独一无二的(对于同一技能中的多条消息,让它们像我所做的那样独一无二:_victim受害者的信息)。这个name命令的一部分是它在翻译中搜索的键。然后,它被下一个参数所取代,这个参数是event_var(es_attackername).

Thank you for your method. I'll try

from wcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.