[Pkg-mozext-commits] [adblock-plus] 32/74: Issue 2665 - Removed outdated locale mapping for Opera, fixing Spanish translation

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 12:07:08 UTC 2015


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

taffit pushed a commit to branch master
in repository adblock-plus.

commit efa6615083333908f938dfe03fee37ce030ae9f5
Author: Sebastian Noack <sebastian at adblockplus.org>
Date:   Mon Jun 8 22:23:43 2015 +0200

    Issue 2665 - Removed outdated locale mapping for Opera, fixing Spanish translation
---
 packagerChrome.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/packagerChrome.py b/packagerChrome.py
index 349967a..6af4df9 100644
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -244,21 +244,6 @@ def importGeckoLocales(params, files):
 
       files[targetFile] = toJson(data)
 
-  if params['type'] == 'opera':
-    # Opera has a slightly different locale mapping
-    operaMapping = {
-      'es': 'es_ES',
-      'es_419': None,
-      'pt': 'pt_PT',
-    }
-    for chromeLocale, operaLocale in operaMapping.iteritems():
-      chromeFile = '_locales/%s/messages.json' % chromeLocale
-      operaFile = '_locales/%s/messages.json' % operaLocale if operaLocale != None else None
-      if chromeFile in files:
-        if operaFile != None:
-          files[operaFile] = files[chromeFile]
-        del files[chromeFile]
-
 def truncate(text, length_limit):
   if len(text) <= length_limit:
     return text

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



More information about the Pkg-mozext-commits mailing list