OSM::Languages
OSM::Languages Class Reference
#include <languages.h>
Public Member Functions | |
Languages (const Languages &)=delete | |
Languages (Languages &&) noexcept=default | |
Languages & | operator= (const Languages &)=delete |
Languages & | operator= (Languages &&)=default |
Static Public Member Functions | |
static KOSM_EXPORT Languages | fromQLocale (const QLocale &locale) |
Public Attributes | |
std::vector< std::string > | languages |
Detailed Description
Languages in preference order to consider when looking up translated tag values.
- See also
- https://wiki.openstreetmap.org/wiki/Multilingual_names
- https://wiki.openstreetmap.org/wiki/Key:name#Variants
- https://wiki.openstreetmap.org/wiki/Names#Localization
Definition at line 24 of file languages.h.
Member Function Documentation
◆ fromQLocale()
|
staticnodiscard |
Convert QLocale::uiLanguages() into an OSM::Languages set.
The result should be cached in case of repeated use, QLocale::uiLanguages() is relatively expensive.
Definition at line 40 of file languages.cpp.
Member Data Documentation
◆ languages
std::vector<std::string> OSM::Languages::languages |
Definition at line 40 of file languages.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.