Skip to content

Commit 620006c

Browse files
committed
Disable translated string cache for park updaters
1 parent a4aeffc commit 620006c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

application/src/ext/java/org/opentripplanner/ext/vehicleparking/liipi/LiipiHubToVehicleParkingGroupMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Map<FeedScopedId, VehicleParkingGroup> parseHub(JsonNode jsonNode) {
5252
});
5353
I18NString name = translations.isEmpty()
5454
? new NonLocalizedString(hubId.getId())
55-
: TranslatedString.getI18NString(translations, true, false);
55+
: TranslatedString.getI18NString(translations, false, false);
5656
Geometry geometry = GEOMETRY_PARSER.geometryFromJson(jsonNode.path("location"));
5757
var vehicleParkingGroup = VehicleParkingGroup.of(hubId)
5858
.withName(name)

application/src/ext/java/org/opentripplanner/ext/vehicleparking/liipi/LiipiParkToVehicleParkingMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public VehicleParking parsePark(
9090
});
9191
I18NString name = translations.isEmpty()
9292
? new NonLocalizedString(vehicleParkId.getId())
93-
: TranslatedString.getI18NString(translations, true, false);
93+
: TranslatedString.getI18NString(translations, false, false);
9494
Geometry geometry = GEOMETRY_PARSER.geometryFromJson(jsonNode.path("location"));
9595

9696
var stateText = jsonNode.path("status").asText();

application/src/ext/java/org/opentripplanner/ext/vehicleparking/parkapi/ParkAPIUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected VehicleParking parseElement(JsonNode jsonNode) {
6666
var noteFiled = noteFieldIterator.next();
6767
noteLocalizations.put(noteFiled.getKey(), noteFiled.getValue().asText());
6868
}
69-
note = TranslatedString.getI18NString(noteLocalizations, true, false);
69+
note = TranslatedString.getI18NString(noteLocalizations, false, false);
7070
}
7171

7272
var vehicleParkId = createIdForNode(jsonNode);

0 commit comments

Comments
 (0)