Move to maketext: sample templates

Frédéric Buclin lpsolit at gmail.com
Sun Jan 18 16:30:46 UTC 2009


Le 18. 01. 09 01:48, Vitaly Fedrushkov a écrit :
> Variant 1.1: dumb

This one is clearly ridiculous.


> Variant 1.2: introduce functions for 'FILTER html' and so on

So you will have to define one function for all possible FILTERs, 
including those taking parameters?


> Variant 1.3: introduce scalar operators for the same:

I don't like this one. I'm not even sure this will work as foo.html will 
be seen as html() being a method of the foo object, which is not the case.


> Variant 1.4: Leave basic HTML syntax within translated text:

No idea what you try to do here, but not all strings use FILTER html.


> Will any of these improve readability and what option do you prefer?

 From a developer point of view, I like none of these alternatives. Look 
at the developers/localizers ratio: there are hundreds of developers, 
compared to maybe ten localizers or so. And you are making life really 
difficult for developers to make life a *little* bit easier for a few 
localizers. I don't see this as being an improvement.
Now from a reviewer point of view: it would be a real pain to have to 
review patches with tens of such lines of code. It's really prone to errors.
So I'm still very septical with all this stuff.

LpSolit



More information about the developers mailing list