Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/declarative/Placemark.cpp
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Line(s) | 200 | if (seats > 0) { | |||
---|---|---|---|---|---|
202 | //~ plural %n seats | 202 | //~ plural %n seats | ||
203 | addTagValue(m_description, QStringLiteral("seats"), tr("%1 seats", "number of seats a bench provides", seats)); | 203 | addTagValue(m_description, QStringLiteral("seats"), tr("%1 seats", "number of seats a bench provides", seats)); | ||
204 | } | 204 | } | ||
205 | addTagValue(m_description, QStringLiteral("material")); | 205 | addTagValue(m_description, QStringLiteral("material")); | ||
206 | addTagDescription(m_description, QStringLiteral("backrest"), QStringLiteral("yes"), tr("Has backrest", "A bench provides a backrest to lean against")); | 206 | addTagDescription(m_description, QStringLiteral("backrest"), QStringLiteral("yes"), tr("Has backrest", "A bench provides a backrest to lean against")); | ||
207 | addTagDescription(m_description, QStringLiteral("backrest"), QStringLiteral("no"), tr("No backrest", "A bench provides no backrest to lean against")); | 207 | addTagDescription(m_description, QStringLiteral("backrest"), QStringLiteral("no"), tr("No backrest", "A bench provides no backrest to lean against")); | ||
208 | } else if (category == GeoDataPlacemark::AmenityWasteBasket) { | 208 | } else if (category == GeoDataPlacemark::AmenityWasteBasket) { | ||
209 | addTagValue(m_description, QStringLiteral("waste")); | 209 | addTagValue(m_description, QStringLiteral("waste")); | ||
210 | } else if (category == GeoDataPlacemark::TransportSpeedCamera) { | ||||
211 | addTagValue(m_description, QStringLiteral("maxspeed"), tr("%1 km/h")); | ||||
212 | addTagValue(m_description, "ref"); | ||||
210 | } | 213 | } | ||
211 | 214 | | |||
212 | if (category == GeoDataPlacemark::AmenityRecycling || category == GeoDataPlacemark::AmenityPostBox) { | 215 | if (category == GeoDataPlacemark::AmenityRecycling || category == GeoDataPlacemark::AmenityPostBox) { | ||
213 | addTagValue(m_description, QStringLiteral("collection_times"), tr("Collection times %1"), QStringLiteral(", ")); | 216 | addTagValue(m_description, QStringLiteral("collection_times"), tr("Collection times %1"), QStringLiteral(", ")); | ||
214 | } | 217 | } | ||
215 | 218 | | |||
216 | addTagDescription(m_description, "access", "no", tr("no access")); | 219 | addTagDescription(m_description, "access", "no", tr("no access")); | ||
217 | addTagDescription(m_description, "access", "private", tr("private")); | 220 | addTagDescription(m_description, "access", "private", tr("private")); | ||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |