diff options
Diffstat (limited to 'Cheetah/Macros/I18n.py')
-rw-r--r-- | Cheetah/Macros/I18n.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Cheetah/Macros/I18n.py b/Cheetah/Macros/I18n.py index 187e680..02a815b 100644 --- a/Cheetah/Macros/I18n.py +++ b/Cheetah/Macros/I18n.py @@ -1,14 +1,17 @@ import gettext _ = gettext.gettext + + class I18n(object): def __init__(self, parser): pass def __call__(self, - src, # aka message, + src, # aka message, plural=None, - n=None, # should be a string representing the name of the - # '$var' rather than $var itself + # should be a string representing the name of the '$var' + # rather than $var itself + n=None, id=None, domain=None, source=None, @@ -23,7 +26,7 @@ class I18n(object): EOLCharsInShortForm=None, startPos=None, endPos=None, - ): + ): """This is just a stub at this time. plural = the plural form of the message @@ -39,16 +42,13 @@ class I18n(object): http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/ZPTInternationalizationSupport Other notes: - - There is no need to replicate the i18n:name attribute from plone / PTL, - as cheetah placeholders serve the same purpose - - + - There is no need to replicate the i18n:name attribute + from plone/PTL, as cheetah placeholders serve the same purpose. """ - #print macros['i18n'] + # print macros['i18n'] src = _(src) - if isShortForm and endPos<len(parser): + if isShortForm and endPos < len(parser): return src+EOLCharsInShortForm else: return src - |