Displaying 20 results from an estimated 3000 matches similar to: "I18N: allocator undefined for Proc"
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 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
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2009 Jan 17
2
active_scaffold + i18n
Hello all,
I have a project where I''m using active_scaffold and would also like to use
i18n over it.
While the i18n works fine if I just ignore the active_scaffold, I couldn''t
get it running with it.
I searched through its docs and googled quite a bit. Can I use i18n with
active_scaffold?
thanks
cheers
--
gallois
aka Felipe Gallois
blog: www.gallois.com.br/blog
fanglib
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?
2006 Feb 07
2
Better i18n for Asterisk?
Hi List,
Do you know if there are any plans to improve i18n for Asterisk? The
current i18n way of doing it with asterisk is very limited and most of
the time does not work.
For example, take voicemail:
"message" "received" "at" "seven" "30" "am" might sound good in English.
But:
"message" "recu" "a"
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
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
2008 Feb 27
8
ActiveRecord validation messages not I18N-friendly and enforces grammar
ActiveRecord validation messages are currently not I18N-friendly.
Specifically, I''m referring to the fact that it enforces a certain
grammar, namely the beginning of the message must consist of the field
name. For example:
validates_presence_of :name, :message => "can''t be blank."
...generates the message "Name can''t be blank". This grammar
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
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
2000 Jan 01
1
Please release samba-2.0.7 and SWAT i18n
I belong to Samba Users Group Japan and maintain Samba 2.0.5a Japanized
version. It's only l10n'ed Samba , but is used widely in Japan.
And now we are planning to release next Samba Japanized version. But
Samba 2.0.6 is half i18n'ed and more difficult to do l10n than 2.0.5a
and as we said to Mr. Allison on 18th Dec. 1999 in Japan, the i18n
of current SAMBA_2_0 branch works well, so we
2010 Nov 22
3
can't activate i18n (~> 0.4.1, runtime) for ["mail-2.2.10"
Hi
Using RoR 3.0.3 on Mac OS X, and am running into the dependency
problems. Please see the error below. I thought bundler was meant to
precisely avoid these problems? thanks a lot for your help
I tried bundle install / check , deleted old lockfile and regenerate
it, but nothing worked.
rails generate controller testcontroller index
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:233:in
2009 Jun 14
3
Rails I18n
Hi,
I am trying to use i18n in rails. I want the language to be set first
from params[:locale] (probably already in the url) then from the browser
http header and lastly from the default_locale. Everything is fine. Now
the problem starts, when I want to add a dropdown list to allow the user
to change the locale. How do I force the page to reload with the new
Locale? FYI, I tried using .js and
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:
2006 Jan 30
15
i18n when?
Hi all,
Just wondering... Are there any plans to include i18n support in Rails
anytime soon?
I guess this is about the only feature I''m realy missing in Rails.
Any thoughts?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/63681052/attachment.html
2006 May 02
16
no one cares about i18n (was [OT]: Asking questions on this list)
Do most others in the community agree with this statement? It seems to me
that i18n is:
1. Actually important to many people
2. Not really the difficult to implement in concept
3. Something that people like to point out about Rails to say it''s not
ready foir "Enterprise"
It seems to be that a big part of Rails is encouraging people to do things
the "Right Way",
2009 Mar 25
1
I18n + ActionMailer = conflict ?
Hi there,
can anybody tell me why I get the error message:
"undefined method ''t'' for #<Mailer:0xb6d501e0>"
... when I call the following Mailer?
=================================
class Mailer < ActionMailer::Base
def signup_notification(user)
@recipients = "#{user.email}"
@from =
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