From: Alan Knowles Date: Wed, 4 Aug 2010 06:29:18 +0000 (+0800) Subject: Pman.I18n.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e653e3f9ae684ecefc26b7f64a57690a84c23e90 Pman.I18n.js --- diff --git a/Pman.I18n.js b/Pman.I18n.js index f2f6bbaf..bf537365 100644 --- a/Pman.I18n.js +++ b/Pman.I18n.js @@ -127,7 +127,15 @@ Pman.I18n = { return Pman.I18n.Data[lang][type]; }, - + simpleStoreData : function(type) + { + var lang = Pman.Login.authUser.lang || 'en'; + var ret = []; + Roo.each(Pman.I18n.Data[lang][type], function (o) { + ret.push([ o.code, o.title ]); + }) + return ret; + }, // DEPRECIATED... -- see dataToProxy countryStore : function() { return {