[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Thu Mar 18 21:39:38 CET 2010
SVN commit 1104895 by nienhueser:
Retrieve localized routing instructions.
M +3 -2 OrsRoutingProvider.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/OrsRoutingProvider.cpp #1104894:1104895
@@ -13,6 +13,7 @@
#include "MarbleDebug.h"
#include "MarbleDirs.h"
#include "RouteSkeleton.h"
+#include "MarbleLocale.h"
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
@@ -79,9 +80,9 @@
result += "xmlns:gml=\"http://www.opengis.net/gml\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" ";
result += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
result += "xsi:schemaLocation=\"http://www.opengis.net/xls ";
- result += "http://schemas.opengis.net/ols/1.1.0/RouteService.xsd\" version=\"1.1\" xls:lang=\"en\">\n";
+ result += "http://schemas.opengis.net/ols/1.1.0/RouteService.xsd\" version=\"1.1\" xls:lang=\"%1\">\n";
result += "<xls:RequestHeader/>\n";
- return result;
+ return result.arg(MarbleLocale::languageCode());
}
QString OrsRoutingProvider::requestHeader(DistanceUnit unit, Preference preference) const
More information about the Marble-commits
mailing list