2010/4/1 Niklas Laxström <[email protected]>:
> 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.
>
> What do others think of the above?
>
This'd be very nice, and would kind of supersede the Status class
currently used to shove a message key and some params in so the callee
can either get it automatically processed by wfMsg() (UI functions) or
grab the raw message key + params and process that in their own way
(API). This would require the Message class have getters for both of
these though (does it currently?).

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to