I18n not working by default

I’m try this groovy i18n stuff for formatting my dates in UK format.

Console tests seem to show me I have it configured properly but I’m not
100%.

How do I set up the app so that in a view when I do

<%= Person.first.birthday %>

it shows in UK format as specified in my i18 config file. Currently it’s
ignoring it.

I have to explicitly tell the view to use the i18 config for it to work.

What am I missing here or is this intended behaviour?

On Oct 7, 8:51 am, bingo bob [email protected] wrote:

ignoring it.

I have to explicitly tell the view to use the i18 config for it to work.

What am I missing here or is this intended behaviour?

Use I18n.l (short for I18n.localize, also available as just l in
views)

Fred

Use I18n.l (short for I18n.localize, also available as just l in
views)

Fred

Aha, that explains it - so it is intended behaviour!
Thanks again for such a quick and clear and helpful response Fred.
:-).
bb.

bingo bob wrote:

Use I18n.l (short for I18n.localize, also available as just l in
views)

Fred

Aha, that explains it - so it is intended behaviour!
Thanks again for such a quick and clear and helpful response Fred.
:-).
bb.

Also, please consider using fast_gettext instead of the (IMHO much
clumsier) default Rails I18N. fast_gettext uses the Rails I18N
interface, but works with string keys (instead of symbolic ones) and PO
files that are nicer to use and reasonably standard in the industry.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]