Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: tools/grit/grit/format/chrome_messages_json.py

Issue 2948893002: Revert of Skip missing translations when generating JSON resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/grit/grit/format/chrome_messages_json_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/chrome_messages_json.py
diff --git a/tools/grit/grit/format/chrome_messages_json.py b/tools/grit/grit/format/chrome_messages_json.py
old mode 100644
new mode 100755
index 61d718e7dd83051032d25ba48f36fe0039054fcc..27ac36135f40b727c36fd669bc34902ef407781b
--- a/tools/grit/grit/format/chrome_messages_json.py
+++ b/tools/grit/grit/format/chrome_messages_json.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -30,12 +31,6 @@
if id.startswith('IDR_') or id.startswith('IDS_'):
id = id[4:]
- translation_missing = child.GetCliques()[0].clique.get(lang) is None;
- if child.ShouldFallbackToEnglish() and translation_missing:
- # Skip the string if it's not translated. Chrome will fallback
- # to English automatically.
- continue
-
loc_message = encoder.encode(child.ws_at_start + child.Translate(lang) +
child.ws_at_end)
« no previous file with comments | « no previous file | tools/grit/grit/format/chrome_messages_json_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698