Mercurial > genshi > mirror
diff ChangeLog @ 446:fd9c4f7a249a trunk
Add basic I18n/L10n functionality, based on GenshiRecipes/Localization.
author | cmlenz |
---|---|
date | Fri, 13 Apr 2007 11:02:36 +0000 |
parents | 97544725bb7f |
children | a89368769b82 |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -53,11 +53,16 @@ functions were previously only available when using Genshi via the template engine plugin (for compatibility with Kid). * `style` attributes are no longer allowed by the `HTMLSanitizer` by default. - If it is explicitly added to the set of safe attributes, and unicode escapes - in the attribute value are handled correctly. + If they are explicitly added to the set of safe attributes, any unicode + escapes in the attribute value are now handled properly. * Namespace declarations on conditional elements (for example using a `py:if` directive`) are no longer moved to the following element when the element originally carrying the declaration is removed from the stream (ticket #107). + * Added basic built-in support for internationalizing templates by providing + a new `Translator` class that can both extract localizable strings from a + stream, and replace those strings with their localizations at render time. + The code for this was largely taken from previous work done by Matt Good + and David Fraser. Version 0.3.6