Skip to content

Commit

Permalink
some more strings to translate, also fixing typos eclipse-sumo#11237 e…
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Oct 11, 2022
1 parent e3a6a24 commit 778ad71
Show file tree
Hide file tree
Showing 21 changed files with 5,100 additions and 2,327 deletions.
943 changes: 937 additions & 6 deletions data/po/de_gui.po

Large diffs are not rendered by default.

1,375 changes: 684 additions & 691 deletions data/po/de_sumo.po

Large diffs are not rendered by default.

943 changes: 937 additions & 6 deletions data/po/es_gui.po

Large diffs are not rendered by default.

1,375 changes: 684 additions & 691 deletions data/po/es_sumo.po

Large diffs are not rendered by default.

943 changes: 937 additions & 6 deletions data/po/fr_gui.po

Large diffs are not rendered by default.

1,375 changes: 684 additions & 691 deletions data/po/fr_sumo.po

Large diffs are not rendered by default.

160 changes: 80 additions & 80 deletions src/gui/GUIApplicationWindow.cpp

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions src/gui/dialogs/GUIDialog_AppSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/****************************************************************************/
#include <config.h>

#include <utils/common/MsgHandler.h>
#include <utils/gui/images/GUIIconSubSys.h>
#include <utils/gui/images/GUITexturesHelper.h>
#include <utils/gui/windows/GUIAppEnum.h>
Expand Down Expand Up @@ -58,19 +59,19 @@ GUIDialog_AppSettings::GUIDialog_AppSettings(GUIMainWindow* parent)
myLocateLinks(GUIMessageWindow::locateLinksEnabled()) {
FXCheckButton* b = nullptr;
FXVerticalFrame* f1 = new FXVerticalFrame(this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
b = new FXCheckButton(f1, "Quit on Simulation End", this, MID_QUITONSIMEND);
b = new FXCheckButton(f1, TL("Quit on Simulation End"), this, MID_QUITONSIMEND);
b->setCheck(myAppQuitOnEnd);
b = new FXCheckButton(f1, "Autostart Simulation on Load and Reload", this, MID_AUTOSTART);
b = new FXCheckButton(f1, TL("Autostart Simulation on Load and Reload"), this, MID_AUTOSTART);
b->setCheck(myAppAutoStart);
b = new FXCheckButton(f1, "Reload Simulation after finish (Demo mode)", this, MID_DEMO);
b = new FXCheckButton(f1, TL("Reload Simulation after finish (Demo mode)"), this, MID_DEMO);
b->setCheck(myAppDemo);
b = new FXCheckButton(f1, "Locate elements when clicking on messages", this, MID_LOCATELINKS);
b = new FXCheckButton(f1, TL("Locate elements when clicking on messages"), this, MID_LOCATELINKS);
b->setCheck(myLocateLinks);

FXMatrix* m1 = new FXMatrix(f1, 2, (LAYOUT_FILL_X | LAYOUT_LEFT | MATRIX_BY_COLUMNS), 0, 0, 0, 0, 10, 10, 10, 10, 5, 5);
myBreakPointOffset = new FXRealSpinner(m1, 5, this, MID_TIMELINK_BREAKPOINT, GUIDesignViewSettingsSpinDial2 | SPIN_NOMIN);
myBreakPointOffset->setValue(STEPS2TIME(GUIMessageWindow::getBreakPointOffset()));
new FXLabel(m1, "Breakpoint offset when clicking on time message", nullptr, GUIDesignViewSettingsLabel1);
new FXLabel(m1, TL("Breakpoint offset when clicking on time message"), nullptr, GUIDesignViewSettingsLabel1);

myTable = new FXTable(f1, this, MID_TABLE, GUIDesignBreakpointTable);
const auto& onlineMaps = parent->getOnlineMaps();
Expand All @@ -95,11 +96,11 @@ GUIDialog_AppSettings::GUIDialog_AppSettings(GUIMainWindow* parent)
}

new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
b = new FXCheckButton(f1, "Allow Textures", this, MID_ALLOWTEXTURES);
b = new FXCheckButton(f1, TL("Allow Textures"), this, MID_ALLOWTEXTURES);
b->setCheck(myAllowTextures);
FXHorizontalFrame* f2 = new FXHorizontalFrame(f1, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH, 0, 0, 0, 0, 10, 10, 5, 5);
FXButton* initial = new FXButton(f2, "&OK", nullptr, this, MID_SETTINGS_OK, BUTTON_INITIAL | BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_CENTER_X, 0, 0, 0, 0, 30, 30, 4, 4);
new FXButton(f2, "&Cancel", nullptr, this, MID_SETTINGS_CANCEL, BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_CENTER_X, 0, 0, 0, 0, 30, 30, 4, 4);
FXButton* initial = new FXButton(f2, TL("&OK"), nullptr, this, MID_SETTINGS_OK, BUTTON_INITIAL | BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_CENTER_X, 0, 0, 0, 0, 30, 30, 4, 4);
new FXButton(f2, TL("&Cancel"), nullptr, this, MID_SETTINGS_CANCEL, BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_CENTER_X, 0, 0, 0, 0, 30, 30, 4, 4);
initial->setFocus();
setIcon(GUIIconSubSys::getIcon(GUIIcon::EMPTY));
}
Expand Down
2 changes: 1 addition & 1 deletion src/microsim/MSVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2704,7 +2704,7 @@ MSVehicle::planMoveInternal(const SUMOTime t, MSLeaderInfo ahead, DriveItemVecto
//std::cout << " blocker=" << Named::getIDSecure(blocker.first) << "\n";
}
if (n == 0) {
WRITE_WARNINGF(TL("Suspicious right_before_left junction '%s'."), lane->getEdge().getToJunction()->getID());
WRITE_WARNINGF(TL("Suspicious right_before_left junction '%'."), lane->getEdge().getToJunction()->getID());
}
//std::cout << " blockerLink=" << blocker.second << " link=" << *link << "\n";
if (blocker.second == *link) {
Expand Down
6 changes: 3 additions & 3 deletions src/microsim/transportables/MSPerson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ MSPerson::MSPersonStage_Walking::clone() const {
if (myRouteID != "" && MSRoute::distDictionary(myRouteID) != nullptr) {
route = MSRoute::dictionary(myRouteID, MSRouteHandler::getParsingRNG())->getEdges();
if (departPos > route[0]->getLength()) {
WRITE_WARNINGF(TL("Adjusting departPos for cloned walk with routeDistribution '%s'"), myRouteID);
WRITE_WARNINGF(TL("Adjusting departPos for cloned walk with routeDistribution '%'"), myRouteID);
departPos = route[0]->getLength();
}
if (arrivalPos > route.back()->getLength()) {
WRITE_WARNINGF(TL("Adjusting arrivalPos for cloned walk with routeDistribution '%s'"), myRouteID);
WRITE_WARNINGF(TL("Adjusting arrivalPos for cloned walk with routeDistribution '%'"), myRouteID);
arrivalPos = route.back()->getLength();
}
if (departLane >= route[0]->getNumLanes()) {
WRITE_WARNINGF(TL("Adjusting departLane for cloned walk with routeDistribution '%s'"), myRouteID);
WRITE_WARNINGF(TL("Adjusting departLane for cloned walk with routeDistribution '%'"), myRouteID);
departLane = route[0]->getNumLanes() - 1;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/netbuild/NBEdge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4363,7 +4363,7 @@ NBEdge::hasRestrictedLane(SUMOVehicleClass vclass) const {
void
NBEdge::addRestrictedLane(double width, SUMOVehicleClass vclass) {
if (hasRestrictedLane(vclass)) {
WRITE_WARNINGF(TL("Edge '%' already has a dedicated lane for %s. Not adding another one."), getID(), toString(vclass));
WRITE_WARNINGF(TL("Edge '%' already has a dedicated lane for %. Not adding another one."), getID(), toString(vclass));
return;
}
if (myLaneSpreadFunction == LaneSpreadFunction::CENTER) {
Expand Down Expand Up @@ -4400,7 +4400,7 @@ void
NBEdge::restoreRestrictedLane(SUMOVehicleClass vclass, std::vector<NBEdge::Lane> oldLanes, PositionVector oldGeometry, std::vector<NBEdge::Connection> oldConnections) {
// check that previously lane was transformed
if (myLanes[0].permissions != vclass) {
WRITE_WARNINGF(TL("Edge '%' doesn't have a dedicated lane for %s. Cannot be restored."), getID(), toString(vclass));
WRITE_WARNINGF(TL("Edge '%' doesn't have a dedicated lane for %. Cannot be restored."), getID(), toString(vclass));
return;
}
// restore old values
Expand Down
2 changes: 1 addition & 1 deletion src/netbuild/NBNodeCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ NBNodeCont::addCluster2Join(const std::set<std::string>& cluster, NBNode* node)
myJoined.insert(validCluster.begin(), validCluster.end());
myClusters2Join.push_back(std::make_pair(validCluster, node));
} else {
WRITE_WARNINGF(TL("Ignoring join-cluster '%s' because it has size '%'."), node->getID(), validCluster.size());
WRITE_WARNINGF(TL("Ignoring join-cluster '%' because it has size '%'."), node->getID(), validCluster.size());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/netbuild/NBParking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ NBParking::write(OutputDevice& device, NBEdgeCont& ec) const {
}
device.closeTag();
} else {
WRITE_WARNINGF(TL("could not find edge for parkingArea '%s'"), getID());
WRITE_WARNINGF(TL("Could not find edge for parkingArea '%'."), getID());
}
// XXX else: prevent edge merging via --geometry.remove
}
Expand Down
Loading

0 comments on commit 778ad71

Please sign in to comment.