Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2018-01-11 15:53:00 +01:00
commit 936b4eb85c
2 changed files with 4 additions and 0 deletions

View file

@ -41,6 +41,9 @@ public class EntityParser {
if (mo.getName().length() == 0) {
mo.setName(mo.getEnName(false));
}
if (mo.getName().length() == 0 && tags.containsKey(OSMTagKey.LOCK_NAME.getValue())) {
mo.setName(tags.get(OSMTagKey.LOCK_NAME.getValue()));
}
if (mo.getLocation() == null) {
LatLon l = null;
if (mo instanceof Building) {

View file

@ -5,6 +5,7 @@ public class OSMSettings {
public enum OSMTagKey {
NAME("name"), //$NON-NLS-1$
NAME_EN("name:en"), //$NON-NLS-1$
LOCK_NAME("lock_name"), //$NON-NLS-1$
// ways
HIGHWAY("highway"), //$NON-NLS-1$