From web.net at live.com Tue Apr 8 18:25:44 2008 From: web.net at live.com (Webnet Ruby) Date: Wed, 9 Apr 2008 00:25:44 +0200 Subject: [Rails I18n] Ajax and FireFox In-Reply-To: <63e8cd08cab1878607d2e2bc78611480@ruby-forum.com> References: <2c4d894dd386f202a1b8f155d1b2e68c@ruby-forum.com> <63e8cd08cab1878607d2e2bc78611480@ruby-forum.com> Message-ID: sayali wrote: > Naga harish Kanegolla wrote: >> Hi all, >> I have created a new application 1month ago. In that application i >> have a link Add New. This link is given using Ajax(<%= link_to_remote( >> 'Add New', >> :update => "abc", >> :url =>{ :controller=>"xyz",:action => >> :new}, >> :position => "after" ) %>) >> >> and also i gave <%= javascript_include_tag 'prototype' %> to define >> ajax. >> It worked good and i'm using that application since 1 month. >> >> But today when i click on add new i'm not getting the form. Its giving >> an error "Ajax not defined".Even its not working in my local >> machine.(all these things,i'm doing using FireFox). >> >> So i tried in IE. Its working properly. So what might be the problem? >> Why its not working in Firefox?? >> >> Thanks and Regards, >> Harish > > Could anyone find any solution to this? I am also facing similar issue, > where the javascript_include_tag "prototype" does not seem to work in > Firefox. > > Please let me know if anyone finds any solution.... I need it > desparately. > > Thanks a lot in advance. Hi, I ran into the same problem today, IE works fine for link_to_remote, but firefox is not! So what is the problem with firefox?? Thanks for any help! -- Posted via http://www.ruby-forum.com/. From xiaoquqi at 21cn.com Wed Apr 23 01:44:53 2008 From: xiaoquqi at 21cn.com (Ray Sun) Date: Wed, 23 Apr 2008 07:44:53 +0200 Subject: [Rails I18n] How to make stacked bar using open flash chart? Message-ID: <58e2f0fd0a2dc5425f200a5189b2560f@ruby-forum.com> As we see from http://www.pullmonkey.com/open-flash-chart/, open flash chart don't support stacked bar. Is there any way to work around with open flash chart or any other better idea about stacked bar using in RoR? Thanks. -- Posted via http://www.ruby-forum.com/. From jarkko at jlaine.net Wed Apr 23 03:19:53 2008 From: jarkko at jlaine.net (Jarkko Laine) Date: Wed, 23 Apr 2008 10:19:53 +0300 Subject: [Rails I18n] How to make stacked bar using open flash chart? In-Reply-To: <58e2f0fd0a2dc5425f200a5189b2560f@ruby-forum.com> References: <58e2f0fd0a2dc5425f200a5189b2560f@ruby-forum.com> Message-ID: On 23.4.2008, at 8.44, Ray Sun wrote: > As we see from http://www.pullmonkey.com/open-flash-chart/, open flash > chart don't support stacked bar. Is there any way to work around with > open flash chart or any other better idea about stacked bar using in > RoR? http://googlecharts.rubyforge.org/ http://nubyonrails.com/pages/gruff No flash, though, but I wouldn't say it's necessarily a bad thing. One thing, though: how does this relate to internationalization? You might get better response from the general Rails and Ruby mailing lists: http://groups.google.com/group/rubyonrails-talk http://www.ruby-lang.org/en/community/mailing-lists/ Cheers, //jarkko > > > Thanks. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2417 bytes Desc: not available Url : http://rubyforge.org/pipermail/railsi18n-discussion/attachments/20080423/3a01da4a/attachment.bin From xiaoquqi at 21cn.com Wed Apr 23 07:05:43 2008 From: xiaoquqi at 21cn.com (Ray Sun) Date: Wed, 23 Apr 2008 13:05:43 +0200 Subject: [Rails I18n] How to make stacked bar using open flash chart? In-Reply-To: References: <58e2f0fd0a2dc5425f200a5189b2560f@ruby-forum.com> Message-ID: <79415de9b3ffc92a41980667c3babfd1@ruby-forum.com> Thanks a lot, my dear friend. -- Posted via http://www.ruby-forum.com/. From vaughan at cyberdude.com Sun Apr 27 11:00:51 2008 From: vaughan at cyberdude.com (Vaughan Jackson) Date: Sun, 27 Apr 2008 17:00:51 +0200 Subject: [Rails I18n] Problems using Gettext 1.90.0 update_pofiles Message-ID: Hi, I'm a newbie to Ruby and Rails. I am following Sascha Ebach's tutorial on Gettext at http://manuals.rubyonrails.com/read/chapter/105#page298. This tutorial describes a step in which update_pofiles is used to generate the .pot and .po files from .rb and .rhtml files containing gettext calls. However, when I try to use this from rake, it only seems to partially succeed. I see this error: C:\Users\Vaughan\Ruby\test_app>rake updatepo --trace (in C:/Users/Vaughan/Ruby/test_app) ** Invoke updatepo (first_time) ** Execute updatepo po/testapp.pot rake aborted! No such file or directory - msgmerge po/testapp.pot tmp.pot c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.90.0/lib/gettext/utils.rb:51:in ``' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.90.0/lib/gettext/utils.rb:51:in `msgmer ge' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.90.0/lib/gettext/utils.rb:74:in `msgmer ge_all' c:/ruby/lib/ruby/gems/1.8/gems/gettext-1.90.0/lib/gettext/utils.rb:123:in `updat e_pofiles' C:/Users/Vaughan/Ruby/test_app/lib/tasks/updatepo.rake:14 c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_c hain' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_c hain' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exceptio n_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exceptio n_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 c:/ruby/bin/rake:19:in `load' c:/ruby/bin/rake:19 This produced a testapp.pot file, but no .po files in the relevant subdirectories. The content of the testapp.pot included: #: app/controllers/application.rb:6 msgid "blah" msgstr "" I tried changing utils.rb to call rmsgmerge instead of msgmerge, but this seemed to make things worse, as I ended up with a testapp.pot only with no msgid/msgstr pairs in it (the error message disappears). What am I doing wrong? Thanks, Vaughan. -- Posted via http://www.ruby-forum.com/. From allanlibunao at gmail.com Tue Apr 29 12:28:34 2008 From: allanlibunao at gmail.com (Allan L.) Date: Tue, 29 Apr 2008 18:28:34 +0200 Subject: [Rails I18n] no unicode in rails console In-Reply-To: References: Message-ID: Brad Carson wrote: > I'm unable to enter characters like ? (in Caf?) into script/console but > they work just fine in the regular terminal. I can't seem to find > anyone ever having an issue with this out there. > Would this help? - http://henrik.nyh.se/2008/03/irb-readline According to the blog author, "The irb (Interactive Ruby) that ships with OS X Leopard does not have readline support.... More importantly to me, you can't use non-ASCII characters like Swedish '?', '?' and '?'." I haven't tried his solution yet, but I think this is what you (and I) are probably looking for (since I'm unable to type Japanese words into irb). -- Posted via http://www.ruby-forum.com/. From max.lindholm at interoptechnologies.com Tue Apr 29 13:49:58 2008 From: max.lindholm at interoptechnologies.com (Max Lindholm) Date: Tue, 29 Apr 2008 19:49:58 +0200 Subject: [Rails I18n] Problems using Gettext 1.90.0 update_pofiles In-Reply-To: References: Message-ID: Make the language-specific subdirectories in /po by hand, then copy the .pot file in to each of the folders, renaming it to .po in the process. Now, running updatepo will update the template as well as the .po files automatically. This is how I've always done it, as I don't believe that the rake task creates the directories and copies the files for you. Hope this helps, Max -- Posted via http://www.ruby-forum.com/. From max.lindholm at interoptechnologies.com Tue Apr 29 13:56:47 2008 From: max.lindholm at interoptechnologies.com (Max Lindholm) Date: Tue, 29 Apr 2008 19:56:47 +0200 Subject: [Rails I18n] Gettext Validation/Error localization problems Message-ID: <20fece352d251262473762a307e8116c@ruby-forum.com> Is there a way to turn off ruby-gettext's feature that localizes the default validation/error messages in models? If I use gettext in my application, it breaks almost all of my unit tests. From http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html?ruby-gettext-howto-rails#Models : "Default validation/error messages are also localized automatically." -- Posted via http://www.ruby-forum.com/. From max.lindholm at interoptechnologies.com Wed Apr 30 13:27:29 2008 From: max.lindholm at interoptechnologies.com (Max Lindholm) Date: Wed, 30 Apr 2008 19:27:29 +0200 Subject: [Rails I18n] Gettext Validation/Error localization problems In-Reply-To: <20fece352d251262473762a307e8116c@ruby-forum.com> References: <20fece352d251262473762a307e8116c@ruby-forum.com> Message-ID: <89c9fb9d879cab7b3c7304c9f2aaa8d5@ruby-forum.com> I've managed to fix the problems for the time being. I've had to make the following change on the majority of the assertions in my unit tests, but it got the job done: From: assert @cp.errors[:package] == "can't be blank" To: assert @cp.errors[:package] == "%{fn} can't be blank" -- Posted via http://www.ruby-forum.com/.