Skip to content

Latest commit

 

History

History
27 lines (27 loc) · 1019 Bytes

File metadata and controls

27 lines (27 loc) · 1019 Bytes

bbl - A simple script that helps you create translations

Python version

bbl.py  <script_name>
bbl.py  <script_name> <translation_source>

Examples for Python version

./bbl.py  netbox-community/netbox
./bbl.py  netbox-community/netbox your_local_file.po
./bbl.py  netbox-community/netbox https://example.com/glotpress/projects/netbox/es-cl/default/

Warning for Python version

The main goal is to show that NetBox can be translated, but this script may break the database. Please don't use it under production environments!

PHP version

./bbl.php get [PROJECT] [-d[DIR]]
./bbl.php merge [PROJECT] [-d[DIR]] [-p[FILE|URL] [-l[LOCALE]]

Examples for PHP version

./bbl.php get opencart -d /path/to/opencart
./bbl.php merge opencart -d /path/to/opencart -p /path/to/opencart.po -l es-cl
./bbl.php merge opencart -d /path/to/opencart -p https://example.com/glotpress/projects/opencart/es-cl/default/ -l es-cl

License

This software is licensed under LGPLv2+.