similar to: link_to_unless_current & I18n.t

Displaying 20 results from an estimated 70000 matches similar to: "link_to_unless_current & I18n.t"

2008 Sep 30
0
Tabbed Menus - link_to_unless_current
This is more difficult than I originally anticipated. Any help in figuring this out is most appreciated: This is a code snippet from my header.rhtml (or erb) file that draws tabbed menus: <ul> <% [["Home", "/home" ], ["Positions", "/company" ], ["Leads",
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
2009 Feb 12
8
i18n with Rails 2.1
Hi. I''m currently using Rails 2.1. But i want to use i18n to internationalize my rails application. I''m trying to install rails 2.2 using: gem update rails but it gives me an error... Can anyone please suggest..how do I do this??? Thank You. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
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 =
2005 Jul 13
1
link_to_unless_current woes...
Hi ! I have the following in my navigation area: <%= link_to_unless_current image_tag(''events.gif'', :height => 34, :alt => ''Events''), :controller => ''events'' %> Works nice untill I am on the events page, in which case the generated code looks like: &lt;img alt=&quot;Programs&quot; height=&quot;34&quot;
2007 Jul 30
2
build a menu (li.selected)
Hello, when I try to create a menu I found the following limitation: the event li.selected does not work and, I am not being able to show an image when the menu option is selected in my CSS exists the following code: .menu li.selected { ... background: transparent url(/images/menu_selected.gif) 100% 1px no-repeat; ... } in file: ...\layouts\application.rhtml exists the following code: <div
2009 Jan 23
0
NameError: uninitialized constant I18n
Just installed the plugin as described on the link below. http://factore.ca/on-the-floor/11-introducing-has-foreign-language-an-easy-database-internationalization-plugin If i fire up my console and then: I18n.default_locale = "en" i got the error message: NameError: uninitialized constant I18n from
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 =
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
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 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
2006 Sep 05
1
Named routes and current_page? incompatibility
Hi, I have some named routes defined e.g. map.public and wish to use link_to_unless_current() to disable link. However, as I''ve seen from forum discussions and the API doc, the issue lies with the fact that the named_route_url() method generated by a named route does not default to only_path = true like url_for. Therefore, the current_page? within link_to_unless_current() will not
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
2003 Aug 06
2
L10N and i18n of R
Dear R-users of non-English speaking countires. Maybe a good news for those who want to use R in their local languages. Recently two Japanese, E. Nakama and M. Okada, succeeded in "making R speak Japanese". At present, R can handle Japanese (as well as other languages, I guess) character strings if one use consoles which can understand Japanese. Also P. Murrell kindly provided a
2003 Aug 06
2
L10N and i18n of R
Dear R-users of non-English speaking countires. Maybe a good news for those who want to use R in their local languages. Recently two Japanese, E. Nakama and M. Okada, succeeded in "making R speak Japanese". At present, R can handle Japanese (as well as other languages, I guess) character strings if one use consoles which can understand Japanese. Also P. Murrell kindly provided a
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 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",
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
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:
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