Skip to content

Commit

Permalink
Horde_Translation::r(), not r().
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 30, 2014
1 parent 2de4c68 commit dd06d6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions horde/docs/TRANSLATIONS
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ To have your own string (e.g. that you added to config files) displayed in
several languages, you have to

1. specify your texts as gettext arguments, in English, e.g. by using the
_() or r() function.
_() function or Horde_Translation methods.
2. edit the translation files for the required national languages,
3. compile those translation files.

Expand Down Expand Up @@ -419,12 +419,12 @@ screen:
~~~~~~~~~~~~~~~~~~~~~

Horde provides a non-standard way to define a translatable string without
having that string translated in the code. By using the r() method, the
string will be marked as a translatable string and extracted by the Horde
translation script, but the string will not be altered in the PHP code.
having that string translated in the code. By using the Horde_Translation::r()
method, the string will be marked as a translatable string and extracted by the
Horde translation script, but the string will not be altered in the PHP code.
Example::

$str = r("Foo");
$str = Horde_Translation::r("Foo");
echo $str; // Output: Foo
echo _($str); // Output: [Translation of 'Foo']

Expand Down

0 comments on commit dd06d6a

Please sign in to comment.