Index: tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py |
diff --git a/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py b/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py |
index 965c90046d0d85b669b97d4cd9f0582372174aad..5bcaaaa4086273cdcb7489ed9a2b2773a6a24875 100644 |
--- a/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py |
+++ b/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py |
@@ -45,7 +45,13 @@ class PListStringsWriter(template_writer.TemplateWriter): |
string table. |
''' |
desc = policy['desc'] |
- if (policy['type'] == 'enum'): |
+ if (policy['type'] == 'int-enum'): |
gfeher
2011/01/03 10:30:10
Please merge handling of 'int-enum' and 'string-en
danno
2011/01/07 12:24:25
Done.
|
+ # Append the captions of enum items to the description string. |
+ item_descs = [] |
+ for item in policy['items']: |
+ item_descs.append(str(item['value']) + ' - ' + item['caption']) |
+ desc = '\n'.join(item_descs) + '\n' + desc |
+ if (policy['type'] == 'string-enum'): |
# Append the captions of enum items to the description string. |
item_descs = [] |
for item in policy['items']: |