From 9fd68c13a7cbd26c3eacbba42d7e5418d88ff40a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 16 Feb 2024 14:07:11 +0100 Subject: fix docs --- README | 4 ++-- 1 file 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 -- cgit v1.2.3