summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README4
1 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index c68934c..134475a 100644
--- a/README
+++ b/README
@@ -107,11 +107,11 @@ use T() to translate a label. Unknown labels are reported using it::error()
Example:
echo T('hello') . ' ' . Q($customer->name);
- echo ET('chainletter', 'name' => Q($customer->name));
+ echo T('chainletter', 'name' => $customer->name);
Functions:
new it_text($config) -- read texts. usually called implicitly
- T($label) -- return translated $label
+ T($label, $values) -- return translated $label w/ quoted values replaced
ET($label, $values) -- return translated $label w/ values replaced
T_lang() -- returns current language
T_set_language($language) -- sets a new language