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

Unified Diff: packagerChrome.py

Issue 29941691: Noissue - Allow imported translations to be overridden (Closed)
Patch Set: Created Nov. 9, 2018, 11:28 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
@@ -254,11 +254,7 @@
for stringID in keys.split():
if stringID in sourceData:
- if stringID in data:
- print ('Warning: locale string {} defined multiple'
- ' times').format(stringID)
-
- data[stringID] = sourceData[stringID]
+ data.setdefault(stringID, sourceData[stringID])
except Exception as e:
print 'Warning: error importing locale data from %s: %s' % (sourceFile, e)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld