changeset 1299:394c722e5402

Use i18n instead of hardcoded strings for Ortszuordnung-grid.
author Tom Gottfried <tom@intevation.de>
date Thu, 02 Feb 2017 11:48:18 +0100
parents 3025014e83c6
children 049038c4a9c1
files app/view/grid/Ortszuordnung.js resources/i18n/Lada_de-DE.properties
diffstat 2 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/Ortszuordnung.js	Thu Feb 02 11:47:14 2017 +0100
+++ b/app/view/grid/Ortszuordnung.js	Thu Feb 02 11:48:18 2017 +0100
@@ -34,6 +34,8 @@
 
     initComponent: function() {
         var me = this;
+        var i18n = Lada.getApplication().bundle;
+
         this.dockedItems = [{
             xtype: 'toolbar',
             dock: 'bottom',
@@ -72,7 +74,7 @@
                 allowBlank: false
             }
         }, {
-            header: 'Ort-ID',
+            header: i18n.getMsg('orte.ortId'),
             dataIndex: 'ortId',
             flex: 2,
             renderer: function(value, meta, zuordnung) {
@@ -96,7 +98,7 @@
                 return record.get('ortId');
             }
         }, {
-            header: 'Staat',
+            header: i18n.getMsg('staat'),
             dataIndex: 'ortId',
             flex: 1,
             renderer: function(value) {
@@ -110,7 +112,7 @@
                 return record.get('staatIso');
             }
         }, {
-            header: 'Gemeindeschlüssel',
+            header: i18n.getMsg('orte.gemId'),
             dataIndex: 'ortId',
             flex: 3,
             renderer: function(value) {
@@ -122,7 +124,7 @@
                 return record.get('gemId');
             }
         }, {
-            header: 'Gemeindename',
+            header: i18n.getMsg('orte.verwaltungseinheit'),
             dataIndex: 'ortId',
             flex: 4,
             renderer: function(value) {
@@ -138,7 +140,7 @@
                 return record2.get('bezeichnung');
             }
         }, {
-            header: 'Anlage',
+            header: i18n.getMsg('orte.anlageId'),
             dataIndex: 'ortId',
             flex: 3,
             renderer: function(value) {
--- a/resources/i18n/Lada_de-DE.properties	Thu Feb 02 11:47:14 2017 +0100
+++ b/resources/i18n/Lada_de-DE.properties	Thu Feb 02 11:48:18 2017 +0100
@@ -309,8 +309,8 @@
 # Columnnames
 orte.ortId:Ort-ID
 orte.nutsCode:NUTS-Code
-orte.anlageId:Anlage-ID
-orte.gemId:Gemeinde-ID
+orte.anlageId:Anlage
+orte.gemId:Gemeindeschlüssel
 orte.staatId:Staat-ID
 orte.kdaId:KDA-ID
 orte.ozId:OZ-ID

http://lada.wald.intevation.org