WrathOf Posted February 20, 2013 Share Posted February 20, 2013 (edited) Download page:Language Mod Template -- v1.1 -- SANITY UPDATEDEPRICATEDThis template is no longer needed since the game now supports po files for translating the game's text. Refer to the thread below for more information:[TUTORIAL] Creating a translation using the PO FormatProvides the "english.lua" version of the "french.lua" file based on the "strings.lua" organization for easier conversion from strings.lua to a dedicated language file or when starting a new translation for the game.In order to help us all get a handle on the many custom languages and speech mods replacing the strings.lua file, I created a new english.lua template file. I formatted it to be in the same order as the strings.lua file so it will be easier for everyone to transfer their existing work over to new lua files based on it.The strings.lua file is for the devs to manage the default internal text values and will get updated constantly. Once we can all get away from changing it and using our own lua files then the devs updates generally won't break our customizations, of the text anyways. Additional explaination on purpose of this:It is NOT a "mod" but a "template" to help the people translating the "strings.lua" file to other languages or when translating the game to a new language for the first time.It is the english version of the "french.lua" file but changed to follow the "strings.lua" organization so you can quickly copy the text from one to the other. All it does is change the text values defined in the "strings.lua" file, just like "french.lua".Ultimately we need to create a set of language files such as "portugese-br.lua", "portuguese-pt.lua", "spanish.lua", "italian.lua", "polish.lua", "turk-ce.lua", etc.These will need to be downloaded to the "mods\languages" folder and players will need to change the "language.lua" file to load one of the these language files. Klei needs to be able to manage the "strings.lua" file and we need to STOP changing it.In other words....The developers provided us with the "french.lua" file to use for creating new language translation files....BUTit is in french, not english and the order of the information does not match the "strings.lua" fileSOI made the "english.lua" file (which the developers should have provided us) to help everyone translating the gameGame Version:Sanity Update HF2 (2013-02-14_03-22-19 Build: 72968)Use:Read top portion of the provided english.lua filePlease revise the top comment block in the file to reflect your language mod's information but do leave a credit to me and the version of my template you used for support purposes. Thanks!Changelog:v1.1 Fixed STRINGS.CHARACTER_TITLES.wilsonv1.0 Initial release for Sanity Update HF2 (2013-02-14_03-22-19)Archived Discussion Thread:http://forums.kleientertainment.com/showthread.php?10043-Language-and-Speech-Mod-Template-v1-1-v1-2-SANITY-UPDATE Edited February 28, 2013 by WrathOf Link to comment Share on other sites More sharing options...
WrathOf Posted February 21, 2013 Author Share Posted February 21, 2013 (edited) -- FOR FUTURE USE --Made you look! Edited February 21, 2013 by WrathOf Link to comment Share on other sites More sharing options...
WrathOf Posted February 21, 2013 Author Share Posted February 21, 2013 (edited) Just curious. I cant find the String the game uses when you build for example a science machine for the "Build" science machine on the screen. I edited every Build type in german but it stil says build... Can't find it. ^^I noticed this but have not had a chance to investigate why that is happening. I'll post my findings back here is a bit.EDIT:Those strings should be set by these settings:STRINGS.UI.CRAFTING.NEEDSCIENCEMACHINE = [[....]]STRINGS.UI.CRAFTING.NEEDALCHEMYENGINE = [[....]]which are near the end of the file. Let me know if your changes do not show up for some reason. Edited February 21, 2013 by WrathOf Link to comment Share on other sites More sharing options...
WrathOf Posted February 21, 2013 Author Share Posted February 21, 2013 Language Mod Template -- v1.1 -- SANITY UPDATE has been updated! Link to comment Share on other sites More sharing options...
WrathOf Posted February 21, 2013 Author Share Posted February 21, 2013 Language Mod Template -- v1.1 -- SANITY UPDATE has been updated! Link to comment Share on other sites More sharing options...
Marcio Posted February 22, 2013 Share Posted February 22, 2013 Nope they are just the two items. I need the string for "build" only. It just says "build wissenschaftliche Maschine" in german language. Link to comment Share on other sites More sharing options...
WrathOf Posted February 22, 2013 Author Share Posted February 22, 2013 [MENTION=10400]Marcio[/MENTION]Oh, I misunderstood....is it not this one?STRINGS.UI.CRAFTING.BUILD = [[build]]but it looks like I left a duplicate below it so make sure both are changed. or delete one of these lines. You only need one.If not, send me your file so I can look it over. thx Link to comment Share on other sites More sharing options...
Marcio Posted February 22, 2013 Share Posted February 22, 2013 (edited) No, the string you posted is only for this:I need the string for this:I just can't find this "Build" string. Alltough I translated every ...BUILD string this one is nowhere to be seen. :/ Edited February 22, 2013 by Marcio Link to comment Share on other sites More sharing options...
WrathOf Posted February 22, 2013 Author Share Posted February 22, 2013 Hmm, the spanish language mod worked fine on my end. Very odd that yours does not.Check you pm for an email address you can use to send me your file. Link to comment Share on other sites More sharing options...
Marcio Posted February 23, 2013 Share Posted February 23, 2013 (edited) I checked the spanish translation and it has the same problem:I guess the string isn't in the template at all?I checked almost every translation mod that uses the template and in all it says "Build" Edited February 23, 2013 by Marcio Link to comment Share on other sites More sharing options...
Alvhem Posted February 23, 2013 Share Posted February 23, 2013 (edited) I am also missing this string :/EDIT:I just went through the files and discovered that the "build" string is in there, however it does not change what it says in-game. Edited February 23, 2013 by Alvhem Link to comment Share on other sites More sharing options...
Marcio Posted February 23, 2013 Share Posted February 23, 2013 I realised that some more strings are missing.If you play a game and hit esc, the following 3 strings are missing (ignorate Test Tools, I use it to check the spelling Ingame for some items ):Those strings are partialy in the template. Alltough they're used for the options in the mainmenu. I cant find those for the ingame menu. Maybe you have a solution for it? =) Link to comment Share on other sites More sharing options...
WrathOf Posted February 24, 2013 Author Share Posted February 24, 2013 Sorry guys, somehow did not catch these posts....Um, yeah, the template only exposes what the game makes available to change so these items are not addressed yet. I have submittted a bug thread on it so they *may* be fixed by the next update on Tuesday (PST)I chose to do it this way versus overwriting the screen files and breaking other mods. Link to comment Share on other sites More sharing options...
WrathOf Posted February 24, 2013 Author Share Posted February 24, 2013 (edited) STRINGS.ACTIONS.BUILD = [[build]]should control the word you are seeing in the pics since that is the "verb" part vs the "name" part.EDIT:Ok, finally found the one when you are placing a structure and reported it to get fixed.Still not sure about the menu though. I am not seeing "Build/" when using spanish.lua so not sure what is going on. Edited February 24, 2013 by WrathOf Link to comment Share on other sites More sharing options...
Alvhem Posted February 24, 2013 Share Posted February 24, 2013 I have a question.When the a winter's tale update gets released and the new version of this template is released, will I be able to merge my current translation(Which is almost complete) with the new one?And if it is possible, how will it be done?Because if I have to re-translate it all again I will rage so hard that Chuck Norris will be scared. Link to comment Share on other sites More sharing options...
WrathOf Posted February 24, 2013 Author Share Posted February 24, 2013 Um...good question but I will only offer a vague response in homage to Kevin.... There are things afoot to handle this whole translation business in a po-tentially better way.But, depending on how things pan out I will probably make a "english_winterupdate.lua" file with only the new items that you can copy and paste into your existing language files....as well as a revised "english.lua" file that continues to follow the strings.lua organization.Just to clarify, by using this template and *not* overwriting the strings.lua file means that you will see all the new text in english but all of the existing text you translated in your language. So doing it this way, it is more or less future proof unless they change how the strings are indexed for a given item but even then it would probably be fine. Link to comment Share on other sites More sharing options...
Alvhem Posted February 24, 2013 Share Posted February 24, 2013 So I can just copy+paste the next version of the template to the old one unless klei decide to hate us and change it?I'm sick so my brain does not work so good right now. Link to comment Share on other sites More sharing options...
WrathOf Posted February 24, 2013 Author Share Posted February 24, 2013 [MENTION=9585]Alvhem[/MENTION]Well if you'd find someplace warmer maybe you would feel better! (per your comment and location setting)Yes, you would copy/paste the new items from the "english_winterupdate.lua" file to the end of your existing file and then continue your translations. Link to comment Share on other sites More sharing options...
Alvhem Posted February 24, 2013 Share Posted February 24, 2013 [MENTION=9585]Alvhem[/MENTION]Well if you'd find someplace warmer maybe you would feel better! (per your comment and location setting)Yes, you would copy/paste the new items from the "english_winterupdate.lua" file to the end of your existing file and then continue your translations.Good, that'll save me another few hours, without you I will get this thing done, so I made it so that the game has a chance of spawning a pig with the name "WrathOf". Thank you. Link to comment Share on other sites More sharing options...
WrathOf Posted February 24, 2013 Author Share Posted February 24, 2013 Lol, ok thanks....always glad to be of help....and thank you for taking the time to translate the game so more Swedish players can enjoy surviving....err dying....with the rest of us. Link to comment Share on other sites More sharing options...
WrathOf Posted February 27, 2013 Author Share Posted February 27, 2013 (edited) Language Mod Template -- v1.1 -- SANITY UPDATE has been updated!Just added a note that this template should no longer be necessary. [MENTION=10400]Marcio[/MENTION]The english text issues you were having should be fixed in the game now but I will do some testing to confirm. Let me know if you come across any more of these. Thanks! Edited February 27, 2013 by WrathOf Link to comment Share on other sites More sharing options...
WrathOf Posted February 27, 2013 Author Share Posted February 27, 2013 Language Mod Template -- v1.1 -- SANITY UPDATE has been updated! 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