changeset 804:0840c4cf2273

Enabled i18n translation of store values
author Dustin Demuth <dustin@intevation.de>
date Fri, 22 May 2015 13:16:48 +0200
parents 1e7095533038
children c6e9bcda69b8
files app/store/Probenintervall.js
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/app/store/Probenintervall.js	Fri May 22 13:16:06 2015 +0200
+++ b/app/store/Probenintervall.js	Fri May 22 13:16:48 2015 +0200
@@ -16,7 +16,10 @@
     fields: ['probenintervall',
             {
                 name: 'piTexti18nId',
-                convert: translateStore
+                convert: function(v, record) {
+                    var i18n = Lada.getApplication().bundle;
+                    return i18n.getMsg(v);
+                }
             },
             'periodstart',
             'periodend'],
@@ -70,10 +73,4 @@
     remoteSort: false
 });
 
-function translateStore(v, record){
-// TODO currently Lada.get... can not be found when this code is run.
-//    var i18n = Lada.getApplication().bundle;
-//    return i18n.getMsg(v);
-      return v;
-}
 

http://lada.wald.intevation.org