Need More Info Русский - RU declensions for mods

正在查看此主题的用户

版本号
e1.7.2.306299
分支
Beta
使用过模组或未使用过模组
是,我添加了模组。

VVL99

Sergeant
Tell me how you can get declensions for the mod.
"{.FI}Южный{.aj} {.FI}империя{.nn}"
This only works on original files.

I would also like more options for translation; choice of ID, text design, use of variables.

Thanks.
 
Hi, can you elaborate your question, please? Are you asking how to decline text variables in your mod?
 
Hi, can you elaborate your question, please? Are you asking how to decline text variables in your mod?
Hi, oк.
in my mod the system of scones does not work; dynamic change in kind (gender), quantity, etc.

sorry for bad english.
 
Hmm ok. Dynamic text system depends on tags that defines how a text will change or be declined in different situations.
For example let's see your example:

C#:
frBQ9mbP | {.FI}Южный{.aj} {.FI}империя{.nn}

To handle that in the notification you sent, you'll have to clarify that the variable is to be declined as genitive case like this:

C#:
TmiSargC | Прибыл гонец от {PROPOSER_HERO.FACTION}{.g} с предложением мира.
//Прибыл гонец от Южной империи с предложением мира.

and if you want different outcomes depending on quantity and gender, you can use conditional text variables. An example:

C#:
text = new TextObject("{=*}We are doing well, my {?HERO.GENDER}lady{?}lord{\?}....");
Helpers.StringHelpers.SetCharacterProperties("HERO", CharacterObject.PlayerCharacter, parent: text);
//This will print my lady or my lord depending on the player's gender.

This can also be used for quantities:
C#:
text = new TextObject("{=*}{DAYS} {?(DAYS > 1)}days{?}day{\?}");
text.SetTextVariable("DAYS", 5);
//will print 5 days, 15 days etc or 1 day

I hope that helps.
 
another question is why tags work in mod; ...NAME, LINK, COUNT, ITEM, GENDER, FIRSTNAME, and the like, but such as; .FI, MA, FA, MI, .d, .aj, .nn and the like don't work.
for example, this is a localization mod.

Thanks.
 
最后编辑:
localization mode


<string id="TmiSargC" text="Прибыл гонец от {PROPOSER_HERO.FACTION}{.g} с предложением мира." />
original localization :
dynamic text ok - "от Южной империи"


added mod:
dynamic text not working - "от Южный империя"


Thanks.
 

附件

  • Modules.zip
    847.5 KB · 查看: 7
最后编辑:


The mod has the same tags as in the original translation, but there are no cases in the names and titles.
 
Your language id is "Русский мод" so it doesn't use Russian text processor, which is bound to "Русский". There isn't a native way to set processor for now, AFAIK. Maybe you can try to delete Russian files first and set your files' id to "Русский".
 
Your language id is "Русский мод" so it doesn't use Russian text processor, which is bound to "Русский". There isn't a native way to set processor for now, AFAIK. Maybe you can try to delete Russian files first and set your files' id to "Русский".
Yes, this method works, but then there is no way to quickly switch to the original translation.
If there was another identifier, then it would be very good, like in Chinese.
<!-- Traditional Chinese -->
<!-- Simplified Chinese -->
In any case, thanks for the help!
===
Also, do you plan to add text decoration tags such as; <b> <span style=...>?
"&lt;a style=&quot;DecreaseStyle&quot; &gt;&lt;b&gt;decrease&lt;/b&gt;&lt;/a&gt;"
Thanks.
 
Yes, this method works, but then there is no way to quickly switch to the original translation.
If there was another identifier, then it would be very good, like in Chinese.
<!-- Traditional Chinese -->
<!-- Simplified Chinese -->
In any case, thanks for the help!
Sure. I added an internal suggestion for handling localization problems you described.

Also, do you plan to add text decoration tags such as; <b> <span style=...>?
Not that I know of, no.
 
后退
顶部 底部