Pathoschild / StardewMods

Mods for Stardew Valley using SMAPI.
MIT License
658 stars 366 forks source link

Support mod translations #58

Closed bruceCzK closed 7 years ago

bruceCzK commented 7 years ago

Is it possible to use description texts of other language such as Chinese?

Pathoschild commented 7 years ago

Hi @bruceCzK. I do want to translate Lookup Anything, but it'll be a lot of work. I'll look into it sometime after Stardew Valley 1.2 is released. :)

vizv commented 7 years ago

@Pathoschild I'm planning to translate Lookup Anything to Chinese, any suggestion / guide for how should I do it?

Pathoschild commented 7 years ago

It's not really possible yet. I'll look into translating all my mods (including Lookup Anything) once Stardew Valley 1.2 and SMAPI 2.0 (which has some features that will make it easier) are released. :)

Pathoschild commented 7 years ago

SMAPI 1.14 will add a mod translation API (see pathoschild/SMAPI#296), and I'll add translation support for all my mods soon after.

Pathoschild commented 7 years ago

My mods can now be translated into any language supported by the game. 🎉

How to translate

Here's how to translate one of my mods:

  1. Install SMAPI 1.14+.

  2. Install the preview version (see below) of the mod to translate.

  3. Copy default.json into a new file with the right name:

    language file name
    Chinese zh.json
    German de.json
    Japanese ja.json
    Portuguese pt.json
    Spanish es.json
  4. Translate the second part on each line:

    "example-key": "some text here"
                   ^-- translate this

    Don't change the quote characters, and don't translate the text inside {{these brackets}}.

  5. Launch the game to try your translations.
    _You can edit translations without restarting the game; just type reload_i18n in the SMAPI console to reload the translation files._

Post translations here or send them to me privately. :)

Current status

Translations so far:

  Chests Anywhere Debug Mode Lookup Anything thanks to
Chinese ✓ zh.json ✓ zh.json ✓ zh.json yuwenlan
German ✓ de.json ✓ de.json ✓ de.json Sasara
Japanese
Portuguese
Spanish

Preview versions

Here are preview builds of the upcoming releases, with translation support included:

Pathoschild commented 7 years ago

Closed for release. Any further translations can be added in future versions.