Buildout recipe to extract i18n files in Silva. #Buildout recipe #Version control #I18n extractor #I18n #Buildout #Recipe
infrae.i18nextract is a buildout recipe which create a script to extract i18n strings from multiple packages into a .pot. A script to merge or compile all available translations is also available.
The script support extraction from Python Script, Zope Page Template, Chameleon Page Template, Formulator forms and Silva Metadata schemas.
Exemple in buildout:
[silva-translation] recipe = infrae.i18nextract packages = silva.core.views silva.core.smi output = ${buildout:directory} output-package = silva.translations domain = silva extra-paths = ${zope2:location}/lib/python
packages List of packages to extract translation from.
output Output directory for the created template file.
output-package If specified, you will be able to create the template file directly inside that package.
domain Translation domain to use.
extra-paths Extra python path to add in order to able to load the Python code to extract translations strings from it.
Two scripts are created:
part-name-extract
That do extract the translations. The option -p saves the created template file in the output-package specified in the buildout part.
part-name-manage
Manage translation files in the output-package specified in the buildout part:
* -m merge the translation template file into all existing translations files. * -c compile all existing translations files.
The last script requires to have the commands msgfmt and msgmerge installed on the system (available in gettext).
System requirements
What's new in infrae.i18nextract 1.3.1:
- Add support to extract the title and description fields from the Silva Metadata files.
infrae.i18nextract 1.3.1
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- infrae.i18nextract-1.3.1.tar.gz
- main category:
- Programming
- developer:
- visit homepage
Windows Sandbox Launcher 1.0.0
IrfanView 4.67
7-Zip 23.01 / 24.04 Beta
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
Bitdefender Antivirus Free 27.0.35.146
Context Menu Manager 3.3.3.1
Zoom Client 6.0.3.37634
ShareX 16.0.1
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
calibre 7.9.0
- ShareX
- Microsoft Teams
- calibre
- Windows Sandbox Launcher
- IrfanView
- 7-Zip
- 4k Video Downloader
- Bitdefender Antivirus Free
- Context Menu Manager
- Zoom Client