Method Details
-
(string) format (, , , )
Browse code
Formats the string. That is, for a particular string find
the corresponding translation. Variable subsitution is performed
for the $args parameter. A different catalogue can be specified
using the $catalogue parameter.
The output charset is determined by $this->getCharset();
returns translated string.
-
-
(string) formatString (, , )
Browse code
Do string translation.
returns translated string.
-
(string) getCharset ()
Browse code
Gets the charset for message output. Default is UTF-8.
returns charset, default UTF-8
-
-
(MessageSource) getSource ()
Browse code
Gets the message source.
-
Loads the message from a particular catalogue. A listed
loaded catalogues is kept to prevent reload of the same
catalogue. The load catalogue messages are stored
in the $this->message array.
-
-
Sets the charset for message output.
-
Sets the prefix and suffix to append to untranslated messages.
e.g. $postscript=array('[T]','[/T]'); will output
"[T]Hello[/T]" if the translation for "Hello" can not be determined.
-
Constructor.
Create a new instance of sfMessageFormat using the messages
from the supplied message source.
|