gettext.lib.php File Reference

i18n utility functions. More...

Go to the source code of this file.

Functions

 gettext_noop ($str)
 Marks a string for translation but does return the original (untranslated) string.
 N_ ($str)
 Alias for gettext_noop.
 Q_ ($str)
 Just like _(), but strips the context (the part before the first | character) if the translation is the same as the original string.


Detailed Description

i18n utility functions.

Definition in file gettext.lib.php.


Function Documentation

gettext_noop ( str  ) 

Marks a string for translation but does return the original (untranslated) string.

Parameters:
$str The string to translate.
Returns:
The original string
See also:
N_

Definition at line 43 of file gettext.lib.php.

N_ ( str  ) 

Alias for gettext_noop.

Parameters:
$str The string to translate.
Returns:
The original string
See also:
gettext_noop

Definition at line 60 of file gettext.lib.php.

Q_ ( str  ) 

Just like _(), but strips the context (the part before the first | character) if the translation is the same as the original string.

This function can be used to provide context to the translator.

Parameters:
$str The string to translate.
Returns:
The translated string, or the original string if no translation was found (with any prefix stripped)
See also:
_

Definition at line 80 of file gettext.lib.php.


Generated on Sun Aug 2 22:54:37 2009 for Anewt by  doxygen 1.5.9