Mercurial > genshi > mirror
comparison 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 |
comparison
equal
deleted
inserted
replaced
445:ec7890aa7c0b | 446:fd9c4f7a249a |
---|---|
51 data, the new built-in functions `defined(key)` and `value_of(key, default)` | 51 data, the new built-in functions `defined(key)` and `value_of(key, default)` |
52 can be used so that the template also works in strict lookup mode. These | 52 can be used so that the template also works in strict lookup mode. These |
53 functions were previously only available when using Genshi via the template | 53 functions were previously only available when using Genshi via the template |
54 engine plugin (for compatibility with Kid). | 54 engine plugin (for compatibility with Kid). |
55 * `style` attributes are no longer allowed by the `HTMLSanitizer` by default. | 55 * `style` attributes are no longer allowed by the `HTMLSanitizer` by default. |
56 If it is explicitly added to the set of safe attributes, and unicode escapes | 56 If they are explicitly added to the set of safe attributes, any unicode |
57 in the attribute value are handled correctly. | 57 escapes in the attribute value are now handled properly. |
58 * Namespace declarations on conditional elements (for example using a `py:if` | 58 * Namespace declarations on conditional elements (for example using a `py:if` |
59 directive`) are no longer moved to the following element when the element | 59 directive`) are no longer moved to the following element when the element |
60 originally carrying the declaration is removed from the stream (ticket #107). | 60 originally carrying the declaration is removed from the stream (ticket #107). |
61 * Added basic built-in support for internationalizing templates by providing | |
62 a new `Translator` class that can both extract localizable strings from a | |
63 stream, and replace those strings with their localizations at render time. | |
64 The code for this was largely taken from previous work done by Matt Good | |
65 and David Fraser. | |
61 | 66 |
62 | 67 |
63 Version 0.3.6 | 68 Version 0.3.6 |
64 http://svn.edgewall.org/repos/genshi/tags/0.3.6/ | 69 http://svn.edgewall.org/repos/genshi/tags/0.3.6/ |
65 (Dec 11 2006, from branches/stable/0.3.x) | 70 (Dec 11 2006, from branches/stable/0.3.x) |