Localization support and localization
This commit is contained in:
@@ -23,3 +23,8 @@ QIcon Commodity::pluginIcon()
|
||||
{
|
||||
return QIcon(":/icons/commodityPlugin.svg");
|
||||
}
|
||||
|
||||
QTranslator *Commodity::translator()
|
||||
{
|
||||
return translatorFrom(":/translations/commodity_");
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ protected:
|
||||
// IPlugin interface
|
||||
public:
|
||||
virtual QIcon pluginIcon();
|
||||
QTranslator *translator();
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -29,5 +29,16 @@ CREATE TABLE \"CommodityData\" (
|
||||
DEFERRABLE INITIALLY DEFERRED);"
|
||||
|
||||
],
|
||||
"dependencies" : []
|
||||
"dependencies" : [],
|
||||
"translations" : {
|
||||
"CZ" : {
|
||||
"name" : "Název",
|
||||
"shortName" : "Zobrazit na účtence",
|
||||
"code" : "Kód",
|
||||
"type" : "Druh",
|
||||
"price" : "Cena",
|
||||
"vat" : "DPH",
|
||||
"count" : "Počet"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,3 +72,4 @@ FORMS += \
|
||||
|
||||
RESOURCES += \
|
||||
commodityrc.qrc
|
||||
TRANSLATIONS = translations/commodity_cs_CZ.ts
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>icons/commodityPlugin.svg</file>
|
||||
<file>translations/commodity_cs_CZ.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user