Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Namespaces | Functions | Variables
localization.cpp File Reference
#include "localization.h"
#include <cassert>
#include <vector>
#include <QApplication>
#include <QFileInfo>
#include <QIcon>
#include <QLibraryInfo>
#include <QLocale>
#include <QString>
#include <QStringList>
#include <QTranslator>
#include "preferences/globalpreferences.h"

Namespaces

 geometrize
 < Energy function passed to the image task worker thread.
 

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...
 

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_"}