Skip to content

Commit

Permalink
more translatable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Dec 5, 2023
1 parent 5b18ece commit 5fedaa1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/options/OptionsCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void
OptionsCont::reportDoubleSetting(const std::string& arg) const {
std::vector<std::string> synonymes = getSynonymes(arg);
std::ostringstream s;
s << "A value for the option '" + arg + "' was already set.\n Possible synonymes: ";
s << TLF("A value for the option '%' was already set.\n Possible synonymes: ", arg);
auto synonym = synonymes.begin();
while (synonym != synonymes.end()) {
s << (*synonym);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/router/AStarRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class AStarRouter : public SUMOAbstractRouter<E, V> {
}
#endif
if (!silent) {
this->myErrorMsgHandler->informf("No connection between edge '%' and edge '%' found.", from->getID(), to->getID());
this->myErrorMsgHandler->informf(TL("No connection between edge '%' and edge '%' found."), from->getID(), to->getID());
}
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/router/CHRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class CHRouter: public SUMOAbstractRouter<E, V> {

virtual void prohibit(const std::vector<E*>& toProhibit) {
if (toProhibit.size() > 0) {
WRITE_WARNINGF("Routing algorithm CH does not support dynamic closing of edges%", "");
WRITE_WARNINGF(TL("Routing algorithm CH does not support dynamic closing of edges%"), "");
}
}

Expand Down Expand Up @@ -329,7 +329,7 @@ class CHRouter: public SUMOAbstractRouter<E, V> {
buildPathFromMeeting(meeting, into);
} else {
if (!silent) {
this->myErrorMsgHandler->informf("No connection between edge '%' and edge '%' found.", from->getID(), to->getID());
this->myErrorMsgHandler->informf(TL("No connection between edge '%' and edge '%' found."), from->getID(), to->getID());
}
result = false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/router/CHRouterWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CHRouterWrapper: public SUMOAbstractRouter<E, V> {

virtual void prohibit(const std::vector<E*>& toProhibit) {
if (toProhibit.size() > 0) {
WRITE_WARNINGF("Routing algorithm CHWrapper does not support dynamic closing of edges%", "");
WRITE_WARNINGF(TL("Routing algorithm CHWrapper does not support dynamic closing of edges%"), "");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/router/DijkstraRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class DijkstraRouter : public SUMOAbstractRouter<E, V> {
std::cout << "visited " + toString(num_visited) + " edges (unsuccessful path length: " + toString(into.size()) + ")\n";
#endif
if (to != nullptr && !mySilent && !silent) {
this->myErrorMsgHandler->informf("No connection between edge '%' and edge '%' found.", from->getID(), to->getID());
this->myErrorMsgHandler->informf(TL("No connection between edge '%' and edge '%' found."), from->getID(), to->getID());
}
#ifdef DijkstraRouter_DEBUG_QUERY_VISITED
DijkstraRouter_DEBUG_QUERY_VISITED_OUT << " </interval>\n</edgeData>\n";
Expand Down

0 comments on commit 5fedaa1

Please sign in to comment.