ItSpiderman has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/347326 )

Change subject: Add i18n messages for Date/DateTime grid filter
......................................................................

Add i18n messages for Date/DateTime grid filter

Change-Id: I50ffc2cc6cce069394c1bd897a614fa340b58b76
ERM: #3905
---
M extension.json
M i18n/extjs/en.json
M i18n/extjs/qqq.json
M resources/bluespice.extjs/Ext.ux/grid/filter/DateFilter.js
M resources/bluespice.extjs/Ext.ux/grid/filter/DateTimeFilter.js
5 files changed, 20 insertions(+), 7 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/26/347326/1

diff --git a/extension.json b/extension.json
index 8ae03d1..12e9ff0 100644
--- a/extension.json
+++ b/extension.json
@@ -124,7 +124,11 @@
                                "bs-extjs-filter-bool-yes",
                                "bs-extjs-filter-bool-no",
                                "bs-extjs-categoryboxselect-emptytext",
-                               "bs-extjs-categorytree-title"
+                               "bs-extjs-categorytree-title",
+                               "bs-extjs-filter-date-after",
+                               "bs-extjs-filter-date-before",
+                               "bs-extjs-filter-date-on",
+                               "bs-extjs-filter-date-filter"
                        ],
                        "dependencies": [
                                "ext.bluespice.extjs.theme.ux",
diff --git a/i18n/extjs/en.json b/i18n/extjs/en.json
index 0f72db3..aa47deb 100644
--- a/i18n/extjs/en.json
+++ b/i18n/extjs/en.json
@@ -48,5 +48,10 @@
        "bs-extjs-title-success": "Success",
        "bs-extjs-title-warning": "Warning",
        "bs-extjs-categoryboxselect-emptytext": "Add a category",
-       "bs-extjs-categorytree-title": "Categories"
+       "bs-extjs-categorytree-title": "Categories",
+       "bs-extjs-filter-date-after": "After",
+       "bs-extjs-filter-date-before": "Before",
+       "bs-extjs-filter-date-on": "On",
+       "bs-extjs-filter-date-filter": "Filter"
+
 }
diff --git a/i18n/extjs/qqq.json b/i18n/extjs/qqq.json
index 01c6f0c..b596739 100644
--- a/i18n/extjs/qqq.json
+++ b/i18n/extjs/qqq.json
@@ -51,5 +51,9 @@
        "bs-extjs-title-success": "Window title for 
success\n{{Identical|Success}}",
        "bs-extjs-title-warning": "Window title for 
warning\n{{Identical|Warning}}",
        "bs-extjs-categoryboxselect-emptytext": "The placeholder text of an 
input field that allows the definition of categories",
-       "bs-extjs-categorytree-title": "The title of a panel containing a tree 
view of the wiki's categories\n{{Identical|Category}}"
+       "bs-extjs-categorytree-title": "The title of a panel containing a tree 
view of the wiki's categories\n{{Identical|Category}}",
+       "bs-extjs-filter-date-after": "Label for a filter option that filters 
for datasets where date in the field is later than the the entered date",
+       "bs-extjs-filter-date-before": "Label for a filter option that filters 
for datasets where date in the field is earlier than the the entered date",
+       "bs-extjs-filter-date-on": "Label for a filter option that filters for 
datasets where date in the field is the same as the entered date",
+       "bs-extjs-filter-date-filter": "Label for a button invoking the filter"
 }
diff --git a/resources/bluespice.extjs/Ext.ux/grid/filter/DateFilter.js 
b/resources/bluespice.extjs/Ext.ux/grid/filter/DateFilter.js
index f3d5b2d..cc7b86c 100644
--- a/resources/bluespice.extjs/Ext.ux/grid/filter/DateFilter.js
+++ b/resources/bluespice.extjs/Ext.ux/grid/filter/DateFilter.js
@@ -32,12 +32,12 @@
      * @cfg {String} afterText
      * Defaults to 'After'.
      */
-    afterText : 'After',
+    afterText : mw.message( 'bs-extjs-filter-date-after' ).plain(),
     /**
      * @cfg {String} beforeText
      * Defaults to 'Before'.
      */
-    beforeText : 'Before',
+    beforeText : mw.message( 'bs-extjs-filter-date-before' ).plain(),
     /**
      * @cfg {Object} compareMap
      * Map for assigning the comparison values used in serialization.
@@ -86,7 +86,7 @@
      * @cfg {String} onText
      * Defaults to 'On'.
      */
-    onText : 'On',
+    onText : mw.message( 'bs-extjs-filter-date-on' ).plain(),
 
     /**
      * @cfg {Object} pickerOpts
diff --git a/resources/bluespice.extjs/Ext.ux/grid/filter/DateTimeFilter.js 
b/resources/bluespice.extjs/Ext.ux/grid/filter/DateTimeFilter.js
index 095f2c0..5a06826 100644
--- a/resources/bluespice.extjs/Ext.ux/grid/filter/DateTimeFilter.js
+++ b/resources/bluespice.extjs/Ext.ux/grid/filter/DateTimeFilter.js
@@ -107,7 +107,7 @@
      */
     dockDefaults: {
         dock: 'top',
-        buttonText: 'Filter'
+        buttonText: mw.message( 'bs-extjs-filter-date-filter' ).plain()
     },
 
     /**

-- 
To view, visit https://gerrit.wikimedia.org/r/347326
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I50ffc2cc6cce069394c1bd897a614fa340b58b76
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to