search for: i18n

Displaying 20 results from an estimated 645 matches for "i18n".

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 (a...
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....
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...
2003 May 26
1
portupgrade issue
...cancount, yet nothing works. Last time I ran portsdb -Uu, this is wat it produced: zircon# portsdb -Uu Updating the ports index ... zh-bg5pdf-1.0.0:"/usr/ports/print/pdflib3" non-existent -- dependency list incomplete "Makefile", line 17: Could not find /usr/ports/chinese/kde2-i18n/../../misc/kde2-i18n/Makefile: malformed entry: "Makefile", line 17: Could not find /usr/ports/chinese/kde2-i18n/../../misc/kde2-i18n/Makefile make: fatal errors encountered -- cannot continue: malformed entry: make: fatal errors encountered -- cannot continue *** Error code 1: malformed...
2012 Dec 15
3
Cannot build custom locale with utf-8 charset
I am trying, without success, to compile a custom locale for the utf-8 character set. I have issued this command: localedef --no-archive -f UTF-8 -i /usr/share/i18n/locales/en_CA at yyyy-mmm-dd en_CA at yyyy-mmm-dd.utf8 which produces the requisite files without reporting an error but which none-the-less insists on using the iso-8859-1 charset: LC_ALL=en_CA at yyyy-mm-dd locale charmap ISO-8859-1 So, I tried this variant: localedef --no-archive -f /usr/sha...
2013 Aug 28
1
State of Unicode collation support in FreeBSD?
[crossposted to -stable and -i18n, replies directed to -stable] Hi everyone, could someone point me to infos regarding Unicode collation support in FreeBSD? All I could find was https://wiki.freebsd.org/KonradJankowski/Collation but that page has not been changed in more than two years. Looking at sources of -current it doesn'...
2010 Aug 01
3
The {{key}} interpolation syntax in I18n messages is deprecated...
...l, 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 following line in my model --- when I do not add this error everything is fine: errors.add_to_base("Uploaded file must be present") if !self.uploaded_file_content Also tried this but same result: er...
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 (ht...
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 causing the following dependency check failure. Is it possible/desireable to overri...
2011 May 20
5
views w locale default template
[RAILS3] I hesitate on how handling the locale view templates to default to one language only .. sending admin emails will go only to one locale ''en_GB'' should I set it up into the template name and set I18n.locale to ''en_GB'' membership_renew.en_GB.html.erb OR whatever locale is used , if I have : membership_renew.html it will be the default ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro...
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...
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 homep...
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...
2009 Oct 06
8
How do I access a child table/model from the parent in sql s
...d Description. Manufacturer has_many :descriptions Description belongs_to :manufacturer In the manufacturers model I have the following method to look up all of the manufacturers for the given locale. def self.find_all find(:all, :order => "name", :conditions => {:locale => I18n.locale}) end This produces the following error Mysql::Error: Unknown ''manufacturers.locale'' in ''where clause'': SELECT * FROM ''manufacturers'' where (''manufacturers''.''locale'' = ''en'') how can...
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/6368105...
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 config/application.rb: config.i18n.default_locale = :zh It can work, but not by ''HTTP_ACCEPT_LANGUAGE''.. I did the...
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(coll...
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_so...
2013 Jan 21
0
Custom locale, LC_TYPE and urxvt
...ow opened without encountering the locale error message I am therefore constrained to use some variant of the following: LC_TYPE=en_US.UTF-8 urxvt& I would like to set LC_TYPE to a different value than LANG. However, based on experiment it seems that the only locale setting in /etc/sysconfig/i18n that CentOS-6.3 responds to is LANG. I have looked at /etc/profile.d/lang.sh but my knowledge of terminal settings and system variables is insufficient to make much sense out of it. if [ -n "$LANG" ]; then saved_lang="$LANG" [ -f "$HOME/.i18n" ] && ....