Git Product home page Git Product logo

translations's Introduction

TheoTown-translation

Here anybody can help to localize TheoTown to other languages.

For translators

How translation works

Each values.xml file contains lines of the form:
<tagname>"My translation"</tagname>
You have just to translate the part in between (here "My Translation"). Special characters like \n might be used to indicate a new line. When your translation is done, make sure to create a 'pull request' so it can be merged to main branch. If you forget to do that step your translation won't be added to the main branch.

Languages

Every directory contains a values.xml file. The corresponding languages are:

  • values-af: Afrikaans
  • values-b+fil: Filipino
  • values-eu: Basque
  • values-ca: Catalan
  • values-cs: Czech
  • values-de: German โ† Always up to date
  • values-es: Spanish
  • values-fr: French
  • values-hu: Hungary
  • values-in: Indonesian
  • values-it: Italian
  • values-ja: Japanese
  • values-ko: Korean
  • values-lt: Lithuanian
  • values-ms: Malay
  • values-nl: Dutch
  • values-pl: Polish
  • values-pt: Portuguese
  • values-ru: Russian
  • values-sr: Serbian
  • values-th: Thai
  • values-tr: Turkish
  • values-uk: Ukrainian
  • values-vi: Vietnamese
  • values-zh-rHK: Hong Kong Chinese
  • values-zh-rTW: Traditional Chinese
  • values-zh: Chinese
  • values: English (default language) โ† Always up to date

For more two letter language codes see ISO 639-1. You might just add an apropriate directory in order to add a new language. English and German translations will always be up to date. The others can be built from them.

Escaping characters

Certain characters cannot be written directly within the xml file. You will have to replace them according to the following table:

Character Escaped form
" &quot;
' &apos;
< &lt;
> &gt;
& &amp;

In Json based translations you will only have to replace " by \"

For developers

Grab script

There's a grab.sh script included that can be used to grab current translations files from the project directory automatically (developer only). For that to work you have to setup a local TheoTown symbolic link to your TheoTown project directory. To do this, execute a command like the following (here assuming running WSL):

ln -s /mnt/c/Users/User/StudioProjects/TheoTown66 TheoTown

translations's People

Contributors

lobbydivinus avatar justanyones avatar magecode7 avatar yvelkram avatar smallg0at avatar kensvin28 avatar hernangaitan585 avatar zverwolfua avatar altiereslima avatar bgmazur avatar kamikazif avatar lakanharaya avatar cephues avatar universeko avatar kazu04 avatar okcirimorem avatar cordyluslizard avatar twogarlicmetropolitanarea avatar mazem3dia avatar remainsstay avatar takanashi-hoshino avatar asil-ea avatar ripple-in-dream avatar hendersonyap avatar byxxiaonanhui avatar malwyna avatar hellorigin avatar boh132boh avatar franchufranchu avatar khadafilaidi 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.