Skip to content

Instantly share code, notes, and snippets.

@steevp
Last active February 10, 2018 08:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steevp/99a6f553788e5b525cc6a8266b01ff78 to your computer and use it in GitHub Desktop.
Save steevp/99a6f553788e5b525cc6a8266b01ff78 to your computer and use it in GitHub Desktop.
Translating Idle Daddy

Creating a new translation

  • All of the English strings used in the app can be found in strings.xml, use this file as the base for your new translation.
  • Copy and Paste the text from strings.xml into a text editor (e.g. notepad++) and begin editing.

Translating strings

  • strings.xml contains items that look like below, these are your strings:
<string name="status">Status</string>
  • You only need to translate the part between the opening and closing <string> tags, leave the name=key part untranslated. For example (from the Bulgarian translation):
<string name="status">Статус</string>

Translating plurals

  • strings.xml contains other items that look like below, these are your plurals:
<plurals name="games_left">
    <item quantity="one">%d game left to idle</item>
    <item quantity="other">%d games left to idle</item>
</plurals>
  • <item quantity="one"> is the string used when there is only one item (e.g. "1 game left to idle")
  • <item quantity="other"> is the string used when there is any other number of items (e.g. "2 games left to idle")
  • Example translation (German):
<plurals name="games_left">
    <item quantity="one">%d Spiel kann noch inaktiv im Hintergrund laufen</item>
    <item quantity="other">%d Spiele können noch inaktiv im Hintergrund laufen</item>
</plurals>

(Note that %d here is always replaced with the number of items)

Finishing

  • Save your translation as a .xml file
  • Send an email to steevsapps@gmail.com with the file attached, the name you want to be credited as, and whether or not you'd like me to link to your Steam profile in the about section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment