diff --git a/application/translations/prodejna_cs_CZ.qm b/application/translations/prodejna_cs_CZ.qm
index 9d707a8..ff3af12 100644
Binary files a/application/translations/prodejna_cs_CZ.qm and b/application/translations/prodejna_cs_CZ.qm differ
diff --git a/application/translations/prodejna_cz.ts b/application/translations/prodejna_cz.ts
index 907c49f..cc1072e 100644
--- a/application/translations/prodejna_cz.ts
+++ b/application/translations/prodejna_cz.ts
@@ -30,23 +30,23 @@
-
+ Konec
-
+ Otevřít databázi...
-
+ Přihlásit se...
-
+ Nastavení
diff --git a/commodity/commodity.cpp b/commodity/commodity.cpp
index 8748662..cd0622f 100644
--- a/commodity/commodity.cpp
+++ b/commodity/commodity.cpp
@@ -23,3 +23,8 @@ QIcon Commodity::pluginIcon()
{
return QIcon(":/icons/commodityPlugin.svg");
}
+
+QTranslator *Commodity::translator()
+{
+ return translatorFrom(":/translations/commodity_");
+}
diff --git a/commodity/commodity.h b/commodity/commodity.h
index d10167e..04b840f 100644
--- a/commodity/commodity.h
+++ b/commodity/commodity.h
@@ -22,6 +22,7 @@ protected:
// IPlugin interface
public:
virtual QIcon pluginIcon();
+ QTranslator *translator();
};
diff --git a/commodity/commodity.json b/commodity/commodity.json
index 4c5ab93..16e6e92 100644
--- a/commodity/commodity.json
+++ b/commodity/commodity.json
@@ -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"
+ }
+ }
}
diff --git a/commodity/commodity.pro b/commodity/commodity.pro
index 37e126e..0ca4f0b 100644
--- a/commodity/commodity.pro
+++ b/commodity/commodity.pro
@@ -72,3 +72,4 @@ FORMS += \
RESOURCES += \
commodityrc.qrc
+TRANSLATIONS = translations/commodity_cs_CZ.ts
diff --git a/commodity/commodityrc.qrc b/commodity/commodityrc.qrc
index 76f76ad..a3b1718 100644
--- a/commodity/commodityrc.qrc
+++ b/commodity/commodityrc.qrc
@@ -1,5 +1,6 @@
icons/commodityPlugin.svg
+ translations/commodity_cs_CZ.qm
diff --git a/commodity/translations/commodity_cs_CZ.qm b/commodity/translations/commodity_cs_CZ.qm
new file mode 100644
index 0000000..b5898fc
Binary files /dev/null and b/commodity/translations/commodity_cs_CZ.qm differ
diff --git a/core/context.cpp b/core/context.cpp
index 961933b..9d6042a 100644
--- a/core/context.cpp
+++ b/core/context.cpp
@@ -50,7 +50,7 @@ void Context::loadPlugins()
m_plugins.append(new Users);
m_plugins.append(new Roles);
- QDir pluginsDir(qApp->applicationDirPath() + "/../../plugins");
+ QDir pluginsDir(qApp->applicationDirPath() + "/../plugins");
foreach (QString fileName, pluginsDir.entryList(QStringList() << "*.so" << "*.dll")) {
QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
diff --git a/core/translations/core_cs_CZ.qm b/core/translations/core_cs_CZ.qm
index a5f896d..f3dead6 100644
Binary files a/core/translations/core_cs_CZ.qm and b/core/translations/core_cs_CZ.qm differ
diff --git a/core/translations/core_cs_CZ.ts b/core/translations/core_cs_CZ.ts
index 0af7ecc..e23a684 100644
--- a/core/translations/core_cs_CZ.ts
+++ b/core/translations/core_cs_CZ.ts
@@ -1,6 +1,19 @@
+
+ AutoForm
+
+
+
+ Chyba databáze
+
+
+
+
+ Nedostatečná oprávnění
+
+
ColumnDialog
@@ -97,7 +110,7 @@
-
+
@@ -118,58 +131,78 @@
Informace o společnosti
-
+
IČO
-
+
DIČ
-
+
Plátce DPH
-
+
+
+ Sazby DPH
+
+
+
+
+ Vysoká
+
+
+
+
+ První snížená
+
+
+
+
+ Druhá snížená
+
+
+
Kontaktní údaje
-
+
Název společnosti
-
+
Ulice
-
+
Číslo popisné
-
+
Město
-
+
PSČ
-
-
+
+
Logo
-
+
Vyber soubor
@@ -192,59 +225,59 @@
-
+
Upravit záznam
-
+
-
-
+
+
Smazat záznam
-
+
-
+
Filtr
-
+
-
+
Tisk
-
+
-
+
Vybrat sloupce
-
-
+
+
Chyba databáze
-
+
Opravdu si přejete smazat tento záznam?
diff --git a/services/service.json b/services/service.json
index ebdabf0..8847b23 100644
--- a/services/service.json
+++ b/services/service.json
@@ -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"
+ }
+ }
}
diff --git a/services/services.cpp b/services/services.cpp
index 7458acc..d5334e1 100644
--- a/services/services.cpp
+++ b/services/services.cpp
@@ -23,4 +23,7 @@ QIcon Services::pluginIcon()
{
return QIcon(":icons/servicesPlugin.svg");
}
-
+QTranslator *Services::translator()
+{
+ return translatorFrom(":/translations/services_");
+}
diff --git a/services/services.h b/services/services.h
index 12f73cf..a32e023 100644
--- a/services/services.h
+++ b/services/services.h
@@ -23,6 +23,7 @@ protected:
// IPlugin interface
public:
virtual QIcon pluginIcon();
+ QTranslator *translator();
};
#endif // SERVICES_H
diff --git a/services/services.pro b/services/services.pro
index 1ca5d8c..f43f633 100644
--- a/services/services.pro
+++ b/services/services.pro
@@ -73,3 +73,4 @@ DEPENDPATH += $$PWD/../qdecimal/src
RESOURCES += \
servicesrc.qrc
+TRANSLATIONS = translations/services_cs_CZ.ts
diff --git a/services/servicesrc.qrc b/services/servicesrc.qrc
index 34a1378..184a94a 100644
--- a/services/servicesrc.qrc
+++ b/services/servicesrc.qrc
@@ -1,5 +1,6 @@
icons/servicesPlugin.svg
+ translations/services_cs_CZ.qm
diff --git a/services/translations/services_cs_CZ.qm b/services/translations/services_cs_CZ.qm
new file mode 100644
index 0000000..533b8e9
Binary files /dev/null and b/services/translations/services_cs_CZ.qm differ
diff --git a/shop/shop.cpp b/shop/shop.cpp
index eab1499..e75f969 100644
--- a/shop/shop.cpp
+++ b/shop/shop.cpp
@@ -25,3 +25,8 @@ QWidget *Shop::ui()
qobject_cast(uiWidget)->loadLast();
return uiWidget;
}
+
+QTranslator *Shop::translator()
+{
+ return translatorFrom(":/translations/shop_");
+}
diff --git a/shop/shop.h b/shop/shop.h
index 4bcbadb..2d36993 100644
--- a/shop/shop.h
+++ b/shop/shop.h
@@ -22,10 +22,8 @@ protected:
// IPlugin interface
public:
virtual QIcon pluginIcon();
-
- // IPlugin interface
-public:
virtual QWidget *ui() override;
+ QTranslator *translator();
};
#endif // SHOP_H
diff --git a/shop/shop.json b/shop/shop.json
index 80e3278..7f9c44e 100644
--- a/shop/shop.json
+++ b/shop/shop.json
@@ -51,5 +51,31 @@ CREATE TABLE \"Voucher\" (
DEFERRABLE INITIALLY DEFERRED);
"
],
- "dependencies" : [ "ADDRESSBOOK" ]
+ "dependencies" : [ "ADDRESSBOOK" ],
+ "translations" : {
+ "CZ" : {
+ "name" : "Název",
+ "count" : "Počet",
+ "unitPrice" : "Jednotková cena",
+ "vatRate" : "Procento DPH",
+ "priceWitouthVat" : "Cena bez DPH",
+ "price" : "Cena",
+ "vatType" : "Sazba DPH",
+ "description" : "Popis",
+ "contact" : "Kontakt",
+ "vatRateHigh" : "Vysoká sazba",
+ "vatRateFirstLower" : "První snížená sazba",
+ "vatRateSecondLower" : "Druhá snížená sazba",
+ "priceNoVat" : "Cena zboží s nulovou DPH",
+ "priceVatHigh" : "Cena zboží s vysokou sazbou DPH",
+ "priceVatFirstLower" : "Cena zboží s první sníženou sazbou DPH",
+ "priceVatSecondLower" : "Cena zboží s druhou sníženou sazbou DPH",
+ "priceWitouthVat" : "Cena zboží bez DPH",
+ "totalPriceVatHigh" : "Celková cena zboží s vysokou sazbou DPH",
+ "totalPriceVatFirstLower" : "Celková cena zboží s první sníženou sazbou DPH",
+ "totalPriceVatSecondLower" : "Celková cena zboží s druhou sníženou sazbou DPH",
+ "totalPrice" : "Celková cena",
+ "status" : "Stav"
+ }
+ }
}
diff --git a/shop/shop.pro b/shop/shop.pro
index 75cbb3a..588b70b 100644
--- a/shop/shop.pro
+++ b/shop/shop.pro
@@ -90,3 +90,4 @@ FORMS += \
receiptsaveform.ui \
receiptloadform.ui
+TRANSLATIONS = translations/shop_cs_CZ.ts
diff --git a/shop/shoprc.qrc b/shop/shoprc.qrc
index f5d0ec4..2961e1c 100644
--- a/shop/shoprc.qrc
+++ b/shop/shoprc.qrc
@@ -1,5 +1,6 @@
icons/shop.svg
+ translations/shop_cs_CZ.qm
diff --git a/shop/translations/shop_cs_CZ.qm b/shop/translations/shop_cs_CZ.qm
new file mode 100644
index 0000000..4ea69b9
Binary files /dev/null and b/shop/translations/shop_cs_CZ.qm differ