Hi people,
Usage:
bbl.py <script_name>
bbl.py <script_name> <translation_source>
Examples:
- If you want to get the strings to translate:
bbl.py digitalocean/netbox
- If you want to merge translations into NetBox
bbl.py digitalocean/netbox your_local_file.po
Warning:
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!
I'd like to get some help to modify this script for NetBox to make use of Django i18n support. I don't have much experience using Python by now.
This script runs under Python 3, with lxml package installed. Once you create a .po file, please rename it before you start translating or you may lose all your work!
Sorry for my bad English and this dirty script. I just wanted to help.
Regards,
Rodrigo