Article View: pl.comp.lang.ruby
Article #1297[RoR] Parametryzowana lokalizacja
From: Zbigniew Malec
Date: Thu, 02 Sep 2010 00:45
Date: Thu, 02 Sep 2010 00:45
16 lines
998 bytes
998 bytes
Czołem,
czy w Ruby On Rails 2.3.2 w domyślnym mechaniźmie lokalizacji da się w
jakiś sposób przekazać parametry? Przykładowo:
en.yml
en:
message: "This is a message: %1"
show.html.erb
<%= t('message', 'Doesn't work!') %>
?
--
Pozdrawiam
Zbyszek Malec
Technical Details
Message-ID:
<2cylhe98l8gr$.k3gmi0yxu0vx$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Zbigniew Malec <alpha@invalid.invalid> Newsgroups: pl.comp.lang.ruby Subject: [RoR] Parametryzowana lokalizacja Date: Thu, 2 Sep 2010 02:45:56 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 16 Message-ID: <2cylhe98l8gr$.k3gmi0yxu0vx$.dlg@40tude.net> NNTP-Posting-Host: chello089075069032.chello.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1283388353 13412 89.75.69.32 (2 Sep 2010 00:45:53 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Thu, 2 Sep 2010 00:45:53 +0000 (UTC) X-User: zbyszanna User-Agent: 40tude_Dialog/2.0.15.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit