Forum: Ruby on Rails Localizing the views

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-11-24 23:33
Hi,

Using I18n, how would you localize the hard-coded html that is inside a
view? I can't find a way to do that in a clean manner.
9a2a53db8e9b4476038c94a64b32833f?d=identicon&s=25 Ryan Bigg (ryan-bigg)
on 2008-11-25 00:01
(Received via mailing list)
By hand. One string at a time.
-----
Ryan Bigg
Freelancer
http://frozenplague.net
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-11-25 01:01
Ryan Bigg wrote:
> By hand. One string at a time.
> -----
> Ryan Bigg
> Freelancer
> http://frozenplague.net

Crap, I was fearing that would be the answer. I thought about creating a
layout for each language, but it would not be very maintainable.
4e515deb518e9195f0dc45ec2af6a541?d=identicon&s=25 Karel Minařík (karmi)
on 2008-11-25 09:45
(Received via mailing list)
Hi Fernando,

you can probably make it more automated by writing a Rake task such as
this: http://gist.github.com/4068/ for Gibberish.

--karmi

On Nov 25, 1:01 am, Fernando Perez <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.