From feda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 27 Jul 2018 23:51:12 -0400 Subject: New upstream version 3.2.1+dfsg1 --- Plugins/SqlFormatterSimple/SqlFormatterSimple.pro | 4 +++- Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm | Bin 0 -> 30 bytes Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.ts | 17 +++++++++++++++++ Plugins/SqlFormatterSimple/package.xml | 10 ++++++++++ Plugins/SqlFormatterSimple/sqlformattersimple.qrc | 2 ++ .../SqlFormatterSimple/sqlformattersimpleplugin.cpp | 2 +- 6 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm create mode 100644 Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.ts create mode 100644 Plugins/SqlFormatterSimple/package.xml (limited to 'Plugins/SqlFormatterSimple') diff --git a/Plugins/SqlFormatterSimple/SqlFormatterSimple.pro b/Plugins/SqlFormatterSimple/SqlFormatterSimple.pro index 3eaa8c6..8b69ad9 100644 --- a/Plugins/SqlFormatterSimple/SqlFormatterSimple.pro +++ b/Plugins/SqlFormatterSimple/SqlFormatterSimple.pro @@ -28,7 +28,8 @@ RESOURCES += \ sqlformattersimple.qrc -TRANSLATIONS += SqlFormatterSimple_de.ts \ +TRANSLATIONS += SqlFormatterSimple_ro_RO.ts \ + SqlFormatterSimple_de.ts \ SqlFormatterSimple_it.ts \ SqlFormatterSimple_zh_CN.ts \ SqlFormatterSimple_sk.ts \ @@ -52,3 +53,4 @@ TRANSLATIONS += SqlFormatterSimple_de.ts \ + diff --git a/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm b/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm new file mode 100644 index 0000000..2856eb9 Binary files /dev/null and b/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm differ diff --git a/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.ts b/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.ts new file mode 100644 index 0000000..547d44d --- /dev/null +++ b/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.ts @@ -0,0 +1,17 @@ + + + + + SqlFormatterSimplePlugin + + + Upper case keywords + + + + + Reduce multiple whitespaces to single whitespace + + + + diff --git a/Plugins/SqlFormatterSimple/package.xml b/Plugins/SqlFormatterSimple/package.xml new file mode 100644 index 0000000..b466726 --- /dev/null +++ b/Plugins/SqlFormatterSimple/package.xml @@ -0,0 +1,10 @@ + + + SQL simple formatter plugin + Plugin for limited SQL formatting - only keywords and some of whitespaces. For better experience the enterprise SQL formatter plugin is recommended. + %VERSION% + %DATE% + pl.com.salsoft.sqlitestudio.plugins.sqlformattersimple + pl.com.salsoft.sqlitestudio.plugins + true + \ No newline at end of file diff --git a/Plugins/SqlFormatterSimple/sqlformattersimple.qrc b/Plugins/SqlFormatterSimple/sqlformattersimple.qrc index e354dfe..2234dfd 100644 --- a/Plugins/SqlFormatterSimple/sqlformattersimple.qrc +++ b/Plugins/SqlFormatterSimple/sqlformattersimple.qrc @@ -3,6 +3,7 @@ SqlFormatterSimple.ui + SqlFormatterSimple_ro_RO.qm SqlFormatterSimple_de.qm @@ -16,3 +17,4 @@ + diff --git a/Plugins/SqlFormatterSimple/sqlformattersimpleplugin.cpp b/Plugins/SqlFormatterSimple/sqlformattersimpleplugin.cpp index 80133b0..943f047 100644 --- a/Plugins/SqlFormatterSimple/sqlformattersimpleplugin.cpp +++ b/Plugins/SqlFormatterSimple/sqlformattersimpleplugin.cpp @@ -8,7 +8,7 @@ QString SqlFormatterSimplePlugin::format(SqliteQueryPtr query) { TokenList tokens = query->tokens; tokens.trimRight(); - foreach (TokenPtr token, tokens) + for (TokenPtr token : tokens) { if (token->type == Token::KEYWORD && cfg.SqlFormatterSimple.UpperCaseKeywords.get()) token->value = token->value.toUpper(); -- cgit v1.2.3