Skip to content

Commit

Permalink
fixed translation and added some german translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sehraf committed Jul 29, 2014
1 parent a335b9d commit b2aa276
Show file tree
Hide file tree
Showing 9 changed files with 705 additions and 44 deletions.
6 changes: 4 additions & 2 deletions Lua4RS.pro
Expand Up @@ -63,9 +63,11 @@ FORMS += \
TARGET = Lua4RS

RESOURCES += \
Lua4RS_images.qrc
Lua4RS_images.qrc \
Lua4RS_lang.qrc

TRANSLATIONS += \
lang/Lua4RS_en.ts
lang/Lua4RS_en.ts \
lang/Lua4RS_de.ts

XUP.QT_VERSION = Qt System (4.8.1)
5 changes: 3 additions & 2 deletions Lua4RSPlugin.cpp
Expand Up @@ -74,14 +74,15 @@ void Lua4RSPlugin::setInterfaces(RsPlugInInterfaces &interfaces)

// setup other stuff - pqi service is nor running yet -> don't use interface pointer
LuaCore* lc = dynamic_cast<p3Lua4RS*>(rs_pqi_service())->getCore();
lc->setUi(dynamic_cast<Lua4RSWidget*>(qt_page()));
_notify->registerNotifyClient(lc->notify());
}

MainPage* Lua4RSPlugin::qt_page() const
{
if(_mainpage == NULL)
if(_mainpage == NULL) {
_mainpage = new Lua4RSWidget();
L4R::L4RConfig->getCore()->setUi(dynamic_cast<Lua4RSWidget*>(_mainpage));
}

return _mainpage ;
}
Expand Down
Binary file added Lua4RS_de.qm
Binary file not shown.
Binary file added Lua4RS_en.qm
Binary file not shown.
6 changes: 6 additions & 0 deletions Lua4RS_lang.qrc
@@ -0,0 +1,6 @@
<RCC>
<qresource prefix="/">
<file>lang/Lua4RS_en.qm</file>
<file>lang/Lua4RS_de.qm</file>
</qresource>
</RCC>
Binary file added lang/Lua4RS_de.qm
Binary file not shown.

0 comments on commit b2aa276

Please sign in to comment.