diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-04-25 07:21:10 +0200 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-04-25 07:21:10 +0200 |
commit | b518a33cf0274063261bccd0b21dca9b871a9755 (patch) | |
tree | 5ec3123cd50238c686513ce240e302f7ca9064b7 /app/classes | |
parent | b5c2590daaa73999560343a7a8d3867dc7f2beb8 (diff) | |
download | planet-b518a33cf0274063261bccd0b21dca9b871a9755.tar planet-b518a33cf0274063261bccd0b21dca9b871a9755.tar.gz planet-b518a33cf0274063261bccd0b21dca9b871a9755.tar.bz2 planet-b518a33cf0274063261bccd0b21dca9b871a9755.tar.xz planet-b518a33cf0274063261bccd0b21dca9b871a9755.zip |
add support for localization notes in strings. This is a feature allowing developpers to add a short comment to a string explaining to localizers the context in which the string is used. This is a feature needed for the string extraction tools
Diffstat (limited to 'app/classes')
-rw-r--r-- | app/classes/Simplel10n.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/classes/Simplel10n.class.php b/app/classes/Simplel10n.class.php index cc31921..36ac958 100644 --- a/app/classes/Simplel10n.class.php +++ b/app/classes/Simplel10n.class.php @@ -17,7 +17,7 @@ class Simplel10n { $this->l10nFolder = $path; } - static function getString($str) { + static function getString($str, $comment='') { if(array_key_exists($str, $GLOBALS['locale'])) { return $GLOBALS['locale'][$str]; } else { |