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 4f699f22cf1d89bda369da4e775b79baa1a82f64..bb1a6349bacdc1a63dfb84d217390d7e76c6f0f0 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 |
@@ -48,11 +48,11 @@ class PListStringsWriter(template_writer.TemplateWriter): |
string table. |
''' |
desc = policy['desc'] |
- if (policy['type'] == 'enum'): |
+ if policy['type'] in ('int-enum','string-enum'): |
# Append the captions of enum items to the description string. |
item_descs = [] |
for item in policy['items']: |
- item_descs.append(item['value'] + ' - ' + item['caption']) |
+ item_descs.append(str(item['value']) + ' - ' + item['caption']) |
desc = '\n'.join(item_descs) + '\n' + desc |
self._AddToStringTable(policy['name'], policy['label'], desc) |