"Niklas Laxström" <[email protected]> wrote in message news:[email protected]... > > If we just replace ::key() with ::format() and tack options somewhere > in the params, we just have new set of wfMsg* functions, just with > better names. Is that what we want? That also means we can't do any > cool stuff because there wont by any Message objects. With objects > functions can see that they are getting a message instead of just any > random string. There is also many places in the code where messages > are passed to functions. We could pass Message objects there instead > of array( 'key', 'param', 'param' ), which is quite inflexible.
I think the existence of a Message object that can be instantiated and passed around, is a very important benefit. As you say, if we go down the other route, we just end up with the wfMsg functions in a different namespace. --HM _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
