diff --git a/libremapping.pro b/libremapping.pro
index 7bd984c..5e8d098 100644
--- a/libremapping.pro
+++ b/libremapping.pro
@@ -37,6 +37,8 @@ SOURCES = \
QT += gui opengl xml
RESOURCES = libremapping.qrc
+TRANSLATIONS = libremapping_fr.ts
+
include(contrib/qtpropertybrowser/src/qtpropertybrowser.pri)
docs.depends = $(HEADERS) $(SOURCES)
diff --git a/libremapping_fr.ts b/libremapping_fr.ts
new file mode 100644
index 0000000..e7ad2ca
--- /dev/null
+++ b/libremapping_fr.ts
@@ -0,0 +1,557 @@
+
+
+
+
+ MainWindow
+
+ Open mapping
+
+
+
+ Libremapping files (*.lmp)
+
+
+
+ Save mapping project
+ Sauvegarder le projet
+
+
+ LibreMapping files (*.lmp)
+
+
+
+ Import resource
+ Importer une ressource
+
+
+ About LibreMapping
+
+
+
+ Libremapping
+
+
+
+ &New
+
+
+
+ Create a new mapping file
+
+
+
+ &Open...
+
+
+
+ Open an existing mapping file
+
+
+
+ &Save
+
+
+
+ Save the mapping to disk
+
+
+
+ Save &As...
+
+
+
+ Save the mapping under a new name
+
+
+
+ &Import media source...
+
+
+
+ Import a media source file
+
+
+
+ E&xit
+
+
+
+ Ctrl+Q
+
+
+
+ Exit the application
+
+
+
+ &About
+ &A propos
+
+
+ Show the application's About box
+
+
+
+ &Add quad
+
+
+
+ Add quad
+ Ajouter un mesh
+
+
+ &Add triangle
+
+
+
+ Add triangle
+ Ajouter un triangle
+
+
+ &File
+
+
+
+ &Help
+
+
+
+ The document has been modified.
+Do you want to save your changes?
+
+
+
+ Error reading mapping project file
+
+
+
+ Cannot read file %1:
+%2.
+
+
+
+ Parse error in file %1:
+
+%2
+
+
+
+ File loaded
+
+
+
+ Error saving mapping project
+
+
+
+ Cannot write file %1:
+%2.
+
+
+
+ File saved
+
+
+
+ Untitled
+
+
+
+ %1[*] - %2
+
+
+
+ LibreMapping Project
+
+
+
+ File imported
+
+
+
+
+ QObject
+
+ Texture mapping
+
+
+
+ Input shape
+
+
+
+ Output shape
+
+
+
+ Point %1
+
+
+
+ Dimensions
+
+
+
+ The file is not a libremapping version 1.0 file.
+
+
+
+ %1
+Line %2, column %3
+
+
+
+
+ QtBoolEdit
+
+ True
+
+
+
+ False
+
+
+
+
+ QtBoolPropertyManager
+
+ True
+
+
+
+ False
+
+
+
+
+ QtCharEdit
+
+ Clear Char
+
+
+
+
+ QtColorEditWidget
+
+ ...
+
+
+
+
+ QtColorPropertyManager
+
+ Red
+
+
+
+ Green
+
+
+
+ Blue
+
+
+
+ Alpha
+
+
+
+
+ QtCursorDatabase
+
+ Arrow
+
+
+
+ Up Arrow
+
+
+
+ Cross
+
+
+
+ Wait
+
+
+
+ IBeam
+
+
+
+ Size Vertical
+
+
+
+ Size Horizontal
+
+
+
+ Size Backslash
+
+
+
+ Size Slash
+
+
+
+ Size All
+
+
+
+ Blank
+
+
+
+ Split Vertical
+
+
+
+ Split Horizontal
+
+
+
+ Pointing Hand
+
+
+
+ Forbidden
+
+
+
+ Open Hand
+
+
+
+ Closed Hand
+
+
+
+ What's This
+
+
+
+ Busy
+
+
+
+
+ QtFontEditWidget
+
+ ...
+
+
+
+ Select Font
+
+
+
+
+ QtFontPropertyManager
+
+ Family
+
+
+
+ Point Size
+
+
+
+ Bold
+
+
+
+ Italic
+
+
+
+ Underline
+
+
+
+ Strikeout
+
+
+
+ Kerning
+
+
+
+
+ QtKeySequenceEdit
+
+ Clear Shortcut
+
+
+
+
+ QtLocalePropertyManager
+
+ %1, %2
+
+
+
+ Language
+
+
+
+ Country
+
+
+
+
+ QtPointFPropertyManager
+
+ (%1, %2)
+
+
+
+ X
+
+
+
+ Y
+
+
+
+
+ QtPointPropertyManager
+
+ (%1, %2)
+
+
+
+ X
+
+
+
+ Y
+
+
+
+
+ QtPropertyBrowserUtils
+
+ [%1, %2, %3] (%4)
+
+
+
+ [%1, %2]
+
+
+
+
+ QtRectFPropertyManager
+
+ [(%1, %2), %3 x %4]
+
+
+
+ X
+
+
+
+ Y
+
+
+
+ Width
+
+
+
+ Height
+
+
+
+
+ QtRectPropertyManager
+
+ [(%1, %2), %3 x %4]
+
+
+
+ X
+
+
+
+ Y
+
+
+
+ Width
+
+
+
+ Height
+
+
+
+
+ QtSizeFPropertyManager
+
+ %1 x %2
+
+
+
+ Width
+
+
+
+ Height
+
+
+
+
+ QtSizePolicyPropertyManager
+
+ <Invalid>
+
+
+
+ [%1, %2, %3, %4]
+
+
+
+ Horizontal Policy
+
+
+
+ Vertical Policy
+
+
+
+ Horizontal Stretch
+
+
+
+ Vertical Stretch
+
+
+
+
+ QtSizePropertyManager
+
+ %1 x %2
+
+
+
+ Width
+
+
+
+ Height
+
+
+
+
+ QtTreePropertyBrowser
+
+ Property
+
+
+
+ Value
+
+
+
+
diff --git a/main.cpp b/main.cpp
index a92e320..cf89877 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,6 +2,7 @@
#include
#include
+#include
#include
#include "Common.h"
#include "MainWindow.h"
@@ -18,9 +19,16 @@ int main(int argc, char *argv[])
std::cerr << "This system has no OpenGL support" << std::endl;
return 1;
}
+
+ QTranslator translator;
+ translator.load("libremapping_fr");
+ app.installTranslator(&translator);
+
MainWindow win;
MainWindow::setInstance(&win);
+ //win.setLocale(QLocale("fr"));
+
win.show();
return app.exec();