Made menus translatable.

This commit is contained in:
leo 2014-09-17 22:17:42 +00:00
parent 564ef5b82c
commit 641a476726
6 changed files with 3920 additions and 1980 deletions

File diff suppressed because it is too large Load diff

View file

@ -236,4 +236,4 @@ FORMS += \
qt/lc_qfinddialog.ui
OTHER_FILES +=
RESOURCES += leocad.qrc
TRANSLATIONS = resources/leocad_pt_BR.ts
TRANSLATIONS = resources/leocad_pt.ts

View file

@ -67,6 +67,6 @@
<file>resources/piece_show_later.png</file>
<file>resources/time_add_keys.png</file>
<file>resources/library.zip</file>
<file>resources/leocad_pt_BR.qm</file>
<file>resources/leocad_pt.qm</file>
</qresource>
</RCC>

View file

@ -133,7 +133,7 @@ int main(int argc, char *argv[])
QCoreApplication::setApplicationVersion(LC_VERSION_TEXT);
QTranslator Translator;
Translator.load(QString("leocad_") + QLocale::system().name() + ".qm", ":/resources");
Translator.load(QString("leocad_") + QLocale::system().name().section('_', 0, 0) + ".qm", ":/resources");
app.installTranslator(&Translator);
g_App = new lcApplication();

3401
resources/leocad_pt.ts Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff