On 01.09.2010, at 08:00, Steffen Beyer wrote: > Hi, > > sorry if this a Rails issue... > > I wrote custom extension which brings its own de.yml l10n file. Now I'm > converting some numbers using ActionView's number_with_precision(), which > only succeeds in English -- for German the contents of [1] is missing. > > Where do I put it? Does is belong into my Rails installation? Should not > be part of my own files, for sure... > > [1] > <http://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/de.yml>
are you thinking of admin area translations or content translations? radiant is aware of admin i18n, NOT content. so if you happen to miss content i18n you have to use one of the content i18n extensions like http://github.com/Aissac/radiant-globalize2-extension these are working on 0.9.1: http://github.com/sniemela/radiant-globalize2-extension http://github.com/ehaselwanter/radiant-globalize2-extension if you have issues with tags, you may have to tweak them. have a look at the tag which is not working. an example: I don't know if this link works: http://github.com/ehaselwanter/radiant-event-calendar-extension/commit/d8d3d12b398d334374136388e676569d978ca06f tag "event:date" do |tag| - tag.locals.event.start_date.strftime(tag.attr['format'] || "%m/%d/%Y") + I18n.l tag.locals.event.start_date, :format => tag.attr['format'] || "%m/%d/%Y" end you see the difference? with this the tag response to the i18n locale of your app (set in the environment.rb) or the one set with e.g. the globalize2 extension > > Kind regards, > -- > Steffen Beyer <stef...@beyer.io> > > GnuPG key fingerprint: CA00 1611 242B 89D4 E643 E235 05F3 7689 DD3E EB26 > Public key available upon request or at http://wwwkeys.de.pgp.net -- DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/ http://www.iteh.at | http://facebook.com/iTeh.solutions | http://at.linkedin.com/in/haselwanteredmund