[Lada-commits] [PATCH 2 of 2] Use i18n instead of hardcoded strings for Ortszuordnung-grid

Wald Commits scm-commit at wald.intevation.org
Thu Feb 2 11:48:36 CET 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1486032498 -3600
# Node ID 394c722e540282e046a24160f35d2786bd4a122d
# Parent  3025014e83c685266695e7c86ae46b75e4f6f639
Use i18n instead of hardcoded strings for Ortszuordnung-grid.

diff -r 3025014e83c6 -r 394c722e5402 app/view/grid/Ortszuordnung.js
--- 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) {
diff -r 3025014e83c6 -r 394c722e5402 resources/i18n/Lada_de-DE.properties
--- 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


More information about the Lada-commits mailing list