diff options
author | Andrei Petcu <andreicristianpetcu@users.noreply.github.com> | 2017-03-10 14:01:57 +0200 |
---|---|---|
committer | Raymond Hill <gorhill@users.noreply.github.com> | 2017-03-10 07:01:57 -0500 |
commit | e8375f91cdfedc51029bb28d76bb1d9ca1f76f8f (patch) | |
tree | 2c1c4ccc4387fa74a2c3b502786fddcf9a33ac28 /tools | |
parent | fafe4c8abc4eeae6058e2d3a54d5c9e6d7e2ad2f (diff) |
#2433 Changed the XML namespaces to please jpm sign (#2434)
* #2433 changed the legacy install.rdf to match MDN
https://developer.mozilla.org/en-US/Add-ons/Install_Manifests
* #2433 changed webext install.rdf to match MDN docs
https://developer.mozilla.org/en-US/Add-ons/Install_Manifests
* #2433 changed property added by mistake
* #2433 changed localization XML namespaces to match install.rdf
* #2433 small fixes
Diffstat (limited to 'tools')
-rw-r--r-- | tools/make-firefox-meta.py | 14 | ||||
-rw-r--r-- | tools/make-webext-meta.py | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/tools/make-firefox-meta.py b/tools/make-firefox-meta.py index 773f6a95..875885fd 100644 --- a/tools/make-firefox-meta.py +++ b/tools/make-firefox-meta.py @@ -89,14 +89,14 @@ for alpha2 in descriptions: if alpha2 == 'en': continue manifest['localized'].append( - '\n' + t*2 + '<localized><r:Description>\n' + - t3 + '<locale>' + alpha2 + '</locale>\n' + - t3 + '<name>' + manifest['name'] + '</name>\n' + - t3 + '<description>' + descriptions[alpha2] + '</description>\n' + - t3 + '<creator>' + manifest['author'] + '</creator>\n' + + '\n' + t*2 + '<em:localized><Description>\n' + + t3 + '<em:locale>' + alpha2 + '</em:locale>\n' + + t3 + '<em:name>' + manifest['name'] + '</em:name>\n' + + t3 + '<em:description>' + descriptions[alpha2] + '</em:description>\n' + + t3 + '<em:creator>' + manifest['author'] + '</em:creator>\n' + # t3 + '<translator>' + ??? + '</translator>\n' + - t3 + '<homepageURL>' + manifest['homepage'] + '</homepageURL>\n' + - t*2 + '</r:Description></localized>' + t3 + '<em:homepageURL>' + manifest['homepage'] + '</em:homepageURL>\n' + + t*2 + '</Description></em:localized>' ) manifest['localized'] = '\n'.join(manifest['localized']) diff --git a/tools/make-webext-meta.py b/tools/make-webext-meta.py index dd21761c..5e299206 100644 --- a/tools/make-webext-meta.py +++ b/tools/make-webext-meta.py @@ -63,14 +63,14 @@ for alpha2 in descriptions: if alpha2 == 'en': continue webext_manifest['localized'].append( - '\n' + t*2 + '<localized><r:Description>\n' + - t3 + '<locale>' + alpha2 + '</locale>\n' + - t3 + '<name>' + webext_manifest['name'] + '</name>\n' + - t3 + '<description>' + descriptions[alpha2] + '</description>\n' + - t3 + '<creator>' + webext_manifest['author'] + '</creator>\n' + + '\n' + t*2 + '<em:localized><Description>\n' + + t3 + '<em:locale>' + alpha2 + '</em:locale>\n' + + t3 + '<em:name>' + webext_manifest['name'] + '</em:name>\n' + + t3 + '<em:description>' + descriptions[alpha2] + '</em:description>\n' + + t3 + '<em:creator>' + webext_manifest['author'] + '</em:creator>\n' + # t3 + '<translator>' + ??? + '</translator>\n' + - t3 + '<homepageURL>' + webext_manifest['homepage'] + '</homepageURL>\n' + - t*2 + '</r:Description></localized>' + t3 + '<em:homepageURL>' + webext_manifest['homepage'] + '</em:homepageURL>\n' + + t*2 + '</Description></em:localized>' ) webext_manifest['localized'] = '\n'.join(webext_manifest['localized']) |