Bugzilla:L10n:Roadmap: Difference between revisions

Jump to navigation Jump to search
m
(→‎Generic l12y: maketext transition blueprint started)
m (→‎Template Toolkit syntax: correct nowiki)
Line 36: Line 36:
Formats supported by '''xgettext.pl''' are:
Formats supported by '''xgettext.pl''' are:


<nowiki>[% |l(args) %]string[% END %]</nowiki>
<nowiki>[% 'string' | l(args) %]</nowiki>
<nowiki>[% 'string' FILTER l(args) %]</nowiki>
<nowiki>[% l('string',args) %]</nowiki>
<nowiki>[% loc('string',args) %]</nowiki>


<nowiki>[% |l(args) %]string[% END %]
In fact, '''l''' and '''loc''', '''|''' and '''FILTER''' are synonyms.
<nowiki>[% 'string' | l(args) %]
<nowiki>[% 'string' FILTER l(args) %]
<nowiki>[% l('string',args) %]
<nowiki>[% loc('string',args) %]
</nowiki>
 
In fact, ''l'' and loc, ''|'' and ''FILTER' are synonyms.


First syntax has obvious advantages for large boilerplate texts which we do not want to chop in perverse ways.  However, it is too verbose for short strings and unintuitive for parametric calls.
First syntax has obvious advantages for large boilerplate texts which we do not want to chop in perverse ways.  However, it is too verbose for short strings and unintuitive for parametric calls.
118

edits

Navigation menu