diff options
Diffstat (limited to 'Plugins/CsvExport')
| -rw-r--r-- | Plugins/CsvExport/CsvExport.pro | 4 | ||||
| -rw-r--r-- | Plugins/CsvExport/CsvExport_ro_RO.qm | bin | 0 -> 30 bytes | |||
| -rw-r--r-- | Plugins/CsvExport/CsvExport_ro_RO.ts | 57 | ||||
| -rw-r--r-- | Plugins/CsvExport/csvexport.cpp | 2 | ||||
| -rw-r--r-- | Plugins/CsvExport/csvexport.h | 2 | ||||
| -rw-r--r-- | Plugins/CsvExport/csvexport.json | 2 | ||||
| -rw-r--r-- | Plugins/CsvExport/csvexport.qrc | 2 | ||||
| -rw-r--r-- | Plugins/CsvExport/package.xml | 10 |
8 files changed, 76 insertions, 3 deletions
diff --git a/Plugins/CsvExport/CsvExport.pro b/Plugins/CsvExport/CsvExport.pro index f846b3e..e3fe195 100644 --- a/Plugins/CsvExport/CsvExport.pro +++ b/Plugins/CsvExport/CsvExport.pro @@ -29,7 +29,8 @@ RESOURCES += \ -TRANSLATIONS += CsvExport_de.ts \ +TRANSLATIONS += CsvExport_ro_RO.ts \ + CsvExport_de.ts \ CsvExport_it.ts \ CsvExport_zh_CN.ts \ CsvExport_sk.ts \ @@ -53,3 +54,4 @@ TRANSLATIONS += CsvExport_de.ts \ + diff --git a/Plugins/CsvExport/CsvExport_ro_RO.qm b/Plugins/CsvExport/CsvExport_ro_RO.qm Binary files differnew file mode 100644 index 0000000..2856eb9 --- /dev/null +++ b/Plugins/CsvExport/CsvExport_ro_RO.qm diff --git a/Plugins/CsvExport/CsvExport_ro_RO.ts b/Plugins/CsvExport/CsvExport_ro_RO.ts new file mode 100644 index 0000000..d2b0916 --- /dev/null +++ b/Plugins/CsvExport/CsvExport_ro_RO.ts @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="ro_RO"> +<context> + <name>CsvExport</name> + <message> + <location filename="CsvExport.ui" line="20"/> + <source>Column names in first row</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="30"/> + <source>Column separator:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="41"/> + <source>, (comma)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="46"/> + <source>; (semicolon)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="51"/> + <source>\t (tab)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="56"/> + <source> (whitespace)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="61"/> + <source>Custom:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="82"/> + <source>Export NULL values as:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="CsvExport.ui" line="89"/> + <source>Empty string</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="csvexport.cpp" line="42"/> + <source>Enter the custom separator character.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/Plugins/CsvExport/csvexport.cpp b/Plugins/CsvExport/csvexport.cpp index fcbf841..c3698af 100644 --- a/Plugins/CsvExport/csvexport.cpp +++ b/Plugins/CsvExport/csvexport.cpp @@ -181,6 +181,8 @@ void CsvExport::defineCsvFormat() format.columnSeparator = cfg.CsvExport.CustomSeparator.get(); break; } + + format.calculateSeparatorMaxLengths(); } diff --git a/Plugins/CsvExport/csvexport.h b/Plugins/CsvExport/csvexport.h index 7ecde7c..1956782 100644 --- a/Plugins/CsvExport/csvexport.h +++ b/Plugins/CsvExport/csvexport.h @@ -49,7 +49,7 @@ class CSVEXPORTSHARED_EXPORT CsvExport : public GenericExportPlugin bool exportTable(const QStringList& columnNames); void defineCsvFormat(); - CFG_LOCAL(CsvExportConfig, cfg) + CFG_LOCAL_PERSISTABLE(CsvExportConfig, cfg) CsvFormat format; }; diff --git a/Plugins/CsvExport/csvexport.json b/Plugins/CsvExport/csvexport.json index cbb0ea7..01214ac 100644 --- a/Plugins/CsvExport/csvexport.json +++ b/Plugins/CsvExport/csvexport.json @@ -2,6 +2,6 @@ "type": "ExportPlugin", "title": "CSV export", "description": "Provides CSV format for exporting", - "version": 10003, + "version": 10005, "author": "SalSoft" } diff --git a/Plugins/CsvExport/csvexport.qrc b/Plugins/CsvExport/csvexport.qrc index 9538c63..7168c99 100644 --- a/Plugins/CsvExport/csvexport.qrc +++ b/Plugins/CsvExport/csvexport.qrc @@ -3,6 +3,7 @@ <file>CsvExport.ui</file> </qresource> <qresource prefix="/msg"> + <file>CsvExport_ro_RO.qm</file> <file>CsvExport_de.qm</file> <file>CsvExport_pl.qm</file> @@ -14,3 +15,4 @@ </RCC> + diff --git a/Plugins/CsvExport/package.xml b/Plugins/CsvExport/package.xml new file mode 100644 index 0000000..f9f615f --- /dev/null +++ b/Plugins/CsvExport/package.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?>
+<Package>
+ <DisplayName>CSV Export plugin</DisplayName>
+ <Description>Plugin for exporting into CSV format.</Description>
+ <Version>%VERSION%</Version>
+ <ReleaseDate>%DATE%</ReleaseDate>
+ <Name>pl.com.salsoft.sqlitestudio.plugins.csvexport</Name>
+ <Dependencies>pl.com.salsoft.sqlitestudio.plugins</Dependencies>
+ <Default>true</Default>
+</Package>
\ No newline at end of file |
