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

Unified Diff: grit/format/chrome_messages_json.py

Issue 138903021: Strip IDS_ as well as IDR_ in the chrome_messages_json generator. (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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 | 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: grit/format/chrome_messages_json.py
===================================================================
--- grit/format/chrome_messages_json.py (revision 147)
+++ grit/format/chrome_messages_json.py (working copy)
@@ -25,7 +25,7 @@
for child in root.ActiveDescendants():
if isinstance(child, message.MessageNode):
id = child.attrs['name']
- if id.startswith('IDR_'):
+ if id.startswith('IDR_') or id.startswith('IDS_'):
id = id[4:]
loc_message = encoder.encode(child.Translate(lang))
« no previous file with comments | « no previous file | grit/format/chrome_messages_json_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698