Skip to main content

cli tool to generate translation files for joomla

Project description

image0 image1 image2 Python 3 PyPI - Python Version Documentation Status


Searches for JText::_ translations in php and label|description in xml files and generates the ini files. If the file exist only new translation strings will be added. Your translation strings have to start with COM_COMPONENTNAME to get accepted.

This is just a little helper so you don`t have to copy and paste all your translation strings by hand.

Your component needs the following directory structure

    - components
        - com_COMPONENTNAME
            - controllers
            - language
            - etc ...
        - controllers
        - language
        - etc...

new in v0.4.0

You can now translate directly on console it you want. Jootranslate now uses configobj to read and write the ini files so you have to make some changes to yout existing translation files.

Joomla normaly use translations like this


but we need it in this format

COM_TEST_KEEPME = 'translated'

This is working in joomla too, so don`t worry. Please take a look on your existing files, otherwise allready translated
strings will be lost!


with pip

pip install --user --upgrade jootranslate


python install


jootranslate --source /path/to/component/root --com your_component

if yout want translate on the fly add -t

jootranslate -t --source /path/to/component/root --com your_component

to see a full list of all options

jootranslate -h


Generate the *.sys.ini files

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
jootranslate-0.5.0-py2.py3-none-any.whl (7.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3
jootranslate-0.5.0.tar.gz (6.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page