Allow "yes" and "no" check values to be translated (fixes #1819)

This commit is contained in:
John Firebaugh
2013-10-09 17:44:53 -07:00
parent 353eb5e0d1
commit c7f085e93f
3 changed files with 9 additions and 2 deletions
+3
View File
@@ -204,6 +204,9 @@ en:
incomplete: <not downloaded>
feature_list: Search features
edit: Edit feature
check:
yes: Yes
no: No
background:
title: Background
description: Background settings
+5 -1
View File
@@ -250,7 +250,11 @@
"unknown": "Unknown",
"incomplete": "<not downloaded>",
"feature_list": "Search features",
"edit": "Edit feature"
"edit": "Edit feature",
"check": {
"yes": "Yes",
"no": "No"
}
},
"background": {
"title": "Background",
+1 -1
View File
@@ -39,7 +39,7 @@ iD.ui.preset.check = function(field) {
value = tags[field.key];
box.property('indeterminate', !value);
box.property('checked', value === 'yes');
text.text(value || t('inspector.unknown'));
text.text(value ? t('inspector.check.' + value, {default: value}) : t('inspector.unknown'));
label.classed('set', !!value);
};