dev.obliquid.com: obliquid
[ class tree: obliquid ] [ index: obliquid ] [ all elements ]

Procedural File: locale.php

Source Location: Program_Root/classes/obliquid/locale.php



Classes:

locale
Locale class. Localization and internationalization support.


Page Details:

Locale class. Localization and internationalization support.



Tags:

version:  $Id: locale.php,v 1.40 2004/07/05 21:01:43 slocati Exp $


Includes:

require_once("common/classes/obliquid/calutil.php") [line 29]






_l [line 295]

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:

return:  message in the locale language


Parameters

text   $msgid   message in the original language
text   $locale   optional parameter to ask a translation in a different locale
[ Top ]



Documentation generated on Tue, 29 Mar 2005 09:03:57 -0800 by phpDocumentor 1.2.0rc2