At some point that routine is presumably going to need access to the request object in order to work out what language to use, so maybe we want to consider that now?
This might be a daft question, but have you considered using one of the approximately 20 zillion plugins that exist for rails to do internationalisation? Yes, both great ideas. I'm in the middle of refactoring map at the moment. I'll investigate them later today or tomorrow. I'm new to OSM so I'm not entirely sure what part i18n will play. Can you list a few use cases? I'm thinking it'll be providing messages in relevant languages to the user through Portlatch, JOSM and the API itself? Martijn wrote: > > How does this handle replacables? How do you get stuff "Parameter %s > is out of range": > > report_error( sprintf(TEXT['parameter_out_of_range'],var) ) > > or something? You then do lose information about the formatting... Using the new method way suggested by John, the calls may look like this: report_error( text_for(:parameter_out_of_range, var) ) report_error( text_for(:parameters_out_of_range, var, var) ) Cheers,Xin
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

