similar to: I18N error

Displaying 20 results from an estimated 70000 matches similar to: "I18N error"

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 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:
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
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 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
2010 Sep 06
0
I18n interpolation problem
hi, i using rails 2.3.8, i have setting this on my view: <%=h l(@banner.expire, :format => :long) %> (when "@banner.expire" is a Date ) and this on the my localized yml locale: date: formats: long: "%d %B %Y" but wheel i load the page, i have this error: I18n::MissingInterpolationArgument in Admin/banners#show missing interpolation
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 Apr 05
0
I18n in ruby scripts
Hello, I created a ruby script for my RubyOnRails application that send a mail to my application users. This script is executed using a cron job everyday at midnight. Ok so that part works just great. My problem is that I have to use RubyOnRails I18n system to translate a large part of the emails sent and it doesn''t seems to work (translation is not done). I''m using 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
2012 Mar 31
2
I18n.t('countries.NO') broken?
Hi I''ve tried this on a virgin Rails 3.2.2 app. If you put the translations for country names in the locale file using the 2 letter ISO code, it looks something like this: en: countries: DE: "Germany" NO: "Norway" US: "USA" This works fine - but for Norway :-) I18n.t :''countries.DE'' # => "Germany" I18n.t
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 Oct 01
1
I18n.with_options bloc executed TWICE
Hi, to avoid putting the whole locale scope on every I18n.t call I''m trying to use a scope, as stated in the doc (http://guides.rubyonrails.org/active_support_core_extensions.html#with_options) I tried with <%= I18n.with_options :locale => :en, :scope => ''portal.visitor_menu'' do |i18n|%> Try <%= i18n.t :fav_songs %> <% end %> But it produce
2010 Jul 23
0
alias_method_chain with i18n
Hello, I was investigating solutions for i18n with will_paginate and I found a possible solution at http://lawrencesong.net/2009/01/enable-i18n-in-will_paginate-plugin/ The author adds to application_helper.rb the following code: ############################################# include WillPaginate::ViewHelpers def will_paginate_with_i18n(collection, options = {})
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)
2014 Jun 11
0
my webpage does not send emails confimation/notification
Hello everybody I have a problem with my inquireis, when I want to contact and I send the message, I must receive two emails one of confirmation (client) and other of notification (admin of the web page) but it does not send. The webpage work in production environment. When I watch the log (production.log) I seed this: > > There was an error delivering an inquiry confirmation: > 503
2010 May 18
0
i18n question
how do i configure custom model messages in i18n. I have a custom validation that calls a method snd upon failure, add an error to an attribute. I understand how to do this for standard built in validations. 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 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
2009 Dec 29
1
undefined method `alias_method_chain' for I18n::Backend::Simple:Class
Hi, We are running RE: ruby 1.8.7 (2009-06-12 patchlevel 174) [sparc-solaris2.10], MBARI 0x8770, Ruby Enterprise Edition 2009.10 I tried a simple web app with a controller rendering a text and is working in my PC but on the server I get: Error message: undefined method `alias_method_chain'' for I18n::Backend::Simple:Class Exception class: NoMethodError Application root:
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the solution I found with respect to UTF-8, YAML::load, and Ruby/Rails. Comments are appreciated. - - - I had been struggling for two days to get UTF-8 working in my Rails app. I had/have a localization file, lib\locale\de.yml, that had iso-8859-1 encoding. I could not get that to display properly. Marnen, quite correctly,
2010 Apr 26
11
Rails I18n
I was just wondering about locales and .yml files. Is it better to store the multilanguage strings in .yml files than in databases? And if yes, why? I was also wondering how rails are loading this files (for example, I have 4 languages in my web app, each has her own .yml file, will my rails app loads all the files in ram and then it will call each variable inside my web app? Or something else?)