Skip to content

Commit

Permalink
correct TL placeholder ref #11859 #12
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <[email protected]>
  • Loading branch information
m-kro committed Feb 16, 2024
1 parent e1a70b3 commit 95cae49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/devices/MSDevice_Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ MSDevice_Battery::readParameterValue(SUMOVehicle& v, const SumoXMLAttr& attr, co
const std::string& oldParam = toString(attr);
const SUMOVTypeParameter& typeParams = v.getVehicleType().getParameter();
if (v.getParameter().hasParameter(oldParam) || typeParams.hasParameter(oldParam)) {
WRITE_WARNINGF(TL("Battery device in vehicle '%s' still uses old parameter '%'. Please update to 'device.%'."), v.getID(), oldParam, paramName);
WRITE_WARNINGF(TL("Battery device in vehicle '%' still uses old parameter '%'. Please update to 'device.%'."), v.getID(), oldParam, paramName);
if (v.getParameter().getParameter(oldParam, "-") == "-") {
return typeParams.getDouble(oldParam, defaultVal);
}
Expand Down

0 comments on commit 95cae49

Please sign in to comment.