From heycoolfinenice at yahoo.de Sat Oct 4 06:12:28 2008 From: heycoolfinenice at yahoo.de (=?utf-8?Q?Bou_Dram=c3=a9?=) Date: Sat, 4 Oct 2008 12:12:28 +0200 Subject: [Rails I18n] building translation terminology by evaluating mouse event Message-ID: Hi, I would like to program a tool for translators. The tool should make it easy to build a translation terminology. The workflow is as follow: - highlight a word in a text through a mouse-click - and the highlighted word should be written into a file (e.g. in xml format) when the user performs a special shortcut (e.g. Ctrl + T + C). Is there a way to do this in ruby? It would also be helpful if I only know how to detect a higligted word in a text using ruby? Thanks in advance. Bou -- Posted via http://www.ruby-forum.com/. From andre at pelotascenter.com.br Sat Oct 4 08:00:42 2008 From: andre at pelotascenter.com.br (=?ISO-8859-1?Q?Andr=E9_Camargo?=) Date: Sat, 4 Oct 2008 09:00:42 -0300 Subject: [Rails I18n] building translation terminology by evaluating mouse event In-Reply-To: References: Message-ID: <884a25770810040500n62214263h2a1d475fded5466d@mail.gmail.com> Hello Bou, seems like you are looking for Click To Globalize (http://lucaguidi.com/pages/click-to-globalize) Good luck! On Sat, Oct 4, 2008 at 7:12 AM, Bou Dram? wrote: > > Hi, > > I would like to program a tool for translators. The tool should make it > easy to build a translation terminology. The workflow is as follow: > > - highlight a word in a text through a mouse-click > - and the highlighted word should be written into a file (e.g. in xml > format) when the user performs a special shortcut (e.g. Ctrl + T + C). > > Is there a way to do this in ruby? > > > It would also be helpful if I only know how to detect a higligted word > in a text using ruby? > > Thanks in advance. > > Bou > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > -- andr? ribeiro camargo -- gerente de tecnologia Cangu?uCenter :: cangucucenter.com.br PelotasCenter :: pelotascenter.com.br -- propriet?rio boa id?ia software livre :: boaideia.inf.br From heycoolfinenice at yahoo.de Mon Oct 6 15:43:24 2008 From: heycoolfinenice at yahoo.de (=?utf-8?Q?Bou_Dram=c3=a9?=) Date: Mon, 6 Oct 2008 21:43:24 +0200 Subject: [Rails I18n] building translation terminology by evaluating mouse eve In-Reply-To: <884a25770810040500n62214263h2a1d475fded5466d@mail.gmail.com> References: <884a25770810040500n62214263h2a1d475fded5466d@mail.gmail.com> Message-ID: <33764d5c3939d60d0b6d21999e2915f6@ruby-forum.com> Thanks Andr?, I will have a look at it. Bou Andr? Camargo wrote: > Hello Bou, seems like you are looking for Click To Globalize > (http://lucaguidi.com/pages/click-to-globalize) > > Good luck! > > On Sat, Oct 4, 2008 at 7:12 AM, Bou Dram? > wrote: >> Is there a way to do this in ruby? >> _______________________________________________ >> Railsi18n-discussion mailing list >> Railsi18n-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/railsi18n-discussion >> > > > > -- > andr? ribeiro camargo > -- > gerente de tecnologia > Cangu?uCenter :: cangucucenter.com.br > PelotasCenter :: pelotascenter.com.br > -- > propriet?rio > boa id?ia software livre :: boaideia.inf.br -- Posted via http://www.ruby-forum.com/. From r.s.a.vandomburg at nedforce.nl Mon Oct 27 14:34:14 2008 From: r.s.a.vandomburg at nedforce.nl (Roderick van Domburg) Date: Mon, 27 Oct 2008 19:34:14 +0100 Subject: [Rails I18n] Postgresql search In-Reply-To: References: Message-ID: Hi Nick, > What do you think is the best plugin to make a heavily-trafficked > postgre database searchable? UltraSphinx is fast and support PostgreSQL. That speed comes at some cost in terms of functionality. If you require real-time index updates then Ferret may be the only route to go. If your requirements allow and you can use PostgreSQL full-text indexing, perhaps combined with acts_as_tsearch [1], then that should be a great option too in terms of performance. [1] http://code.google.com/p/acts-as-tsearch/ -- Roderick van Domburg http://www.nedforce.nl -- Posted via http://www.ruby-forum.com/. From r.s.a.vandomburg at nedforce.nl Mon Oct 27 14:29:48 2008 From: r.s.a.vandomburg at nedforce.nl (Roderick van Domburg) Date: Mon, 27 Oct 2008 19:29:48 +0100 Subject: [Rails I18n] About I18n performance in rails 2.2 In-Reply-To: <9f3a719501db5d91b49eea09d1929d39@ruby-forum.com> References: <9f3a719501db5d91b49eea09d1929d39@ruby-forum.com> Message-ID: Hi Edgar, > What's faster(better, more performance)?: > 1. Put a I18n.load_translations in an initializer that loads all > available locales when the server starts. > 2. Put a I18n.load_translations in the ApplicationController that loads > only the locale proper to the current request. If you've got the RAM then #1 will be faster for sure. I'd recommend it, since RAM is cheap anyway. -- Roderick van Domburg http://www.nedforce.nl -- Posted via http://www.ruby-forum.com/.