Hi, If it can help, by Camptocamp, we use OpenLayers.i18n() in all multilingual projects (... switzerland... has four languages...). We have not faced any problem with this approach. Cédric
On Tue, Mar 23, 2010 at 3:44 PM, Alexandre Dube <[email protected]> wrote: > O~h, I see. So you do need to define your own i18n files in the end if > you wish to use any kind of translation... > > I'd like to have more comments on this matter, please. Why not have > lang files in GeoExt like OpenLayers do and use OpenLayers.i18n() > directly in widgets instead of having to define them manually like your > example below ? I agree that "text" is a big matter of "user > customization" but having default values wouldn't hurt (I guess). Plus, > translating a text could be done once and added to the project lang > files instead of once per user using the widget. > > Thoughts ? > > Again, many thanks Bart. > > Alexandre > > [email protected] wrote: > > Right, this is possible. > > > > For instance I construct such a widget with: > > > > this.printForm = new GeoExt.ux.SimplePrint({ > > hideRotation: true, > > defaults: {width: 200, listWidth: 200}, > > layoutText: OpenLayers.i18n("mf.print.layout"), > > dpiText: OpenLayers.i18n("mf.print.dpi"), > > rotationText: OpenLayers.i18n("mf.print.rotation"), > > scaleText: OpenLayers.i18n("mf.print.scale"), > > printText: OpenLayers.i18n("mf.print.print"), > > creatingPdfText: > OpenLayers.i18n("mf.print.generatingPDF"), > > ... > > > > and then I use my own language files. > > > > Best regards, > > Bart > > > > > > -- > Alexandre Dubé > Mapgears > www.mapgears.com > > _______________________________________________ > Dev mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/dev > -- Geospatial Director Camptocamp SA Cédric Moullet PSE A CH-1015 Lausanne www.camptocamp.com / www.mapfish.org / twitter.com/cedricmoullet / mapfishblog.blogspot.com/ +41 79 759 69 83 (mobile) +41 21 619 10 21 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax)
_______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
