summaryrefslogtreecommitdiffstats
path: root/Plugins/XmlExport
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/XmlExport')
-rw-r--r--Plugins/XmlExport/XmlExport.pro4
-rw-r--r--Plugins/XmlExport/XmlExport.ui26
-rw-r--r--Plugins/XmlExport/XmlExport_pl.qmbin0 -> 2551 bytes
-rw-r--r--Plugins/XmlExport/XmlExport_pl.ts71
-rw-r--r--Plugins/XmlExport/xmlexport.cpp2
-rw-r--r--Plugins/XmlExport/xmlexport.qrc3
6 files changed, 92 insertions, 14 deletions
diff --git a/Plugins/XmlExport/XmlExport.pro b/Plugins/XmlExport/XmlExport.pro
index 87e0c7f..f7dbb7f 100644
--- a/Plugins/XmlExport/XmlExport.pro
+++ b/Plugins/XmlExport/XmlExport.pro
@@ -25,3 +25,7 @@ OTHER_FILES += \
RESOURCES += \
xmlexport.qrc
+
+
+TRANSLATIONS += XmlExport_pl.ts
+
diff --git a/Plugins/XmlExport/XmlExport.ui b/Plugins/XmlExport/XmlExport.ui
index 2a236c6..6c6f27e 100644
--- a/Plugins/XmlExport/XmlExport.ui
+++ b/Plugins/XmlExport/XmlExport.ui
@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
- <string>Form</string>
+ <string notr="true">Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
@@ -29,10 +29,10 @@
<bool>true</bool>
</property>
<property name="assignedValue" stdset="0">
- <string>format</string>
+ <string notr="true">format</string>
</property>
<property name="cfg" stdset="0">
- <string>XmlExport.Format</string>
+ <string notr="true">XmlExport.Format</string>
</property>
</widget>
</item>
@@ -42,10 +42,10 @@
<string>Compress (everything in one line)</string>
</property>
<property name="assignedValue" stdset="0">
- <string>compress</string>
+ <string notr="true">compress</string>
</property>
<property name="cfg" stdset="0">
- <string>XmlExport.Format</string>
+ <string notr="true">XmlExport.Format</string>
</property>
</widget>
</item>
@@ -70,10 +70,10 @@
<bool>true</bool>
</property>
<property name="assignedValue" stdset="0">
- <string>mixed</string>
+ <string notr="true">mixed</string>
</property>
<property name="cfg" stdset="0">
- <string>XmlExport.Escaping</string>
+ <string notr="true">XmlExport.Escaping</string>
</property>
</widget>
</item>
@@ -86,10 +86,10 @@
<string>Always use CDATA</string>
</property>
<property name="assignedValue" stdset="0">
- <string>cdata</string>
+ <string notr="true">cdata</string>
</property>
<property name="cfg" stdset="0">
- <string>XmlExport.Escaping</string>
+ <string notr="true">XmlExport.Escaping</string>
</property>
</widget>
</item>
@@ -102,10 +102,10 @@
<string>Always use ampersand</string>
</property>
<property name="assignedValue" stdset="0">
- <string>ampersand</string>
+ <string notr="true">ampersand</string>
</property>
<property name="cfg" stdset="0">
- <string>XmlExport.Escaping</string>
+ <string notr="true">XmlExport.Escaping</string>
</property>
</widget>
</item>
@@ -124,13 +124,13 @@
<bool>false</bool>
</property>
<property name="cfg" stdset="0">
- <string>XmlExport.UseNamespace</string>
+ <string notr="true">XmlExport.UseNamespace</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="namespaceEdit">
<property name="cfg" stdset="0">
- <string>XmlExport.Namespace</string>
+ <string notr="true">XmlExport.Namespace</string>
</property>
</widget>
</item>
diff --git a/Plugins/XmlExport/XmlExport_pl.qm b/Plugins/XmlExport/XmlExport_pl.qm
new file mode 100644
index 0000000..40b5b24
--- /dev/null
+++ b/Plugins/XmlExport/XmlExport_pl.qm
Binary files differ
diff --git a/Plugins/XmlExport/XmlExport_pl.ts b/Plugins/XmlExport/XmlExport_pl.ts
new file mode 100644
index 0000000..fc0cfaa
--- /dev/null
+++ b/Plugins/XmlExport/XmlExport_pl.ts
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="pl_PL">
+<context>
+ <name>XmlExport</name>
+ <message>
+ <location filename="xmlexport.cpp" line="38"/>
+ <source>Enter the namespace to use (for example: http://my.namespace.org)</source>
+ <oldsource>Enter the namespace to use (for example: http://my.namespace.org</oldsource>
+ <translation>Wprowadź przestrzeń nazw (na przykład: http://moja.przestrzen.nazw.org)</translation>
+ </message>
+</context>
+<context>
+ <name>XmlExportConfig</name>
+ <message>
+ <location filename="XmlExport.ui" line="20"/>
+ <source>Output format</source>
+ <translation>Format wyjściowy</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="26"/>
+ <source>Format document (new lines, indentation)</source>
+ <translation>Formatuj dokument (nowe linie, wcięcia)</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="42"/>
+ <source>Compress (everything in one line)</source>
+ <translation>Kompresuj (wszystko w jednej linii)</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="58"/>
+ <source>Special characters escaping</source>
+ <translation>Podmiana znaków specjalnych</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="64"/>
+ <source>&lt;p&gt;Ampersands will be used for shorter values and CDATA will be used for larger values. This applies only to values that require character escaping. Other values will be exported as they are.&lt;/p&gt;</source>
+ <translation>&lt;p&gt;Dla krótszych wartości będzie użyty ampersand, a dla dłuższych CDATA. Dotyczy to tylko wartości, które wymagają podmiany znaków. Inne wartości będą wyeksportowane bez zmian.&lt;/p&gt;</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="67"/>
+ <source>Use CDATA and ampersands</source>
+ <translation>Użyj CDATA i ampersandów</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="83"/>
+ <source>&lt;p&gt;Every value requiring character escepe will be enclosed in CDATA block.&lt;/p&gt;</source>
+ <translation>&lt;p&gt;Każda wartość wymagająca podmiany znaków będzie zamknięta w bloku CDATA.&lt;/p&gt;</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="86"/>
+ <source>Always use CDATA</source>
+ <translation>Zawsze używaj CDATA</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="99"/>
+ <source>&lt;p&gt;Every character that require esceping will be replaced with its ampersand escape sequence. No CDATA blocks will be used.&lt;/p&gt;</source>
+ <translation>&lt;p&gt;Każdy znak wymagający podmiany będzie zastąpiony odpowiednią sekwencją z ampersandem. Bloki CDATA nie będą używane.&lt;/p&gt;</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="102"/>
+ <source>Always use ampersand</source>
+ <translation>Zawsze używaj ampersanda</translation>
+ </message>
+ <message>
+ <location filename="XmlExport.ui" line="118"/>
+ <source>Define XML namespace</source>
+ <translation>Zdefiniuj przestrzeń nazw XML</translation>
+ </message>
+</context>
+</TS>
diff --git a/Plugins/XmlExport/xmlexport.cpp b/Plugins/XmlExport/xmlexport.cpp
index 746d246..e76fe7d 100644
--- a/Plugins/XmlExport/xmlexport.cpp
+++ b/Plugins/XmlExport/xmlexport.cpp
@@ -35,7 +35,7 @@ void XmlExport::validateOptions()
EXPORT_MANAGER->updateVisibilityAndEnabled(cfg.XmlExport.Namespace, true, useNs);
bool nsValid = !useNs || !cfg.XmlExport.Namespace.get().isEmpty();
- EXPORT_MANAGER->handleValidationFromPlugin(nsValid, cfg.XmlExport.Namespace, tr("Enter the namespace to use (for example: http://my.namespace.org"));
+ EXPORT_MANAGER->handleValidationFromPlugin(nsValid, cfg.XmlExport.Namespace, tr("Enter the namespace to use (for example: http://my.namespace.org)"));
}
QString XmlExport::defaultFileExtension() const
diff --git a/Plugins/XmlExport/xmlexport.qrc b/Plugins/XmlExport/xmlexport.qrc
index d6a77a6..cfa97ff 100644
--- a/Plugins/XmlExport/xmlexport.qrc
+++ b/Plugins/XmlExport/xmlexport.qrc
@@ -2,4 +2,7 @@
<qresource prefix="/forms">
<file>XmlExport.ui</file>
</qresource>
+ <qresource prefix="/msg">
+ <file>XmlExport_pl.qm</file>
+ </qresource>
</RCC>