translation support fixed and new translations added
This commit is contained in:
@@ -23,6 +23,11 @@ QIcon Addressbook::pluginIcon()
|
||||
return QIcon(":/icons/addressbookPlugin.svg");
|
||||
}
|
||||
|
||||
QTranslator *Addressbook::translator()
|
||||
{
|
||||
return translatorFrom(":/translations/addressbook_");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ protected:
|
||||
// IPlugin interface
|
||||
public:
|
||||
virtual QIcon pluginIcon();
|
||||
QTranslator *translator();
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -67,3 +67,4 @@ FORMS += \
|
||||
|
||||
RESOURCES += \
|
||||
addressbookrc.qrc
|
||||
TRANSLATIONS = translations/addressbook_cs_CZ.ts
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user