mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
bugfix: don't store icon and geom in t, as no translation is needed here
This commit is contained in:
@@ -160,14 +160,6 @@ function generateFields(tstrings) {
|
||||
}
|
||||
}
|
||||
|
||||
if (field.geometry) {
|
||||
t.geometry = field.geometry;
|
||||
}
|
||||
|
||||
if (field.icon) {
|
||||
t.icon = field.icon;
|
||||
}
|
||||
|
||||
fields[id] = field;
|
||||
});
|
||||
return fields;
|
||||
@@ -306,12 +298,6 @@ function generateTranslations(fields, presets, tstrings) {
|
||||
}
|
||||
});
|
||||
|
||||
// remove fields we're not interested in for translation
|
||||
_forEach(translations.fields, function(field) {
|
||||
delete field.icon;
|
||||
delete field.geometry;
|
||||
});
|
||||
|
||||
return translations;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user