KOSMIndoorMap::Localization Namespace Reference


enum  TranslationOption { ReturnUnknownKey , ReturnEmptyOnUnknownKey }


QString amenityType (const char *value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
QString cuisineTypes (const QByteArray &value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
bool hasAmenityTypeTranslation (const char *value)

Detailed Description

Translations of various OSM tag values.

Enumeration Type Documentation

◆ TranslationOption

Control how unknown elements get translated.

Definition at line 19 of file localization.h.

Function Documentation

◆ amenityType()

QString KOSMIndoorMap::Localization::amenityType ( const char * value,
Localization::TranslationOption opt = Localization::ReturnUnknownKey )

Translated name for an amenity tag value (after list splitting).

This also covers values of similar/overlapping tags (office, tourism, leisure, historic, room, building, etc).

Definition at line 16 of file localization.cpp.

◆ cuisineTypes()

QString KOSMIndoorMap::Localization::cuisineTypes ( const QByteArray & value,
Localization::TranslationOption opt = Localization::ReturnUnknownKey )

Translated values of the cuisine tag (does list splitting).

Definition at line 21 of file localization.cpp.

◆ hasAmenityTypeTranslation()

bool KOSMIndoorMap::Localization::hasAmenityTypeTranslation ( const char * value)

Returns true if we can translate value.

Definition at line 11 of file localization.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.