Giter VIP home page Giter VIP logo

stardew-access-de's Introduction

Stardew Access I18N Template

This is a template for the translation mods for the Stardew Access mod. The mod depends on Project Fluent for the translations and as such, you will need to install that too alongside Stardew Access.

The translation mod has two parts, the first one is the fluent content pack which contains all the translations for the mod so this is the most important part. The second optional part is a C# mod that is supposed to contain the logic for advanced pluralization of item names for your language. You can have basic pluralization setup with just fluent but that gets complicated for certain languages in which pluralization depends on certain conditions like the type of object (plural of wood is pieces of wood while plural of pen is pens).

Note that currently the C# part of the mod has not yet been included in this template repository.

Why Project Fluent?

  1. Allowed splitting of translation file into multiple sub-translation files (stardew access has a total of 6 translation files).
  2. Support for locale variants (differentiating between en-US and en-GB, but also providing a default en variant).
  3. Ability to use conditions in a translation entry allowing merging of multiple entries into one.
  4. Custom functions inside translation entries that extend functionality.

Fluent Content Pack Setup

  1. Rename the folder [Fluent][EN] Stardew Access and replace EN with the appropriate language code.
  2. Change the Name, Author, Description, and UniqueID values to describe your mod. (Don’t change the UniqueID under ContentPackFor and Dependencies!)
    • The Name field's value should ideally be the same as the folder's name you just changed to and as such, you'll only need to replace EN with your language code.
    • Follow this format for the UniqueID: <your-name>.fluent.stardewaccess.<language-code>
      • An example for English translation mod would be shoaib.fluent.stardewaccess.en
  3. Create a folder named i18n inside this folder. This will contain all the translation .ftl files.
  4. Now copy the .ftl files from the i18n folder of the mod's beta or release version of the mod and rename them with your language code.
  5. That's it! Now you can translate these files.

You can find syntax guide for fluent here. There's also a playground where you can test things if you want to. You might also need to look into the custom functions added by Project Fluent mod and Stardew Access

Because this is a content pack, it loads just like any other mod. So once you're done translating or want to test your translations, copy or move the [Fluent][EN] Stardew Access over to the Mods folder. It is recommended that you also host this content pack on Nexus (if possible otherwise github or some other platform is fine) so that we can mention your translation mod on Stardew Access' mod pages.

stardew-access-de's People

Contributors

khanshoaib3 avatar christopherpross avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.