Qt:
ADDED short translation how-to FIXED some linux build errors
This commit is contained in:
parent
3d2fe9980f
commit
262403b630
|
@ -0,0 +1,11 @@
|
|||
How to create a new translation:
|
||||
|
||||
- Add "TRANSLATIONS += language.ts" to vba-m.pro
|
||||
- Call "lupdate vba-m.pro" to create the .ts file
|
||||
- Edit & translate the .ts file with the "Qt Linguist" tool
|
||||
- Call "lrelease vba-m.pro" to create the compiled .qm file
|
||||
- Load the language file in the application:
|
||||
<<
|
||||
QTranslator translator;
|
||||
translator.load( "language" ); // without .qm ending
|
||||
>>
|
|
@ -8,8 +8,8 @@ PRECOMPILED_HEADER = ../../src/qt/precompile.h
|
|||
HEADERS += ../../src/qt/main.h
|
||||
SOURCES += ../../src/qt/main.cpp
|
||||
|
||||
HEADERS += ../../src/qt/mainwnd.h
|
||||
SOURCES += ../../src/qt/mainwnd.cpp
|
||||
HEADERS += ../../src/qt/MainWnd.h
|
||||
SOURCES += ../../src/qt/MainWnd.cpp
|
||||
|
||||
HEADERS += ../../src/qt/glwidget.h
|
||||
SOURCES += ../../src/qt/glwidget.cpp
|
||||
|
|
|
@ -80,11 +80,11 @@
|
|||
Name="MainWnd"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\src\qt\mainwnd.cpp"
|
||||
RelativePath="..\..\src\qt\MainWnd.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\qt\mainwnd.h"
|
||||
RelativePath="..\..\src\qt\MainWnd.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
#include "mainwnd.h"
|
||||
#include "MainWnd.h"
|
||||
|
||||
#include "glwidget.h"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "main.h"
|
||||
|
||||
#include "mainwnd.h"
|
||||
#include "MainWnd.h"
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
#if defined __cplusplus
|
||||
// Add C++ includes here
|
||||
#include <QtGui>
|
||||
#include <QtOpenGL>
|
||||
#include <QtGui/QtGui>
|
||||
#include <QtOpenGL/QtOpenGL>
|
||||
#endif
|
||||
|
||||
#endif // #ifndef PRECOMPILE_H
|
||||
|
|
Loading…
Reference in New Issue