https://github.com/zopefoundation/zope.app.locales
Zope locale extraction and management utilities
https://github.com/zopefoundation/zope.app.locales
maintained
Last synced: 8 months ago
JSON representation
Zope locale extraction and management utilities
- Host: GitHub
- URL: https://github.com/zopefoundation/zope.app.locales
- Owner: zopefoundation
- License: other
- Created: 2013-03-12T13:00:31.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2025-08-08T06:34:03.000Z (10 months ago)
- Last Synced: 2025-09-10T14:52:27.965Z (9 months ago)
- Topics: maintained
- Language: Python
- Homepage:
- Size: 22 MB
- Stars: 4
- Watchers: 63
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
================
zope.app.locales
================
This package provides some facilities for extracting and managing i18n
messages that occur in Zope software. More specifically, i18n
messages can occur in Python code, in Page Templates and in ZCML
declarations. ``zope.app.locales`` provides a utility that can
extract messages from all three and write them to a standard gettext
template (``pot`` file).
Usage
-----
Version 4.2 does not contain any ``*.mo`` files. They are the compiled
translation files (``*.po``). (Future versions will contain them again.)
To generate or update ``*.mo`` files on the fly set the following environment
variable::
zope_i18n_compile_mo_files=True
To restrict the allowed languages set ``zope_i18n_allowed_languages`` to a list
of languages. Example::
zope_i18n_allowed_languages=de,en,es,fr