ADDED short translation how-to
FIXED some linux build errors
This commit is contained in:
spacy51 2008-02-09 21:42:17 +00:00
parent 3d2fe9980f
commit 262403b630
6 changed files with 19 additions and 8 deletions

11
lang/how-to.txt Normal file
View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "mainwnd.h"
#include "MainWnd.h"
#include "glwidget.h"

View File

@ -18,7 +18,7 @@
#include "main.h"
#include "mainwnd.h"
#include "MainWnd.h"
int main( int argc, char *argv[] )
{

View File

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