Localization support and localization
This commit is contained in:
+12
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,7 @@ QIcon Services::pluginIcon()
|
||||
{
|
||||
return QIcon(":icons/servicesPlugin.svg");
|
||||
}
|
||||
|
||||
QTranslator *Services::translator()
|
||||
{
|
||||
return translatorFrom(":/translations/services_");
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ protected:
|
||||
// IPlugin interface
|
||||
public:
|
||||
virtual QIcon pluginIcon();
|
||||
QTranslator *translator();
|
||||
};
|
||||
|
||||
#endif // SERVICES_H
|
||||
|
||||
@@ -73,3 +73,4 @@ DEPENDPATH += $$PWD/../qdecimal/src
|
||||
|
||||
RESOURCES += \
|
||||
servicesrc.qrc
|
||||
TRANSLATIONS = translations/services_cs_CZ.ts
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user