Code Monkey home page Code Monkey logo

mct's Introduction

MCT

A python tool to automatically translate lang files into other languages

Usage

(The lang file generated will be exported to the same directory as the input file with the inputted language code)

Supported Languages

Currently 58 languages are supported to translate to.

Open to see supported languages
  • Afrikaans
  • Albanian
  • Arabic
  • Azerbaijani
  • Basque
  • Belarusian
  • Bulgarian
  • Catalan
  • Chinese Simplified
  • Chinese Traditional
  • Croatian
  • Czech
  • Danish
  • Dutch
  • English
  • Esperanto
  • Estonian
  • Filipino
  • Finnish
  • French
  • Galician
  • Georgian
  • German
  • Greek
  • Hebrew
  • Hindi
  • Hungarian
  • Icelandic
  • Indonesian
  • Irish
  • Italian
  • Japanese
  • Kannada
  • Korean
  • Latin
  • Latvian
  • Lithuanian
  • Macedonian
  • Malay
  • Maltese
  • Norwegian
  • Persian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Serbian
  • Slovak
  • Slovenian
  • Spanish
  • Swedish
  • Tamil
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese
  • Welsh
  • Yiddish

CLI

If running from the command line there are a few arguments you can use.
Example:

foo> python mct.py -i en_us.json -l french

Arguments

-h, --help: Shows the help dialogue with all optional arguments.
-i <file>, --input <file>: Path to the language file pre written. eg: ...\assets\minecraft\lang\en_us.json
-l <language>, --language <language>: The desired language to translate to. See Supported Languages for the list of current languages.
-m <method>, --method <method>: The method that should be used when translating. "safe", "unsafe"
Safe translates line by line and is far more accurate than unsafe however takes a lot longer.
Unsafe batch translates the entire value range at once. However, in doing so translations can be very inaccurate but overall extermely fast.
-d, --debug: Outputs the current line being translated beside the progress bar whilst translating.

GUI

When mct.py is run without any arguments it'll prompt a GUI to appear which has buttons for, selecting the lang file, selecting the language and converting.

gui

Installation

With a terminal open in the working directory run the command pip install -r requirements.txt
Then you can use mct.py either in the CLI or using the GUI

mct's People

Contributors

lemonhandgrenade avatar

Stargazers

 avatar  avatar

Watchers

 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.