text _l(
text $msgid, [text $locale = ""])
|
|
gets a localized message.
we are forced to do some dirty games with str_replace because of the problems posed by escape chars needed before $ sign for sprintf argument swapping. It's a function and not a method because I want the shortest invocation possible.
Tags:
Parameters
| text |
$msgid |
message in the original language |
| text |
$locale |
optional parameter to ask a translation in a different locale |