4 def __init__(self
, parser
):
7 ## junk I'm playing with to test the macro framework
8 # def parseArgs(self, parser, startPos):
9 # parser.getWhiteSpace()
10 # args = parser.getExpression(useNameMapper=False,
11 # pyTokensToBreakAt=[':']).strip()
14 # def convertArgStrToDict(self, args, parser=None, startPos=None):
15 # def getArgs(*pargs, **kws):
17 # exec 'positionalArgs, kwArgs = getArgs(%(args)s)'%locals()
23 n
=None, # should be a string representing the name of the
24 # '$var' rather than $var itself
31 # args that are automatically supplied by the parser when the
36 EOLCharsInShortForm
=None,
40 """This is just a stub at this time.
42 plural = the plural form of the message
43 n = a sized argument to distinguish between single and plural forms
45 id = msgid in the translation catalog
46 domain = translation domain
48 target = a specific target lang
49 comment = a comment to the translation team
51 See the following for some ideas
52 http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/ZPTInternationalizationSupport
55 - There is no need to replicate the i18n:name attribute from plone / PTL,
56 as cheetah placeholders serve the same purpose
63 if isShortForm
and endPos
<len(parser
):
64 return src
+EOLCharsInShortForm