[Pkg-mozext-commits] [greasemonkey] 01/19: Meta Block: Localized name/descriptions don't work properly

David Prévot taffit at moszumanska.debian.org
Sat Mar 21 02:50:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 56c2b84f826fdb027f0deeca88b69b318dad7a3d
Author: janekptacijarabaci <janekptacijarabaci at users.noreply.github.com>
Date:   Mon Mar 16 15:09:10 2015 +0100

    Meta Block: Localized name/descriptions don't work properly
---
 modules/parseScript.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/parseScript.js b/modules/parseScript.js
index ee91dc2..906b27b 100644
--- a/modules/parseScript.js
+++ b/modules/parseScript.js
@@ -60,8 +60,15 @@ function parse(aSource, aUri, aFailWhenMissing, aNoMetaOk) {
         }
         script._locales[locale][data.keyword] = data.value;
       }
-
-      script['_' + data.keyword] = data.value;
+      else {
+        if ((data.keyword == 'description')
+            && (script['_' + data.keyword] == ''))
+            script['_' + data.keyword] = data.value;
+        if ((data.keyword == 'name')
+            && ((script['_' + data.keyword] == 'user-script')
+            || (script['_' + data.keyword] == name)))
+            script['_' + data.keyword] = data.value;
+      }
 
       break;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list