diff options
Diffstat (limited to 'Plugins/SqlFormatterSimple')
| -rw-r--r-- | Plugins/SqlFormatterSimple/SqlFormatterSimple.pro | 4 | ||||
| -rw-r--r-- | Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm | bin | 0 -> 30 bytes | |||
| -rw-r--r-- | Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.ts | 17 | ||||
| -rw-r--r-- | Plugins/SqlFormatterSimple/package.xml | 10 | ||||
| -rw-r--r-- | Plugins/SqlFormatterSimple/sqlformattersimple.qrc | 2 | ||||
| -rw-r--r-- | Plugins/SqlFormatterSimple/sqlformattersimpleplugin.cpp | 2 |
6 files changed, 33 insertions, 2 deletions
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 Binary files differnew file mode 100644 index 0000000..2856eb9 --- /dev/null +++ b/Plugins/SqlFormatterSimple/SqlFormatterSimple_ro_RO.qm 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="ro_RO"> +<context> + <name>SqlFormatterSimplePlugin</name> + <message> + <location filename="SqlFormatterSimple.ui" line="20"/> + <source>Upper case keywords</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="SqlFormatterSimple.ui" line="30"/> + <source>Reduce multiple whitespaces to single whitespace</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> 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 @@ +<?xml version="1.0"?>
+<Package>
+ <DisplayName>SQL simple formatter plugin</DisplayName>
+ <Description>Plugin for limited SQL formatting - only keywords and some of whitespaces. For better experience the enterprise SQL formatter plugin is recommended.</Description>
+ <Version>%VERSION%</Version>
+ <ReleaseDate>%DATE%</ReleaseDate>
+ <Name>pl.com.salsoft.sqlitestudio.plugins.sqlformattersimple</Name>
+ <Dependencies>pl.com.salsoft.sqlitestudio.plugins</Dependencies>
+ <Default>true</Default>
+</Package>
\ 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 @@ <file>SqlFormatterSimple.ui</file> </qresource> <qresource prefix="/msg"> + <file>SqlFormatterSimple_ro_RO.qm</file> <file>SqlFormatterSimple_de.qm</file> @@ -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();
|
