junrall Posted January 13 Share Posted January 13 If I have a modlet that requires changing some of the existing localization text, how do I go about it? I've tried adding a localiazation.txt within my mod's config folder with the changes. For instance, the following line is in the vanilla localization file: quest_BasicSurvival8_subtitle,Quest,Quest Info,,,Build a Campfire,,Mache ein Lagerfeuer,Enciende una fogata.,Construire un feu de camp,Costruisci un falò,キャンプファイヤーをおこす,캠프파이어 건설,Zbuduj ognisko,Faça uma Fogueira,Сложить костер,Kamp Ateşi Yak,点燃篝火,生營火 I want to change "Build a Campfire" to "Build a Firepit" I tried adding the following line to my localization file but this did not work: quest_BasicSurvival8_subtitle,Quest,Quest Info,,,Build a Firepit,,Mache ein Lagerfeuer,Enciende una fogata.,Construire un feu de camp,Costruisci un falò,キャンプファイヤーをおこす,캠프파이어 건설,Zbuduj ognisko,Faça uma Fogueira,Сложить костер,Kamp Ateşi Yak,点燃篝火,生營火 I know I can just do the following in xml using xpath but, I sure would like to know how to do the same via the localization file: <!-- <property name="subtitle_key" value="quest_BasicSurvival2_subtitle"/> --> <property name="subtitle" value="Craft A Firepit"/> Thanks in advance for any guidance! Link to comment Share on other sites More sharing options...
BFT2020 Posted January 13 Share Posted January 13 (edited) It works, might want to check your changes to see if you made a mistake or if it is not loading correctly This is what I did in one of my mod localization files quest_BasicSurvival8_subtitle,Quest,Quest Info,,,Build a FirePit,,,,,,,,,,,,, This is what I saw in-game Edited January 13 by BFT2020 (see edit history) Link to comment Share on other sites More sharing options...
junrall Posted January 15 Author Share Posted January 15 On 1/13/2024 at 9:59 AM, BFT2020 said: It works, might want to check your changes to see if you made a mistake or if it is not loading correctly Thank you, turns out I messed up the Key at the top of my localization file. Link to comment Share on other sites More sharing options...
junrall Posted January 15 Author Share Posted January 15 1 hour ago, junrall said: Thank you, turns out I messed up the Key at the top of my localization file. I meant the table header at the top. Link to comment Share on other sites More sharing options...
FramFramson Posted January 16 Share Posted January 16 On 1/15/2024 at 12:50 AM, junrall said: I meant the table header at the top. Most of us do refer to that as the key, so no worries - you had it right the first time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now