Sha256: 84d9de7289f75522ecb0a9436a8e242860475c53a3d38a6f6341f815820bc37e

Contents?: true

Size: 899 Bytes

Versions: 7

Compression:

Stored size: 899 Bytes

Contents

<h1>Ruby-Locale and Ruby on Rails 2.2 sample</h1>
<p><a href ="http://locale.rubyforge.org/svn/trunk/locale_rails/sample">[source code]</a></p>

<h2>The values from Rails</h2>
<table border="1" cellspacing="0" cellpadding="2">
  <tr><th>Variables</th><th>Values</th></tr>
  <tr><td>HTTP_ACCEPT_LANGUAGE</td><td> <%= request.accept_language %></td></tr>
  <tr><td>HTTP_ACCEPT_CHARSET</td><td> <%= request.accept_charset %></td></tr>
  <tr><td>QUERY_STRING</td><td> <%= request.query_string %></td></tr>
  <tr><td>params[:lang]</td><td><%= params[:lang] %></td></tr>
  <tr><td>cookies[:lang]</td><td> <%= cookies[:lang] %></td></tr>
  <tr><td>I18n.t :hello (*1)</td><td> <%= I18n.t :hello %></td></tr>
</table>

<p style="color:red">This page is for pt only. See app/views/samples/index.pt.html.erb. This format is supported by Rails-2.3.x as default.</p>
<p><%= link_to "[BACK]", samples_path %></p>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
activeldap-1.2.2 examples/al-admin/vendor/locale_rails/sample/app/views/samples/index.pt.html.erb
locale_rails-2.0.5 sample/app/views/samples/index.pt.html.erb
locale_rails-2.0.1 sample/app/views/samples/index.pt.html.erb
locale_rails-2.0.2 sample/app/views/samples/index.pt.html.erb
locale_rails-2.0.4 sample/app/views/samples/index.pt.html.erb
locale_rails-2.0.3 sample/app/views/samples/index.pt.html.erb
locale_rails-2.0.0 sample/app/views/samples/index.pt.html.erb