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) |