This guide details how to create and share translations of the game text.
Creating the file
- Navigate to the following folder: “…\Steam\steamapps\common\Floppy Heroes 2\Languages”
- Create a copy of “Translation Template.json” and re-name it to whatever you want. (Note: Do NOT modify “Translation Template.json” itself, as the file is overwritten whenever the game is launched, and you will lose your work)
- Open your newly-created file in your text editor of choice (ie. Notepad, Sublime Text, etc.)
- Change languageName from “Translation Template” to what you want the language to show up as in-game.
- Change author from “Example” to however you want to be credited.
The file is now ready to be translated, which will be explained in the following section.
Translating the file
The game text is stored as a list of key-value pairs. This means the text on the left-hand side is what the game uses to look up the text to be displayed, and the text on the right-hand side is the text that will be displayed. This means that when translating, you should ONLY modify the text on the right-hand side.
For example if you were translating the game to French, then:
For example if you were translating the game to French, then:
“<MainMenu_PlayButton_Tooltip>”: “Play the game”
should be changed to something like:
“<MainMenu_PlayButton_Tooltip>”: “Jouer le jeu”
Here are some symbols you may see in the text, as well as their meanings:
- \n – Newline character. Any following text will appear on a new line.
- \” – Quotation mark symbol.
- <b></b> – Bold tags. Any text in between the tags will appear bolded.
- {0} – Used by the game to insert dynamic values (ie. player number, current team color, etc.)
Uploading the file to Steam Workshop
- Launch Floppy Heroes 2.
- On the main menu, open Settings and go to the Language tab.
- Select your translation from the dropdown list so that’s it’s the currently-used language.
- Click on “Upload Translation To Workshop”.
- Ensure that you’ve recently accepted the Steam Workshop terms of service.
- Click on “Upload Translation To Steam Workshop” and wait a few seconds.
- If there were no issues uploading your file, a window should appear displaying the Steam Workshop page.
- You’re done!
By Rimply