[ooo-build-commit] extensions/coooder

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Tue Jan 19 05:18:14 PST 2010


 extensions/coooder/php/.gitignore     |    1 +
 extensions/coooder/php/from-geshi.php |    9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 0cf14a0371032ed35d2961a033304f3ca6226000
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Tue Jan 19 14:15:53 2010 +0100

    [coooder]Missing case sensitivity in lang files
    
    * extensions/coooder/php/.gitignore:
        Avoid committing the geshi downloaded files
    * extensions/coooder/php/from-geshi.php:
        Migrating the case sensitivity for the keywords

diff --git a/extensions/coooder/php/.gitignore b/extensions/coooder/php/.gitignore
new file mode 100644
index 0000000..709f42a
--- /dev/null
+++ b/extensions/coooder/php/.gitignore
@@ -0,0 +1 @@
+geshi*
diff --git a/extensions/coooder/php/from-geshi.php b/extensions/coooder/php/from-geshi.php
index 090e252..f2c284d 100755
--- a/extensions/coooder/php/from-geshi.php
+++ b/extensions/coooder/php/from-geshi.php
@@ -230,7 +230,14 @@ if (is_file($geshiFile)) {
     foreach ($language_data['KEYWORDS'] as $key => $keywordsSet) {
         $setId = "keywords_$key";
 
-        $keywords .= "<l:set id=\"$setId\">" . getLF($optimize);
+        // True is the default value for case sensitivity: don't set it
+        $caseSensitive = $language_data['CASE_SENSITIVE'][$setId];
+        if ( $caseSensitive == null || !$commentSensitive ) {
+            $caseSensitive = " caseSensitive=\"false\"";
+        }
+
+
+        $keywords .= "<l:set id=\"$setId\"$caseSensitive>" . getLF($optimize);
         foreach ($keywordsSet as $keyword) {
             $keywords .= "<l:value>" . htmlentities($keyword) . "</l:value>" . getLF($optimize);
         }


More information about the ooo-build-commit mailing list