Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-12-02 19:42:49 +01:00
commit 7368e2b454

View file

@ -145,7 +145,7 @@ public class RouteDataObject {
public String getDestinationName(String lang, boolean transliterate, boolean direction){
//Issue #3289: Treat destination:ref like a destination, not like a ref
String destRef = (getDestinationRef(direction) == null) ? "" : getDestinationRef(direction);
String destRef = ((getDestinationRef(direction) == null) || getDestinationRef(direction).equals(getRef(direction)) ? "" : getDestinationRef(direction);
String destRef1 = ("".equals(destRef)) ? "" : destRef + ", ";
if(names != null) {
@ -188,9 +188,10 @@ public class RouteDataObject {
}
if(transliterate && destinationDefault != null) {
return destRef1 + Junidecode.unidecode(destinationDefault);
}
} else if (destinationDefault != null) {
return destRef1 + destinationDefault;
}
}
return "".equals(destRef) ? null : destRef;
}