summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorUrban Müller2024-02-16 14:07:11 +0100
committerUrban Müller2024-02-16 14:07:11 +0100
commit9fd68c13a7cbd26c3eacbba42d7e5418d88ff40a (patch)
tree19b185c6cd71c73c13ffaf4463d590922361bbab /README
parentdfd8582933798214d73c9ddb205d43bf2f1e3405 (diff)
downloaditools-9fd68c13a7cbd26c3eacbba42d7e5418d88ff40a.tar.gz
itools-9fd68c13a7cbd26c3eacbba42d7e5418d88ff40a.tar.bz2
itools-9fd68c13a7cbd26c3eacbba42d7e5418d88ff40a.zip
fix docs
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