<blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">At some point that routine is presumably going to need access to<br>the request object in order to work out what language to use, so
<br>maybe we want to consider that now?</blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br class="webkit-block-placeholder"></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
 This might be a daft question, but have you considered using one of<br>the approximately 20 zillion plugins that exist for rails to do<br>internationalisation?</blockquote><div><br class="webkit-block-placeholder"></div>
Yes, both great ideas. I'm in the middle of refactoring map at the moment. I'll investigate them later today or tomorrow.<div><br> </div><div>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?
</div><div><div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br></blockquote><br><div><span class="gmail_quote"> <b class="gmail_sendername">Martijn wrote:</b></span>
<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">How does this handle replacables? How do you get stuff "Parameter %s<br>is out of range":<br><br>report_error( sprintf(TEXT['parameter_out_of_range'],var) )
<br><br>or something? You then do lose information about the formatting...</blockquote><div><br class="webkit-block-placeholder"></div><div>Using the new method way suggested by John, the calls may look like this:</div></div>
</div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
report_error( text_for(:parameter_out_of_range, var) )</blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br class="webkit-block-placeholder"></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
report_error( text_for(:parameters_out_of_range, var, var) )</blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br class="webkit-block-placeholder"></blockquote>
Cheers,<div>Xin<br><div><div><div><div><div><br class="webkit-block-placeholder"></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br></blockquote>
<div><div><div><br> </div><br> </div></div></div></div>