From f1680d0fce47e664e2458376b51e0d0cf4015173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Attila?= Date: Thu, 5 Mar 2020 11:54:16 +0100 Subject: [PATCH 1/8] - HUngarian translation JSONs. --- src/i18n/hu.json | 63 ++++++++++++++++++++++++++++++ src/plugins/invert/i18n/hu.json | 3 ++ src/plugins/not-group/i18n/hu.json | 3 ++ 3 files changed, 69 insertions(+) create mode 100644 src/i18n/hu.json create mode 100644 src/plugins/invert/i18n/hu.json create mode 100644 src/plugins/not-group/i18n/hu.json diff --git a/src/i18n/hu.json b/src/i18n/hu.json new file mode 100644 index 00000000..22fa5e4c --- /dev/null +++ b/src/i18n/hu.json @@ -0,0 +1,63 @@ +{ + "__locale": "Hungarian - Magyar (hu)", + "__author": "Szabó Attila \"Tailor993\", https://www.tailor993.hu", + + "add_rule": "Feltétel hozzáadása", + "add_group": "Csoport hozzáadása", + "delete_rule": "Feltétel törlése", + "delete_group": "Csoport törlése", + + "conditions": { + "AND": "ÉS", + "OR": "VAGY" + }, + + "operators": { + "equal": "egyenlő", + "not_equal": "nem egyenlő", + "in": "bennevan", + "not_in": "nincs benne", + "less": "kisebb", + "less_or_equal": "kisebb vagy egyenlő", + "greater": "nagyobb", + "greater_or_equal": "nagyobb vagy egyenlő", + "between": "közötte", + "not_between": "nincs közötte", + "begins_with": "ezzel kezdődik", + "not_begins_with": "ezzel nem kezdődik", + "contains": "tartalmazza", + "not_contains": "nem tartalmazza", + "ends_with": "erre végződik", + "not_ends_with": "errre nem végződik", + "is_empty": "üres", + "is_not_empty": "nem üres", + "is_null": "null", + "is_not_null": "nem null" + }, + + "errors": { + "no_filter": "Nincs kiválasztott feltétel", + "empty_group": "A csoport üres", + "radio_empty": "Nincs kiválasztott érték", + "checkbox_empty": "Nincs kiválasztott érték", + "select_empty": "Nincs kiválasztott érték", + "string_empty": "Üres érték", + "string_exceed_min_length": "A megadott szöveg rövidebb a várt {0} karakternél", + "string_exceed_max_length": "A megadott szöveg nem tartalmazhat többet, mint {0} karaktert", + "string_invalid_format": "Nem megfelelő formátum ({0})", + "number_nan": "Nem szám", + "number_not_integer": "Nem egész szám (integer)", + "number_not_double": "Nem valós szám", + "number_exceed_min": "Nagyobbnak kell lennie, mint {0}", + "number_exceed_max": "Kisebbnek kell lennie, mint {0}", + "number_wrong_step": "{0} többszörösének kell lennie.", + "number_between_invalid": "INem megfelelő érték, {0} nagyobb, mint {1}", + "datetime_empty": "Üres érték", + "datetime_invalid": "nem megfelelő dátum formátum ({0})", + "datetime_exceed_min": "A dátumnak későbbinek kell lennie, mint{0}", + "datetime_exceed_max": "A dátumnak korábbinak kell lennie, mint {0}", + "datetime_between_invalid": "Nem megfelelő értékek, {0} nagyobb, mint {1}", + "boolean_not_valid": "Nem igaz/hamis (boolean)", + "operator_not_multiple": "Ez a művelet: \"{1}\" nem fogadhat el több értéket" + } +} diff --git a/src/plugins/invert/i18n/hu.json b/src/plugins/invert/i18n/hu.json new file mode 100644 index 00000000..83b08887 --- /dev/null +++ b/src/plugins/invert/i18n/hu.json @@ -0,0 +1,3 @@ +{ + "invert": "Megfordítás (Invertálás)" +} diff --git a/src/plugins/not-group/i18n/hu.json b/src/plugins/not-group/i18n/hu.json new file mode 100644 index 00000000..4399728c --- /dev/null +++ b/src/plugins/not-group/i18n/hu.json @@ -0,0 +1,3 @@ +{ + "NOT": "NEM" +} From 4c6f2214dbecc6f353e0632bec87cd76dfbfe7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Attila?= Date: Fri, 6 Mar 2020 11:37:09 +0100 Subject: [PATCH 2/8] - Core modification for Bootstrap-V.4 - New dependency: Bootstrap V.4 - New dependency: FontAwesome V.5.12.1, Free, Web-font, Auto-Accessibility: on, Enable Version 4 Compatibility: off - Not necessary dependency: Bootstrap V.3 - NOTICE: examples/index.html not modified jet!!! --- src/defaults.js | 12 ++++++------ src/plugins/bt-selectpicker/plugin.js | 4 ++-- src/plugins/filter-description/plugin.js | 4 ++-- src/plugins/invert/plugin.js | 4 ++-- src/plugins/not-group/plugin.js | 2 +- src/template.js | 16 ++++++++-------- tests/common.js | 2 +- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/defaults.js b/src/defaults.js index b6c5a5eb..7529cd71 100644 --- a/src/defaults.js +++ b/src/defaults.js @@ -186,11 +186,11 @@ QueryBuilder.DEFAULTS = { 'is_not_null' ], - icons: { - add_group: 'glyphicon glyphicon-plus-sign', - add_rule: 'glyphicon glyphicon-plus', - remove_group: 'glyphicon glyphicon-remove', - remove_rule: 'glyphicon glyphicon-remove', - error: 'glyphicon glyphicon-warning-sign' + icons: { + add_group: 'fas fa-plus-circle', + add_rule: 'fas fa-plus', + remove_group: 'fas fa-times', + remove_rule: 'fas fa-times', + error: 'fas fa-exclamation-triangle' } }; diff --git a/src/plugins/bt-selectpicker/plugin.js b/src/plugins/bt-selectpicker/plugin.js index d9ef2812..363083ee 100644 --- a/src/plugins/bt-selectpicker/plugin.js +++ b/src/plugins/bt-selectpicker/plugin.js @@ -4,7 +4,7 @@ * @descriptioon Applies Bootstrap Select on filters and operators combo-boxes. * @param {object} [options] * @param {string} [options.container='body'] - * @param {string} [options.style='btn-inverse btn-xs'] + * @param {string} [options.style='btn-inverse btn-sm'] * @param {int|string} [options.width='auto'] * @param {boolean} [options.showIcon=false] * @throws MissingLibraryError @@ -40,7 +40,7 @@ QueryBuilder.define('bt-selectpicker', function(options) { }); }, { container: 'body', - style: 'btn-inverse btn-xs', + style: 'btn-inverse btn-sm', width: 'auto', showIcon: false }); diff --git a/src/plugins/filter-description/plugin.js b/src/plugins/filter-description/plugin.js index bbe58fcb..aa2b00f9 100644 --- a/src/plugins/filter-description/plugin.js +++ b/src/plugins/filter-description/plugin.js @@ -49,7 +49,7 @@ QueryBuilder.define('filter-description', function(options) { } else { if ($b.length === 0) { - $b = $(''); + $b = $(''); $b.prependTo(rule.$el.find(QueryBuilder.selectors.rule_actions)); $b.popover({ @@ -89,7 +89,7 @@ QueryBuilder.define('filter-description', function(options) { } else { if ($b.length === 0) { - $b = $(''); + $b = $(''); $b.prependTo(rule.$el.find(QueryBuilder.selectors.rule_actions)); $b.on('click', function() { diff --git a/src/plugins/invert/plugin.js b/src/plugins/invert/plugin.js index 6b77e2fd..728928d2 100644 --- a/src/plugins/invert/plugin.js +++ b/src/plugins/invert/plugin.js @@ -33,7 +33,7 @@ QueryBuilder.define('invert', function(options) { this.on('getGroupTemplate.filter', function(h) { var $h = $(h.value); $h.find(Selectors.condition_container).after( - '' ); @@ -44,7 +44,7 @@ QueryBuilder.define('invert', function(options) { this.on('getRuleTemplate.filter', function(h) { var $h = $(h.value); $h.find(Selectors.rule_actions).prepend( - '' ); diff --git a/src/plugins/not-group/plugin.js b/src/plugins/not-group/plugin.js index a2ce9459..d24384a6 100644 --- a/src/plugins/not-group/plugin.js +++ b/src/plugins/not-group/plugin.js @@ -34,7 +34,7 @@ QueryBuilder.define('not-group', function(options) { this.on('getGroupTemplate.filter', function(h) { var $h = $(h.value); $h.find(QueryBuilder.selectors.condition_container).prepend( - '' ); diff --git a/src/template.js b/src/template.js index 004d4693..38222234 100644 --- a/src/template.js +++ b/src/template.js @@ -1,24 +1,24 @@ QueryBuilder.templates.group = '\ -
\ +
\
\ -
\ - \ {{? it.settings.allow_groups===-1 || it.settings.allow_groups>=it.level }} \ - \ {{?}} \ {{? it.level>1 }} \ - \ {{?}} \
\
\ {{~ it.conditions: condition }} \ -