Lazy translation domains
Malthe Borch <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <CAAPh5F=Xf0Eo+OJ2s1_Fz-ZUCv2n2Me2rfOiBWX0LUv9sn8mow@mail.gmail.com> |
In 2008, the `zope_i18n_allowed_languages` environment setting was introduced to limit the languages for which a message catalog is loaded when you register translations using the "registerTranslation" ZCML directive, and to be able to negotiate a list from a list of available languages. This branch implements a fallback mechanism where: 1) the allowed languages are determined at runtime. 2) translation domains are lazy, and load message catalogs only when required. http://svn.zope.org/zope.i18n/branches/lazy-tds/ \malthe _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )