cli tool to generate translation files for joomla
Project description
jootranslate
hint
The needed directory structure has changed in version 0.7.2
Used search filters in php and xml files:
- JText::_(“COM_COMPONENTNAME”)
- JText::script(“COM_COMPONENTNAME”)
- label=”COM_COMPONENTNAME”
- description=”COM_COMPONENTNAME”
- hint=”COM_COMPONENTNAME”
- title=”COM_COMPONENTNAME”
- <name>COM_COMPONENTNAME</name>
- <description>COM_COMPONENTNAME</description>
- <![CDATA[COM_COMPONENTNAME]]>
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 TRANSLATION_STRING='translation' 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
admin - controllers - language - etc ... site - controllers - language - etc...
installation
use pip
pip install --user jootranslate
local
python setup.py install
usage
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.
Source Distribution
jootranslate-1.1.0.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for jootranslate-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc39cb75da652440c5ace053a6ef0c408aaa6148bd68ca9374fae3290b3a2807 |
|
MD5 | 14df5c921d70fe0cf47947f2ce92cb43 |
|
BLAKE2-256 | ed29c709e17a7583e691df644d3a1f674cca7a5b5d70c45c910b3ce355c03e32 |