Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

cli tool to generate translation files for joomla

Project description

image0 image2 image3 PyPI - Python Version PyPI - Downloads



The needed directory structure has changed in version 0.7.2

Used search filters in php and xml files:

  • JText::script(“COM_COMPONENTNAME”)
  • description=”COM_COMPONENTNAME”
  • <name>COM_COMPONENTNAME</name>
  • <description>COM_COMPONENTNAME</description>

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

Your ini files need the following syntax

TRANSLATION_STRING = 'translation'
do not use a syntax like

and only use ' not "

Or you start without any ini files and let jootranslate create it for you.

Your component needs the following directory structure

    - controllers
    - language
    - etc ...
    - controllers
    - language
    - etc...


use pip

pip install --user jootranslate


python install


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

to see a full list of all options

jootranslate -h

usage: jootranslate [-h] -s PATH -c COM [-l LANG] [-t]

A translation ini file generator for joomla developers

optional arguments:
  -h, --help            show this help message and exit
  -s PATH, --source PATH
                        directory to search in
  -c COM, --com COM     the name of the component
  -l LANG, --lang LANG  language localisation. default is en-GB
  -t, --translate       If you want to translate the strings on console

Project details

Download files

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

Files for jootranslate, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size jootranslate-1.0.0-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size jootranslate-1.0.0.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page