translation support fixed and new translations added

This commit is contained in:
Zdenek Jonak
2016-03-09 22:06:17 +01:00
parent fe1671d91e
commit 2c49209b8e
14 changed files with 88 additions and 69 deletions
+5
View File
@@ -23,6 +23,11 @@ QIcon Addressbook::pluginIcon()
return QIcon(":/icons/addressbookPlugin.svg");
}
QTranslator *Addressbook::translator()
{
return translatorFrom(":/translations/addressbook_");
}
+1
View File
@@ -27,6 +27,7 @@ protected:
// IPlugin interface
public:
virtual QIcon pluginIcon();
QTranslator *translator();
};
+1
View File
@@ -67,3 +67,4 @@ FORMS += \
RESOURCES += \
addressbookrc.qrc
TRANSLATIONS = translations/addressbook_cs_CZ.ts
+1
View File
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/">
<file>icons/addressbookPlugin.svg</file>
<file>translations/addressbook_cs_CZ.qm</file>
</qresource>
</RCC>
Binary file not shown.