mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-27 14:16:42 +02:00
Fix "terms" translations (closes #2756)
Make them lowercase and split them on any combination of commas and whitespace.
This commit is contained in:
@@ -46,7 +46,7 @@ iD.presets.Preset = function(id, preset, fields) {
|
||||
};
|
||||
|
||||
preset.terms = function() {
|
||||
return preset.t('terms', {'default': ''}).split(',');
|
||||
return preset.t('terms', {'default': ''}).toLowerCase().split(/\s*,+\s*/);
|
||||
};
|
||||
|
||||
preset.isFallback = function() {
|
||||
|
||||
Reference in New Issue
Block a user