mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Allow "yes" and "no" check values to be translated (fixes #1819)
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+5
-1
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user