Mercurial > lada > lada-client
diff app/view/grid/Ortszuordnung.js @ 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 | bfdc00c24baf |
children | 1a2cd9bef6d7 |
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) {