Displaying 20 results from an estimated 10000 matches similar to: "I18n interpolation problem"
2010 Aug 01
3
The {{key}} interpolation syntax in I18n messages is deprecated...
All,
Has anyone seen this - I am getting the following deprecation warning when
running my functional tests under rails 2.3.8 (just moved an app from 2.3.4
up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is
solved in Rails 3 then let me know):
The {{key}} interpolation syntax in I18n messages is deprecated. Please use
%{key} instead.
I have isolated the problem to the
2011 Jan 31
0
Rails 3 - Translation of Error header doen't work
I am preparing the upgrade of one RoR aplication that used Rails 2.3.8
and where all the translations worked fine. Now I discovered that it
is not the case any more. Everything seems to work fien except the
Error windows header where the interpolation is not recognized.
I''m using Rails 3.0.3, Ruby 1.9.2.
I''ve just created a simple application, downloaded the latest french
YML
2008 Dec 14
0
Newbee met problems when do some i18n on rails
1. I have download the zh-CN.yml file from http://github.com/svenfuchs/rails-i18n/tree/master/rails
locale
2. I have put this zh-CN.yml in to my locales folder.
3. I have modified the enviorment.rb like follow:
config.i18n.load_path << Dir[File.join(RAILS_ROOT, ''my'', ''locales'', ''*.
{rb,yml}'')]
config.i18n.default_locale =
2012 Oct 10
0
Setting locale directories for I18n
Rails 3.1.3
I would like to apply i18n for my application.
Since there are many yml files in config/locales directory, I have made
subdirectories so that the maintenance will be easier. For example,
config/locales/devise/
date/
top/
...
Each subdirectories contain corresponding locale files that are applied
when users change
2010 Jul 10
0
`method_missing': undefined method `i18n' for #<Rails::Railtie::Configuration:0x000001010fce98>
I have recently upgraqded to Ruby 1.9.2-rc1 and reinstalled rails 3
beta 4 with all the dependencies. I have run bundle install in my
rails project. Now I am trying to run some tests...
My test_helper.rb file looks like this:
# test_helper.rb
require ''rubygems''
require ''test/unit''
require ''rails/all''
$ gem list
i18n (0.4.1, 0.3.7)
2009 Jun 24
3
I18N: allocator undefined for Proc
Hello all,
I''m trying to translate my application using the I18N feature and it was
working fine until I added a couple of new entries to the en.yml files.
Now in every action in my application I always get the following error:
TypeError in Account#login
Showing app/views/account/login.rhtml where line #2 raised:
allocator undefined for Proc
Extracted source (around line #2):
1:
2:
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks,
I have a simple model hierarchy (reduced to example as below)
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
has_attached_file :photo,
# :url => "/assets/class_cal/<original post
date>/:id/:style/:basename.:extension"
:url =>
2011 Sep 05
1
I18n.locale Setting invalid
I like this set of
code:
before_filter :set_language
def set_language
request_language = request.env[''HTTP_ACCEPT_LANGUAGE'']
request_language = request_language.nil? ? nil :
request_language[/[^,;]+/]
I18n.locale = request_language if request_language &&
File.exist?("#{Rails.root.to_s}/config/locales/#{request_language}.yml")
end
if i setting
2012 Jan 31
3
Interesting strangeness with I18n.t
Hi all,
I have a locale en.yml file like this: https://gist.github.com/1707858
If you launch a rails console and ask for:
irb(main):003:0> I18n.t("country.ES")
=> "Spain"
Cool. Expected response, but what if you do:
irb(main):004:0> I18n.t("country.NO")
=> "translation missing: en.country.NO"
Despite it exists (check it on the paste). I
2010 Mar 19
2
I18n and Rails 2.3.5
Has anybody faced any problem to use i18n on Rails 2.3.5? Sometimes when I
call the *t* function, it works fine, but for some keys, it does not work
and I have no clue why it is going on.
I do have a .yml with correct keys and values. For example, in this (
http://dev.promine.com.br/promine) page, i18n is working properly, but in
this (http://dev.promine.com.br/servicos) one, it isn''t?
2010 May 19
0
I18N error
I have the following in my en.yml
en:
hello: "Hello world"
activerecord:
errors:
models:
et:
not_enough: "Not enough points for this transaction"
when I call I18n.t :not_enough in my custom validation method in model
Et, I get a translation missing error. I have restarted the app, no
luck. I can translate ''hello'' just fine.
2010 Nov 19
1
I18n::InvalidLocaleData error on load page
Hi All,
I use rails 3.0.1 in my application and when the server web load this
following page http://localhost:3000/signup
<h1>Sign up</h1>
<%= form_for(@user) do |f| %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :email %><br
2009 Sep 09
0
distance_of_time_in_words_to_now and i18n
Hello,
Im using this method and sometimes getting errors like this:
I18n::InvalidPluralizationData in Forums#show
Showing app/views/forums/show.html.erb where line #13 raised:
translation data {:one=>"1 minuto", :many=>"{{count}} minutos"} can
not be used with :count => 2
It only happens when using localization (I have the file, pt-br.yml
and its ok, I checked it
2009 Aug 14
0
country select with i18n
I am trying to manage the country names with i18n. I have a countries
table with the countries extension codes (us., co., ve., .bo. etc...)
and the yml files with their complete names:
en:
countries:
ar: Argentina
co: Colombia
.
I am trying to make a form with a select option for country and came
up with this:
<%= f.select("country_id", Country.all.collect {|p| [ t
2010 Aug 13
0
Plugin i18n rails for netbeans 6.9
hi friends,
I developed a netbeans plugin to edit yml configuration files in a
ruby on rails projects
Just see my blog to more informations
http://luiszandonadi.heroku.com/en/articles/netbeans/2010-07-11-i18n-rails-with-netbeans
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Mar 26
5
"invalid byte sequence in US-ASCII" on i18n form
I''m getting the error "invalid byte sequence in US-ASCII" when using i18n on
Rails 3.0.0beta with Ruby 1.9.1. I''ve searched extensively on Google and the
problem seems to happen with 2.3.x versions as well (when using Ruby 1.9.1).
I just set the default language to portuguese and added this locale file:
2010 Aug 21
2
Rails 3: I18n.locale not set to I18n.default_locale in production
I have an application that uses I18n, but in the first deployment, I
don''t want to enable different languages per user/request because
there are very few users who all speak german).
Therefore I have config.i18n.default_locale = :de in config/
application.rb.
I have no code whatsoever to set/change I18n.locale in my app.
In development environment, it works as expected: the
2010 Aug 13
0
Rails 2 and Rails 3 in the same gemset leads to errors
Hi.
I am pretty new to ruby (and those gems) and rails.. Until now I
thought that all rails application have some kind of integrated
version management (RAILS_GEM_VERSION in Rails 2 and gem ''rails'' in
Rails 3). And therefore I thought that having Rails 2 and Rails 3 in
the same gem repository (in my case gemset under rvm) wouldn''t be a
problem. But during installing
2006 Aug 23
11
i18n friendly, plugable Rails Core
In my work with a simple localization plugin, i''m running into a lot of
places in the Rails core, where text and other localization specific
information is hardcoded.
I''ve included some examples in the bottom of this post.
It''s hard for an outsider to know, if the hardcoded values are a result
of inconsistency in code, or "by design". I hope that we can have
2006 May 05
0
Updating Squirrelmail-i18n dependency
Because of a folder display problem caused by certain character encodings used
in some email headers we had previously updated to squirrelmail-1.4.6-1 and
installed squirrelmail-i18n-1.4.6-1 to cope. Yum is now trying to update our
installation with the latest offical Centos release but there does not seem to
be a corresponding squirrelmail-i18n rpm available in any of the repositories
which is