X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2FREADME;h=83a49cd2230b7afd99208692303e0deb72b79b68;hb=4593ad5c92ac3902088f3d86e21c2428b1fce6e6;hp=eecf85b842d1d601596c20e439d29cd59d3408b2;hpb=4d591c4a074a11bb27f5fe0981a13125d4ef2e02;p=friendica.git diff --git a/util/README b/util/README index eecf85b842..83a49cd223 100644 --- a/util/README +++ b/util/README @@ -12,7 +12,7 @@ extract.php - extracts translatable strings from our project files. It currently doesn't pick up strings in other libraries we might be using such as the HTML parsers. -In order for extract to do its job, every use of the t() translation function +In order for extract to do its job, every use of the L10n::t() translation function must be preceded by one space. The string also can not contain parentheses. If parens are required in a string which requires translation, please use hex escapes. @@ -61,7 +61,7 @@ e.g. Plural -The tt() function supports plural form. Script extract.php write this in +The L10n::tt() function supports plural form. Script extract.php write this in strings.php as an array, one string for every plural form language supports: $a->string["%d message sent"] = Array( @@ -79,7 +79,7 @@ More info at http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html Xgettext and .po workflow 1. Run util/run_xgettext.sh script (on *unix sistems, with GNU xgettext installed) - This script runs xgettext on source tree, extracting strings from t() and tt() + This script runs xgettext on source tree, extracting strings from L10n::t() and L10n::tt() functions, and creates a util/messages.po file. $ cd util; ./run_xgettext.sh