Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
localization.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QLocale>
4 #include <QString>
5 
6 class QIcon;
7 
8 namespace geometrize
9 {
10 
16 
22 
28 
34 void setTranslatorsForLocale(const QString& locale);
35 
41 QIcon getFlagIconForLocaleCode(const QString& localeCode);
42 
49 
56 void setGlobalPreferencesForLocale(const QLocale& locale);
57 
58 }
void setTranslatorsForLocale(const QString &locale)
installTranslatorsForLocale Installs translators for the application.
Definition: localization.cpp:74
void setGlobalPreferencesForLocale(const QLocale &locale)
setGlobalPreferencesForLocale Sets the locale settings based on the given locale name.
Definition: localization.cpp:169
QLocale getGlobalPreferencesLocale()
getGlobalPreferencesLocale Gets a QLocale instance based on the current settings in global preference...
Definition: localization.cpp:147
QString getAppTranslationResourceDirectory()
getAppTranslationResourceDirectory Gets the resource path where translation files specific to the app...
Definition: localization.cpp:64
QString getBinaryTranslationFileExtension()
getBinaryTranslationFileExtension Gets the file extension for Qt binary translation files...
Definition: localization.cpp:59
QIcon getFlagIconForLocaleCode(const QString &localeCode)
getFlagIconForLocaleCode Gets a representative national flag for the given locale code...
Definition: localization.cpp:96
QString getQtTranslationResourceDirectory()
getQtTranslationResourceDirectory Gets the resource path where translation files for Qt itself are st...
Definition: localization.cpp:69