Mercurial > lada > lada-client
changeset 1155:1be581a403b5
Introduce i18n for Haupt- and Nebenprobennummer.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 06 Jun 2016 15:10:01 +0200 |
parents | 2309b6ffb069 |
children | bb44ec8746f5 |
files | app/view/form/Messung.js app/view/form/Probe.js resources/i18n/Lada.properties resources/i18n/Lada_de-DE.properties |
diffstat | 4 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Messung.js Thu Jun 02 17:58:51 2016 +0200 +++ b/app/view/form/Messung.js Mon Jun 06 15:10:01 2016 +0200 @@ -31,6 +31,7 @@ initComponent: function() { var me = this; + var i18n = Lada.getApplication().bundle; this.items = [{ xtype: 'fieldset', title: 'Allgemein', @@ -69,7 +70,7 @@ name: 'nebenprobenNr', maxLength: 10, margin: '0, 10, 5, 0', - fieldLabel: 'Nebenprobennr.', + fieldLabel: i18n.getMsg('nebenprobenNr'), width: 300, labelWidth: 100 }, {
--- a/app/view/form/Probe.js Thu Jun 02 17:58:51 2016 +0200 +++ b/app/view/form/Probe.js Mon Jun 06 15:10:01 2016 +0200 @@ -42,6 +42,7 @@ initComponent: function() { var me = this; + var i18n = Lada.getApplication().bundle; this.items = [{ xtype: 'fieldset', title: 'Allgemein', @@ -157,7 +158,7 @@ items: [{ xtype: 'tfield', name: 'hauptprobenNr', - fieldLabel: 'Hauptprobennr.', + fieldLabel: i18n.getMsg('hauptprobenNr'), margin: '0, 5, 5, 5', width: '35%', labelWidth: 95,
--- a/resources/i18n/Lada.properties Thu Jun 02 17:58:51 2016 +0200 +++ b/resources/i18n/Lada.properties Mon Jun 06 15:10:01 2016 +0200 @@ -29,4 +29,6 @@ ## # Field names ## +hauptprobenNr:Hauptprobennr. +nebenprobenNr:Nebenprobennr. entnahmeOrt: Entnahmeort
--- a/resources/i18n/Lada_de-DE.properties Thu Jun 02 17:58:51 2016 +0200 +++ b/resources/i18n/Lada_de-DE.properties Mon Jun 06 15:10:01 2016 +0200 @@ -40,7 +40,8 @@ ## # Field names ## -hauptprobenNr:Hauptproben Nr. +hauptprobenNr:Hauptprobennr. +nebenprobenNr:Nebenprobennr. entnahmeOrt:Entnahmeort test:Test probenartId:Probenart