Planetbase
26 lượt đánh giá
Translating Planetbase
Bởi martiño
Learn how to create Planetbase translations and upload them to the Steam Workshop
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Intro





Planetbase now supports user translations, this guide explains how to do it.
Translating the game
  • Download the current English strings from here: http://planetbase.madrugaworks.com/files/strings.zip

  • Rename the files replacing "en" by your language 2 letter ISO code, for example for Russian this would be "ru_main.xml", "ru_tutorial.xml", "ru_help.xml" (if your language doesn't have an ISO code, just use any 2 letters).

  • Translate the files, note that the "language_name" string in "en_main.xml" is what your language is going to be called in the settings screen

  • If your language makes plurals by adding endings to the singular form of the word, you can add the endings in the string "plural_endings". This will then be used by the game to highlight plurals in the help menu, as an example for German, this will look like this:

    <string name="plural_endings">e n en er</string>

    Then the game will know that "Windturbunen" is the plural of "Windturbine" and will automatically highlight it in the help menu.
    If your language doesn't work like this, then leave this blank and only singular words will be highlighted.

  • Make sure you save the xmls as UTF8

  • Put the files in "My Documents/Planetbase/Strings"

  • Now the new language should appear in the settings menu
Uploading to the Steam Workshop
Once you've tested the translation on your machine, you can upload it to the workshop for other people to enjoy, by using the Workshop Uploader, see instructions here:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2053037162
Keeping translations up to date
Sometimes we add new text when making updates to the game.
To check what strings are new or missing you can do the the following:
  • Select your language in the settings menu (after selecting another language first).
  • If any strings are missing, a toast will appear notifying you of the error.
  • If this is the case, you can then check the log.txt file in Documents/Planetbase, for a more detailed explanation of what text needs to be translated.
38 bình luận
Giampi 17 Thg05, 2020 @ 12:39am 
Can you update the strings please?
Kronos0627 10 Thg05, 2020 @ 10:16am 
:)
NeoRider7 23 Thg01, 2020 @ 3:42pm 
The following is written a little higher in the description:
"If you have any questions or issues with the process, you can ask at our board here:
http://planetbase.madrugaworks.com/board/viewforum.php?f=10 ".
But this link gives an error when clicked.
Thanks!
martiño  [tác giả] 29 Thg08, 2018 @ 4:13pm 
Ah yes you are right, we've updated it.
Giampi 29 Thg08, 2018 @ 7:38am 
It says 3 strings are missing. The log pannel says "action_type_no_alert",
"action_type_yellow_alert" and "action_type_red_alert" are missing. I have 8 strings about alerts in the main string but no one with the name "action_type".
martiño  [tác giả] 28 Thg08, 2018 @ 4:43am 
1.3.0 has no new strings really
Giampi 28 Thg08, 2018 @ 3:38am 
can you update the strings please?
Querro707 10 Thg05, 2018 @ 10:01am 
update game pls :(
martiño  [tác giả] 11 Thg01, 2018 @ 1:40am 
I've uploaded the latest strings. Let me know if you have any problems with it.
Tablis 10 Thg01, 2018 @ 11:09am 
strings.zip still not up to date :whateverr: