Bart, How does this work ? If I want to use this widget in French, can I load an external lang file or do I need to set these properties to what I want ?
Thanks, Alexandre [email protected] wrote: > Hi Alexandre, > > the way it has been done for instance by Andreas in GeoExt.ux.PrintPreview > is: > > GeoExt.ux.PrintPreview = Ext.extend(Ext.Panel, { > > /* begin i18n */ > /** api: config[paperSizeText] ``String`` i18n */ > paperSizeText: "Paper size:", > /** api: config[resolutionText] ``String`` i18n */ > resolutionText: "Resolution:", > /** api: config[printText] ``String`` i18n */ > printText: "Print", > /** api: config[emptyTitleText] ``String`` i18n */ > emptyTitleText: "Enter map title here.", > /** api: config[includeLegendText] ``String`` i18n */ > includeLegendText: "Include legend?", > /** api: config[emptyCommentText] ``String`` i18n */ > emptyCommentText: "Enter comments here.", > /** api: config[creatingPdfText] ``String`` i18n */ > creatingPdfText: "Creating PDF...", > > Best regards, > Bart > > >> Hi, >> >> I noticed that there is no lang file in GeoExt but I would need one >> for the plugin I created [1]. I need it for the 'text' property [2] of >> a menu created by the plugin. What should I do ? Should I leave a >> default 'english' value and make it customizable by the user ? >> >> Thanks, >> >> [1] http://trac.geoext.org/ticket/185#comment:8 >> [2] >> http://trac.geoext.org/attachment/ticket/185/geoext-tree-plugin.2.patch >> (look for 'i18n' to find the text) >> >> -- >> Alexandre Dubé >> Mapgears >> www.mapgears.com >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://www.geoext.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
