Skip to content

idrisay/ltm_translatiton

Repository files navigation

LTM Translator

  1. Add environment keywords to .env file
DB_COLUMNS_FOR_TRANSLATE = column index to translate (5) 
DB_HOST = host credential for db(localhost)
DB_USER = user credential for db(root)
DB_PASSWORD = password for db(root)
DB_PORT = port for db(8889)
DB_NAME = db name to translate
DB_TABLE = db table to translate(ltm_translations)
NEW_DB_TABLE = new db table name to create(result)
FROM_LANG = which lang translate from(de)
TO_LANG = which lang translate from(it)
LOCALE = which rows will be translated(it_IT)(condition)
  1. Run pip install virtualenv to install virtual env package to local.

  2. Run ```virtualenv venv`` to create virtual environment.

  3. Run source venv/bin/activate to activate virtual environment.

  4. Run pip install -r ./requirements.txt to install reuirements.

  5. Run py dbToJson.py to get all database table to json file. After run this command will be created a file in originalContent.

  6. Run py deeplTrns.py command to translate all columns you selected before in .env DB_COLUMNS_FOR_TRANSLATE file.

  7. Run py jaonToDb.py command to write the result to database.

Feel free to contact me fot any kind of support about this repo. Idris Ay

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published