![]() |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
#include "localization.h"
#include <cassert>
#include <vector>
#include <QApplication>
#include <QDirIterator>
#include <QFileInfo>
#include <QIcon>
#include <QLibraryInfo>
#include <QLocale>
#include <QString>
#include <QStringList>
#include <QtGlobal>
#include <QTranslator>
#include "preferences/globalpreferences.h"
Namespaces | |
geometrize | |
Functions | |
QString | geometrize::getBinaryTranslationFileExtension () |
getBinaryTranslationFileExtension Gets the file extension for Qt binary translation files. More... | |
QString | geometrize::getAppTranslationResourceDirectory () |
getAppTranslationResourceDirectory Gets the resource path where translation files specific to the app are stored. More... | |
QString | geometrize::getQtTranslationResourceDirectory () |
getQtTranslationResourceDirectory Gets the resource path where translation files for Qt itself are stored. More... | |
void | geometrize::setTranslatorsForLocale (const QString &locale) |
installTranslatorsForLocale Installs translators for the application. More... | |
QIcon | geometrize::getFlagIconForLocaleCode (const QString &localeCode) |
getFlagIconForLocaleCode Gets a representative national flag for the given locale code. More... | |
QLocale | geometrize::getGlobalPreferencesLocale () |
getGlobalPreferencesLocale Gets a QLocale instance based on the current settings in global preferences. Note that if the string violates the locale format, the "C" locale is used instead. More... | |
void | geometrize::setGlobalPreferencesForLocale (const QLocale &locale) |
setGlobalPreferencesForLocale Sets the locale settings based on the given locale name. More... | |
QStringList | geometrize::getSupportedLocaleCodes () |
getSupportedLocaleCodes Iterates over the embedded .qm files and extracts the ISO language codes from their filenames More... | |
void | geometrize::setLocaleAndUserInterfaceLanguage (const QString &isoCode) |
setLocaleAndUserInterfaceLanguage Sets the application locale and user interface language to the given language code More... | |
Variables | |
const QString | geometrize::flagIconResourceDirectory {":/flags/"} |
const QString | geometrize::flagIconFileExtension {".png"} |
const QString | geometrize::errorFlagResourcePath {":/icons/error.png"} |
const QString | geometrize::qtTranslationFilePrefix {"qt_"} |
const QString | geometrize::qtBaseTranslationFilePrefix {"qtbase_"} |
const QString | geometrize::geometrizeTranslationFilePrefix {"geometrize_"} |