Localization support and localization
This commit is contained in:
Binary file not shown.
@@ -30,23 +30,23 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.ui" line="86"/>
|
<location filename="../mainwindow.ui" line="86"/>
|
||||||
<source>Exit</source>
|
<source>Exit</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Konec</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.ui" line="91"/>
|
<location filename="../mainwindow.ui" line="91"/>
|
||||||
<source>Open database...</source>
|
<source>Open database...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Otevřít databázi...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.ui" line="100"/>
|
<location filename="../mainwindow.ui" line="100"/>
|
||||||
<source>Login...</source>
|
<source>Login...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Přihlásit se...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.ui" line="109"/>
|
<location filename="../mainwindow.ui" line="109"/>
|
||||||
<location filename="../mainwindow.ui" line="112"/>
|
<location filename="../mainwindow.ui" line="112"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Nastavení</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|||||||
@@ -23,3 +23,8 @@ QIcon Commodity::pluginIcon()
|
|||||||
{
|
{
|
||||||
return QIcon(":/icons/commodityPlugin.svg");
|
return QIcon(":/icons/commodityPlugin.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QTranslator *Commodity::translator()
|
||||||
|
{
|
||||||
|
return translatorFrom(":/translations/commodity_");
|
||||||
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ protected:
|
|||||||
// IPlugin interface
|
// IPlugin interface
|
||||||
public:
|
public:
|
||||||
virtual QIcon pluginIcon();
|
virtual QIcon pluginIcon();
|
||||||
|
QTranslator *translator();
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,5 +29,16 @@ CREATE TABLE \"CommodityData\" (
|
|||||||
DEFERRABLE INITIALLY DEFERRED);"
|
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 += \
|
RESOURCES += \
|
||||||
commodityrc.qrc
|
commodityrc.qrc
|
||||||
|
TRANSLATIONS = translations/commodity_cs_CZ.ts
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>icons/commodityPlugin.svg</file>
|
<file>icons/commodityPlugin.svg</file>
|
||||||
|
<file>translations/commodity_cs_CZ.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Binary file not shown.
+1
-1
@@ -50,7 +50,7 @@ void Context::loadPlugins()
|
|||||||
m_plugins.append(new Users);
|
m_plugins.append(new Users);
|
||||||
m_plugins.append(new Roles);
|
m_plugins.append(new Roles);
|
||||||
|
|
||||||
QDir pluginsDir(qApp->applicationDirPath() + "/../../plugins");
|
QDir pluginsDir(qApp->applicationDirPath() + "/../plugins");
|
||||||
|
|
||||||
foreach (QString fileName, pluginsDir.entryList(QStringList() << "*.so" << "*.dll")) {
|
foreach (QString fileName, pluginsDir.entryList(QStringList() << "*.so" << "*.dll")) {
|
||||||
QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
|
QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
|
||||||
|
|||||||
Binary file not shown.
@@ -1,6 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="cs_CZ">
|
<TS version="2.1" language="cs_CZ">
|
||||||
|
<context>
|
||||||
|
<name>AutoForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../autoform.h" line="41"/>
|
||||||
|
<source>Database error</source>
|
||||||
|
<translation>Chyba databáze</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../autoform.h" line="46"/>
|
||||||
|
<source>Permission denied</source>
|
||||||
|
<translation>Nedostatečná oprávnění</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ColumnDialog</name>
|
<name>ColumnDialog</name>
|
||||||
<message>
|
<message>
|
||||||
@@ -97,7 +110,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../formdialog.ui" line="64"/>
|
<location filename="../formdialog.ui" line="64"/>
|
||||||
<source>TextLabel</source>
|
<source>TextLabel</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../formdialog.cpp" line="36"/>
|
<location filename="../formdialog.cpp" line="36"/>
|
||||||
@@ -118,58 +131,78 @@
|
|||||||
<translation>Informace o společnosti</translation>
|
<translation>Informace o společnosti</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="26"/>
|
<location filename="../settings/globalsettingsform.ui" line="29"/>
|
||||||
<source>IC</source>
|
<source>IC</source>
|
||||||
<translation>IČO</translation>
|
<translation>IČO</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="36"/>
|
<location filename="../settings/globalsettingsform.ui" line="39"/>
|
||||||
<source>VAT number</source>
|
<source>VAT number</source>
|
||||||
<translation>DIČ</translation>
|
<translation>DIČ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="46"/>
|
<location filename="../settings/globalsettingsform.ui" line="49"/>
|
||||||
<source>VAT payer</source>
|
<source>VAT payer</source>
|
||||||
<translation>Plátce DPH</translation>
|
<translation>Plátce DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="56"/>
|
<location filename="../settings/globalsettingsform.ui" line="62"/>
|
||||||
|
<source>VAT rates</source>
|
||||||
|
<translation>Sazby DPH</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/globalsettingsform.ui" line="68"/>
|
||||||
|
<source>High</source>
|
||||||
|
<translation>Vysoká</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/globalsettingsform.ui" line="82"/>
|
||||||
|
<source>First lower</source>
|
||||||
|
<translation>První snížená</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/globalsettingsform.ui" line="96"/>
|
||||||
|
<source>Second lower</source>
|
||||||
|
<translation>Druhá snížená</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/globalsettingsform.ui" line="116"/>
|
||||||
<source>Contact</source>
|
<source>Contact</source>
|
||||||
<translation>Kontaktní údaje</translation>
|
<translation>Kontaktní údaje</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="62"/>
|
<location filename="../settings/globalsettingsform.ui" line="122"/>
|
||||||
<source>Firm Name</source>
|
<source>Firm Name</source>
|
||||||
<translation>Název společnosti</translation>
|
<translation>Název společnosti</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="72"/>
|
<location filename="../settings/globalsettingsform.ui" line="132"/>
|
||||||
<source>Street</source>
|
<source>Street</source>
|
||||||
<translation>Ulice</translation>
|
<translation>Ulice</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="82"/>
|
<location filename="../settings/globalsettingsform.ui" line="142"/>
|
||||||
<source>House Number</source>
|
<source>House Number</source>
|
||||||
<translation>Číslo popisné</translation>
|
<translation>Číslo popisné</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="92"/>
|
<location filename="../settings/globalsettingsform.ui" line="152"/>
|
||||||
<source>City</source>
|
<source>City</source>
|
||||||
<translation>Město</translation>
|
<translation>Město</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="102"/>
|
<location filename="../settings/globalsettingsform.ui" line="162"/>
|
||||||
<source>ZIP code</source>
|
<source>ZIP code</source>
|
||||||
<translation>PSČ</translation>
|
<translation>PSČ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="115"/>
|
<location filename="../settings/globalsettingsform.ui" line="175"/>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="121"/>
|
<location filename="../settings/globalsettingsform.ui" line="181"/>
|
||||||
<source>Logo</source>
|
<source>Logo</source>
|
||||||
<translation>Logo</translation>
|
<translation>Logo</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="128"/>
|
<location filename="../settings/globalsettingsform.ui" line="188"/>
|
||||||
<source>Select file</source>
|
<source>Select file</source>
|
||||||
<translation>Vyber soubor</translation>
|
<translation>Vyber soubor</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -192,59 +225,59 @@
|
|||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="52"/>
|
<location filename="../gridform.ui" line="55"/>
|
||||||
<source>Edit record</source>
|
<source>Edit record</source>
|
||||||
<translation>Upravit záznam</translation>
|
<translation>Upravit záznam</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="55"/>
|
<location filename="../gridform.ui" line="58"/>
|
||||||
<source>E</source>
|
<source>E</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="75"/>
|
<location filename="../gridform.ui" line="81"/>
|
||||||
<location filename="../gridform.h" line="188"/>
|
<location filename="../gridform.h" line="204"/>
|
||||||
<source>Delete record</source>
|
<source>Delete record</source>
|
||||||
<translation>Smazat záznam</translation>
|
<translation>Smazat záznam</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="78"/>
|
<location filename="../gridform.ui" line="84"/>
|
||||||
<source>D</source>
|
<source>D</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="98"/>
|
<location filename="../gridform.ui" line="104"/>
|
||||||
<source>Filter</source>
|
<source>Filter</source>
|
||||||
<translation>Filtr</translation>
|
<translation>Filtr</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="101"/>
|
<location filename="../gridform.ui" line="107"/>
|
||||||
<source>F</source>
|
<source>F</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="124"/>
|
<location filename="../gridform.ui" line="130"/>
|
||||||
<source>Print</source>
|
<source>Print</source>
|
||||||
<translation>Tisk</translation>
|
<translation>Tisk</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="127"/>
|
<location filename="../gridform.ui" line="133"/>
|
||||||
<source>P</source>
|
<source>P</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.ui" line="190"/>
|
<location filename="../gridform.ui" line="196"/>
|
||||||
<source>Select columns</source>
|
<source>Select columns</source>
|
||||||
<translation>Vybrat sloupce</translation>
|
<translation>Vybrat sloupce</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="138"/>
|
<location filename="../gridform.h" line="146"/>
|
||||||
<location filename="../gridform.h" line="141"/>
|
<location filename="../gridform.h" line="149"/>
|
||||||
<source>Database error</source>
|
<source>Database error</source>
|
||||||
<translation>Chyba databáze</translation>
|
<translation>Chyba databáze</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="188"/>
|
<location filename="../gridform.h" line="204"/>
|
||||||
<source>Realy delete this record?</source>
|
<source>Realy delete this record?</source>
|
||||||
<translation>Opravdu si přejete smazat tento záznam?</translation>
|
<translation>Opravdu si přejete smazat tento záznam?</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|||||||
+12
-1
@@ -21,5 +21,16 @@
|
|||||||
\"vatType\" INTEGER NOT NULL);"
|
\"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");
|
return QIcon(":icons/servicesPlugin.svg");
|
||||||
}
|
}
|
||||||
|
QTranslator *Services::translator()
|
||||||
|
{
|
||||||
|
return translatorFrom(":/translations/services_");
|
||||||
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ protected:
|
|||||||
// IPlugin interface
|
// IPlugin interface
|
||||||
public:
|
public:
|
||||||
virtual QIcon pluginIcon();
|
virtual QIcon pluginIcon();
|
||||||
|
QTranslator *translator();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SERVICES_H
|
#endif // SERVICES_H
|
||||||
|
|||||||
@@ -73,3 +73,4 @@ DEPENDPATH += $$PWD/../qdecimal/src
|
|||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
servicesrc.qrc
|
servicesrc.qrc
|
||||||
|
TRANSLATIONS = translations/services_cs_CZ.ts
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>icons/servicesPlugin.svg</file>
|
<file>icons/servicesPlugin.svg</file>
|
||||||
|
<file>translations/services_cs_CZ.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Binary file not shown.
@@ -18,3 +18,8 @@ QIcon Shop::pluginIcon()
|
|||||||
{
|
{
|
||||||
return QIcon(":/icons/shop.svg");
|
return QIcon(":/icons/shop.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QTranslator *Shop::translator()
|
||||||
|
{
|
||||||
|
return translatorFrom(":/translations/shop_");
|
||||||
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ protected:
|
|||||||
// IPlugin interface
|
// IPlugin interface
|
||||||
public:
|
public:
|
||||||
virtual QIcon pluginIcon();
|
virtual QIcon pluginIcon();
|
||||||
|
QTranslator *translator();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SHOP_H
|
#endif // SHOP_H
|
||||||
|
|||||||
+27
-1
@@ -65,5 +65,31 @@ CREATE INDEX \"Voucher_items_index_i\"
|
|||||||
ON \"Voucher_items\" (\"index\");
|
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"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,3 +90,4 @@ FORMS += \
|
|||||||
receiptsaveform.ui \
|
receiptsaveform.ui \
|
||||||
receiptloadform.ui
|
receiptloadform.ui
|
||||||
|
|
||||||
|
TRANSLATIONS = translations/shop_cs_CZ.ts
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>icons/shop.svg</file>
|
<file>icons/shop.svg</file>
|
||||||
|
<file>translations/shop_cs_CZ.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user