Lines 3-8
Link Here
|
3 |
#include <QApplication> |
3 |
#include <QApplication> |
4 |
#include <QtCore> |
4 |
#include <QtCore> |
5 |
#include <QtGui> |
5 |
#include <QtGui> |
|
|
6 |
#include <QLibraryInfo> |
6 |
|
7 |
|
7 |
#include "default.h" |
8 |
#include "default.h" |
8 |
|
9 |
|
Lines 60-66
void loadTranslator(void)
Link Here
|
60 |
{ |
61 |
{ |
61 |
printf("\n[Locale] Locale: %s\n", QLocale::system().name().toUtf8().constData()); |
62 |
printf("\n[Locale] Locale: %s\n", QLocale::system().name().toUtf8().constData()); |
62 |
|
63 |
|
63 |
QString appdir = QCoreApplication::applicationDirPath() + "/i18n/"; |
64 |
QString appdir = QLibraryInfo::location(QLibraryInfo::TranslationsPath) + QDir::separator(); |
64 |
|
65 |
|
65 |
loadTranslation(&qtTranslator, appdir + "qt_" + QLocale::system().name()); |
66 |
loadTranslation(&qtTranslator, appdir + "qt_" + QLocale::system().name()); |
66 |
loadTranslation(&avidemuxTranslator, appdir + "avidemux_" + QLocale::system().name()); |
67 |
loadTranslation(&avidemuxTranslator, appdir + "avidemux_" + QLocale::system().name()); |