POFile POFile(
[
$filename = null]
)
|
|
dummy docblock makes error-free autodocs
Parameters:
void addmsgid(
$msgid, [
$sourcefile = ''], [
$trans = '']
)
|
|
Add a MSGID for a specific source file
Parameters:
|
|
$msgid: |
|
|
|
$sourcefile: |
|
|
|
$trans: |
|
string quote(
string
$s
)
|
|
Quote a msgid/msgstr, preferrable with single quotes.
Single quotes are preferred, as PHP just handles them as strings and does no extra parsing. Double quotes are used, if there's \n, \r or \t in the string.
Parameters:
API Tags:
| Return: | Quoted string (either using double or single quotes (preferred)) |
array read(
[boolean
$log_source_info = true]
)
|
|
Read a .po file
Parameters:
|
boolean |
$log_source_info: |
Log source info to $Messages? |
API Tags:
| Return: | with msgids => array( 'trans' => msgstr ) |
void translate(
string
$msgid
)
|
|
Translate msgid
Parameters:
true|string write_evo_trans(
$file_path,
$locale
)
|
|
Write POFile::$msgids into $file_path.
Parameters:
API Tags:
| Return: | True on success, string with error on failure |