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/app.php | |
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/app.php')
-rwxr-xr-x | app/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/app.php b/app/app.php index d17c42e..f2795ab 100755 --- a/app/app.php +++ b/app/app.php @@ -39,7 +39,7 @@ if (is_file($savedConfig)){ $l10n = new Simplel10n($conf['locale']); // this is an helper function. We will usually use that function and not Simplel10n::getString() -function _g($str) { +function _g($str, $comment='') { return Simplel10n::getString($str); } |