Giter Site home page Giter Site logo

godot-localizer's Introduction

Godot Localizer

  • Create and download a credentials JSON file for the Google Translate API.

  • Rename .env.example to .env, and set GOOGLE_TRANSLATE_KEYFILE_PATH to the path to your credentials.json file

  • Create a base translation CSV file (the langauge codes here should be only those supported by Google Translate; See note below):

    id en ja de
    GREETING Hello
    FAREWELL Goodbye
  • Run the command:

    • PHP
      • cd ./php/composer.phar install
      • ./translate php /path/to/input.csv /path/to/output.csv
  • If /path/to/desired/output.csv exists, you will be prompted with whether or not to overwrite the existing file

  • Output generated will be a CSV file with the values filled in:

    id en ja de
    GREETING Hello こんにちは Hallo
    FAREWELL Goodbye さようなら Auf Wiedersehen

Note:

Some of the language codes required for Google Translate are not compatible with Godot. If you are translating for one of those languages:

  • Rename lang-codes.example.json to lang-codes.json
  • Define your mappings

See the Godot docs for more info about localization in Godot


Disclaimer The purpose of this "tool" is to aid in rapid localization for projects such as game jams, where translations would be a nice addition, but coordinating with real translators is not feasible given the time constraints and scope of the project.

godot-localizer's People

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.