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 @@ Exit - + Konec Open database... - + Otevřít databázi... Login... - + Přihlásit se... Settings - + 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 + + + Database error + Chyba databáze + + + + Permission denied + Nedostatečná oprávnění + + ColumnDialog @@ -97,7 +110,7 @@ TextLabel - + @@ -118,58 +131,78 @@ Informace o společnosti - + IC IČO - + VAT number DIČ - + VAT payer Plátce DPH - + + VAT rates + Sazby DPH + + + + High + Vysoká + + + + First lower + První snížená + + + + Second lower + Druhá snížená + + + Contact Kontaktní údaje - + Firm Name Název společnosti - + Street Ulice - + House Number Číslo popisné - + City Město - + ZIP code PSČ - - + + Logo Logo - + Select file Vyber soubor @@ -192,59 +225,59 @@ - + Edit record Upravit záznam - + E - - + + Delete record Smazat záznam - + D - + Filter Filtr - + F - + Print Tisk - + P - + Select columns Vybrat sloupce - - + + Database error Chyba databáze - + Realy delete this record? 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 50516d9..98c0668 100644 --- a/shop/shop.cpp +++ b/shop/shop.cpp @@ -18,3 +18,8 @@ QIcon Shop::pluginIcon() { return QIcon(":/icons/shop.svg"); } + +QTranslator *Shop::translator() +{ + return translatorFrom(":/translations/shop_"); +} diff --git a/shop/shop.h b/shop/shop.h index bfd1efc..b69ce3d 100644 --- a/shop/shop.h +++ b/shop/shop.h @@ -22,6 +22,7 @@ protected: // IPlugin interface public: virtual QIcon pluginIcon(); + QTranslator *translator(); }; #endif // SHOP_H diff --git a/shop/shop.json b/shop/shop.json index 6bab111..101255d 100644 --- a/shop/shop.json +++ b/shop/shop.json @@ -65,5 +65,31 @@ CREATE INDEX \"Voucher_items_index_i\" ON \"Voucher_items\" (\"index\"); " ], - "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