From b518a33cf0274063261bccd0b21dca9b871a9755 Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Wed, 25 Apr 2012 07:21:10 +0200 Subject: 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 --- app/classes/Simplel10n.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/classes/Simplel10n.class.php') 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 { -- cgit v1.2.1