Localization support and localization

This commit is contained in:
Zdenek Jonak
2016-05-29 18:14:49 +02:00
parent 9707ec7c66
commit d10a832766
23 changed files with 138 additions and 35 deletions
+12 -1
View File
@@ -21,5 +21,16 @@
\"vatType\" INTEGER NOT NULL);"
],
"dependencies" : []
"dependencies" : [],
"translations" : {
"CZ" : {
"accServiceName" : "Název",
"accServiceCode" : "Kód",
"price" : "Cena",
"active" : "Aktivní",
"salePossible" : "Umožnit slevu",
"serviceType" : "Druh",
"vatType" : "DPH"
}
}
}
+4 -1
View File
@@ -23,4 +23,7 @@ QIcon Services::pluginIcon()
{
return QIcon(":icons/servicesPlugin.svg");
}
QTranslator *Services::translator()
{
return translatorFrom(":/translations/services_");
}
+1
View File
@@ -23,6 +23,7 @@ protected:
// IPlugin interface
public:
virtual QIcon pluginIcon();
QTranslator *translator();
};
#endif // SERVICES_H
+1
View File
@@ -73,3 +73,4 @@ DEPENDPATH += $$PWD/../qdecimal/src
RESOURCES += \
servicesrc.qrc
TRANSLATIONS = translations/services_cs_CZ.ts
+1
View File
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/">
<file>icons/servicesPlugin.svg</file>
<file>translations/services_cs_CZ.qm</file>
</qresource>
</RCC>
Binary file not shown.