diff --git a/src/utils/gui/div/GUIMessageWindow.cpp b/src/utils/gui/div/GUIMessageWindow.cpp index 381e6726b02a..76a59585a2a9 100644 --- a/src/utils/gui/div/GUIMessageWindow.cpp +++ b/src/utils/gui/div/GUIMessageWindow.cpp @@ -168,18 +168,21 @@ GUIMessageWindow::setCursorPos(FXint pos, FXbool notify) { const int lookback = MIN2(pos, 20); const int start = MAX2(lineStart(pos), pos - lookback); const FXString candidate = text.mid(start, lineEnd(pos) - start); - FXint timePos = candidate.find(" time") + 6; - SUMOTime t = -1; - if (pos >= 0 && pos > start + timePos) { - t = getTimeString(candidate, timePos, 0, candidate.length()); - if (t >= 0) { - t += myBreakPointOffset; - std::vector breakpoints = myMainWindow->retrieveBreakpoints(); - if (std::find(breakpoints.begin(), breakpoints.end(), t) == breakpoints.end()) { - breakpoints.push_back(t); - std::sort(breakpoints.begin(), breakpoints.end()); - myMainWindow->setBreakpoints(breakpoints); - myMainWindow->setStatusBarText("Set breakpoint at " + time2string(t)); + FXint timePos = candidate.find(TL(" time")); + if (timePos > -1) { + timePos += 6; + SUMOTime t = -1; + if (pos >= 0 && pos > start + timePos) { + t = getTimeString(candidate, timePos, 0, candidate.length()); + if (t >= 0) { + t += myBreakPointOffset; + std::vector breakpoints = myMainWindow->retrieveBreakpoints(); + if (std::find(breakpoints.begin(), breakpoints.end(), t) == breakpoints.end()) { + breakpoints.push_back(t); + std::sort(breakpoints.begin(), breakpoints.end()); + myMainWindow->setBreakpoints(breakpoints); + myMainWindow->setStatusBarText(TLF("Set breakpoint at %", time2string(t))); + } } } } @@ -237,7 +240,7 @@ GUIMessageWindow::appendMsg(GUIEventType eType, const std::string& msg) { pos = text.find("'", pos + 1); } // find time links - pos = text.find(" time"); + pos = text.find(TL(" time")); SUMOTime t = -1; if (pos >= 0) { t = getTimeString(text, pos + 6, 0, text.length());