Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: packagerChrome.py

Issue 5181140172275712: Issue 2665 - Removed outdated locale mapping for Opera, fixing Spanish translation (Closed)
Patch Set: Created June 8, 2015, 8:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerChrome.py
===================================================================
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -244,21 +244,6 @@
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld