[OSM-dev] extracting output text from api_controller

Tom Hughes tom at compton.nu
Thu Jan 24 11:53:15 GMT 2008


In message <e04cd2420801240344s22264b5cpc0a2d846bfdcfd2 at mail.gmail.com>
        Xin Zheng <xin at zxv.ltd.uk> wrote:

> That's a great idea. The code will also be more usable.
>
> I'm thinking of calling the module 'i18n.rb' which will go into /lib/.
>
> The API call might look like: text_for(:node_limit_exceeded).

Sounds good to me.

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?

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list