Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

Culture Switch - Companions
Lluid  [开发者] 2023 年 1 月 2 日 上午 3:57
Localization (feel free to contribute with your translation !)
If you want to contribute to a translation (to a language that is supported by the game), this is the place !

You can either :
- translate the text elements below directly in this discussion, and I'll include your version in the next update but with no guarantee that it's valid.
- add your translation in your mod files and test it yourself before posting here (preferred).

How to test your translation in game :
Translated texts are listed in a xml file in the folder \"thismodule"\ModuleData\Languages.
To find the path to this module, it usually is in
C:\Program Files (x86)\Steam\steamapps\workshop\content\261550\2905239873
(the first number refers to the game and the second one is this module's ID).

In Languages, you should find the "FR" folder that I made for the french version, containing two files. All you have to do is do the same for your language.

For the "languageData.xml" file you can find examples in the module Modules\Native (look for your language folder), and simply point to one file name, adjusted to the name of the other file in your folder.

Content of the xml file that contains lines to translate :
You just have to change the language and text entries.
<?xml version="1.0" encoding="utf-8"?> <base xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="string"> <tags> <tag language="English" /> </tags> <strings> <string id="CCSMOD01T" text="What do you think of this settlement's culture ?"/> <string id="CCSMOD02T" text="This is my culture, I feel like at home here."/> <string id="CCSMOD03T" text="I feel like a foreigner here. Don't you ?"/> <string id="CCSMOD04T" text="What a beautiful settlement. I'm starting to see why you're so attached to your culture."/> <string id="CCSMOD05T" text="This shouldn't happen (culture switch mod error)"/> <string id="CCSMOD06T" text="..."/> <string id="CCSMOD07T" text="Would you like to convert to my culture ?"/> <string id="CCSMOD08T" text="Very Good."/> <string id="CCSMOD09T" text="Yes, my {?PLAYER.GENDER}lady{?}lord{\?}. I'm honored to be considered as one of yours."/> </strings> </base>

If your language requires it, you can also use the DIALOG_PARTNER_GENDER variable like this,
{?DIALOG_PARTNER_GENDER}text if female{?}text if male{\?}
similarly to the PLAYER.GENDER variable used in the english version.
最后由 Lluid 编辑于; 2023 年 1 月 2 日 上午 4:01
< >
正在显示第 1 - 1 条,共 1 条留言
Novice 2024 年 8 月 6 日 下午 5:52 
language_data

<?xml version="1.0" encoding="utf-8"?> <LanguageData id="Türkçe" name="Türkçe" subtitle_extension="tr-TR" supported_iso="tr,tur,tr-tr" text_processor="TaleWorlds.Localization.TextProcessor.LanguageProcessors.TurkishTextProcessor" under_development="false"> <LanguageFile xml_path="TR/CCS_strings_tr.xml" /> </LanguageData>


CCS_strings_tr

<?xml version="1.0" encoding="utf-8"?> <base xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="string"> <tags> <tag language="Türkçe" /> </tags> <strings> <string id="CCSMOD01T" text="Bu yerleşim yerinin kültürü hakkında ne düşünüyorsun?"/> <string id="CCSMOD02T" text="Burası benim kültürüm, burada kendimi evimde gibi hissediyorum."/> <string id="CCSMOD03T" text="Burada kendimi yabancı gibi hissediyorum. Sen hissetmiyor musun?"/> <string id="CCSMOD04T" text="Ne güzel bir yerleşim yeri. Kültürünüze neden bu kadar bağlı olduğunuzu anlamaya başlıyorum."/> <string id="CCSMOD05T" text="Bu olmamalıydı?! (culture switch mod error)"/> <string id="CCSMOD06T" text="..."/> <string id="CCSMOD07T" text="Benim kültürüme geçmek ister misin?"/> <string id="CCSMOD08T" text="Bu oldukça iyi!"/> <string id="CCSMOD09T" text="Evet, {?PLAYER.GENDER}leydim{?}lordum{\?}. Sizlerden biri olarak kabul edilmekten onur duyarım."/> </strings> </base>


I tested it in game and it works in the current version.
最后由 Novice 编辑于; 2024 年 8 月 6 日 下午 7:45
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50