From bschmeil at autoscout24.com Thu Jun 1 10:22:12 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Thu, 1 Jun 2006 16:22:12 +0200 Subject: [Rails I18n] please register this list with gmane.org In-Reply-To: References: Message-ID: <20a0ebaec0c31f09e45de5d33105f799@ruby-forum.com> Should be set up at http://dir.gmane.org/gmane.comp.lang.ruby.rails.i18n - Bernd -- Posted via http://www.ruby-forum.com/. From nic at nickcoyne.com Thu Jun 1 15:04:09 2006 From: nic at nickcoyne.com (Nick Coyne) Date: Thu, 1 Jun 2006 21:04:09 +0200 Subject: [Rails I18n] Are GLoc or Globalize a good fit for this... Message-ID: <8d7df2c4bef1273c2d1d3fdcad5296c7@ruby-forum.com> We are building a site which offers different product mixes depending on where in the world you live, eg there are products applicable to the USA, Canada, Europe and Asia. So visitors to the site must choose their region when they arrive at the site. Then we want to offer them choices of language, no matter what the region. So you could choose French even if you live in Japan, or Japanese even if you're in the US. My initial db schema simply has a resource table which stores multiple versions of all text from my product and other tables. So my product table would simply reference the resource table for the product name, for example. Language could be stored in a session variable or in the URL. I don't see any problems with this approach for the front-end stuff, but I'm worried that Rails may not be able to autogenerate all my back-end scaffolding. Do either of GLoc or Globalize assist with what I'm doing? Could anyone share their experiences. Thanks Nick. -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Fri Jun 2 04:20:31 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 2 Jun 2006 10:20:31 +0200 Subject: [Rails I18n] Are GLoc or Globalize a good fit for this... In-Reply-To: <8d7df2c4bef1273c2d1d3fdcad5296c7@ruby-forum.com> References: <8d7df2c4bef1273c2d1d3fdcad5296c7@ruby-forum.com> Message-ID: <3a46c9c7a11fdefd4c79387f4f8c392a@ruby-forum.com> > My initial db schema simply has a resource table which stores multiple > versions of all text from my product and other tables. So my product > table would simply reference the resource table for the product name, > for example. Language could be stored in a session variable or in the > URL. Globalize has *one* translation table. You're handling the different languages by switching the locale. You have to specify which model attributes you want to have translated. The original models have the default language as an attribute. Didn't play with fall-back scenarios (in case you don't provide a translation), but I guess that the default language is used for that. Since the translation all go into a generic attribute table (or however you call that) I'm not sure sure about performace impact. Don't know if caching mechanism come into play. Didn't take a look at GLoc yet. But since the authors of both projects reading this list, they can answer more precise. -- Posted via http://www.ruby-forum.com/. From leister at gmx.de Mon Jun 5 00:08:54 2006 From: leister at gmx.de (Guido) Date: Mon, 5 Jun 2006 06:08:54 +0200 Subject: [Rails I18n] Problem with globalize In-Reply-To: <884a25770605290843j766c014eo16e8297a2be93c84@mail.gmail.com> References: <0ea02ce7f24b7c274acaf2ace5087a5c@ruby-forum.com> <884a25770605290843j766c014eo16e8297a2be93c84@mail.gmail.com> Message-ID: <608be03558b0dcd8c55dfbb2bbe1663b@ruby-forum.com> Andr? Camargo wrote: > hello! > > put: > > include Globalize > > into config/environment.rb > I am having the same problem. But Globalize is allready include in config/environment.rb - with no luck: config/environment.rb: [...] include Globalize Locale.set_base_language 'en-US' Locale.set 'en-US' Any hints for me? Thanks for help, Guido -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Fri Jun 9 04:38:40 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 9 Jun 2006 10:38:40 +0200 Subject: [Rails I18n] Globalize mailing list: experiences article by Sven Fuchs Message-ID: Since not everyone might be subscriped to the Globalize list and I still don't know if there's an archive: Sven Fuchs wrote an article about his experiences setting up / using Globalize -- begin -- After having got totally thrilled about Globalize I've written down this report about my first experiences: http://www.artweb-design.de/articles/2006/06/09/real-fun-get-on-rails-with-globalize I'm probably going to expand that by a follow up once I've collected some more insights. Appreciate any feedback/review/criticism of course. Also, do you think this could/should be linked to from the Globalize wiki? I've had read both of the "example" and "howto" pages over there, but being a Rails newbie I found them a bit sparse (?) (no offense! That's just been my own dump noob perpective :) Thanks in advance! Oh, btw ... did I mention that I'm totally thrilled about Globalize? Keep up that great work. I love it :) -- end -- to which Josh Harvey replied -- begin -- Thanks a million, Sven! Your writeup is great, and exactly the kind of thing Globalize needs. Please do link it in a prominent place in the wiki. Maybe we should add a "docs" or "writeups" page; I'll look into that. A few comments: The preferred way to setup a Globalize app now is with Jeremy Voorhis's "rake globalize:setup". So, instead of "script/generate globalize tiny" and "rake migrate", just do "rake globalize:setup". You can see all the rake tasks by doing "rake -T" in your app's home directory. You also don't have to hardcode all the translations for your code. If Globalize sees a word that hasn't been translated yet, it will write a NULL record to the database. You can then write a rails controller which will look for all NULL records and let your translate them. You may want to change the section where you mention <%= @article.title.t -%>. As you mentioned later, the preferred way of doing this is with the "translates" directive in the ActiveRecord model, and <%= @article.title %> in the view. Behind the scenes, Globalize treats this very differently, it's not just a matter of leaving off the .t, so <%= @article.title.t %> might give new users the wrong idea. Of course, you would have know all this if there had already been a good writeup like yours available :) -- end -- and Sven answered -- begin -- Thanks, Joshua, for the friendly words :) and comments! I'll go and update my post asap of course. At the very least I need to mount up some warning signs. As for the NULL values ... *LOL*. I can't believe that I've actually noticed these rows, wondered about what strange kind of stuff's happening and later on even manually inserted extra copies of these with my translations added. Ok, got it. *slaps head* -- end -- -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Tue Jun 13 05:54:23 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Tue, 13 Jun 2006 11:54:23 +0200 Subject: [Rails I18n] Globalize mailing list: experiences article by Sven Fuchs #2 In-Reply-To: References: Message-ID: Sven updated his article... -- begin -- Hi Joshua, hi all, ok, I've tried hard to correct the flaws in my first write-up, but I felt that my actual experience and good recommendations to a newbie really are two things that don't mix well. ;) So I rewrote the whole thing: http://www.artweb-design.de/articles/2006/06/13/real-fun-get-on-rails-with-globalize-take-2 I hope I've managed to straighten the flaws out. Otherwise please correct me again. I think I'm pretty snow-blind meanwhile. I'd very much appreciate both tips/reviews regarding the content as well as regarding my English and phrasing! I'd then link that article to the wiki. There's been some sudden positive feedback. :) Thanks in advance! -- end -- -- Posted via http://www.ruby-forum.com/. From ruby-forum.com at dewet.org Tue Jun 13 06:02:58 2006 From: ruby-forum.com at dewet.org (Dewet Diener) Date: Tue, 13 Jun 2006 12:02:58 +0200 Subject: [Rails I18n] Problem with globalize In-Reply-To: <608be03558b0dcd8c55dfbb2bbe1663b@ruby-forum.com> References: <0ea02ce7f24b7c274acaf2ace5087a5c@ruby-forum.com> <884a25770605290843j766c014eo16e8297a2be93c84@mail.gmail.com> <608be03558b0dcd8c55dfbb2bbe1663b@ruby-forum.com> Message-ID: Guido wrote: > config/environment.rb: > > [...] > include Globalize > Locale.set_base_language 'en-US' > Locale.set 'en-US' I also had to restart WEBrick before it worked for me. d -- Posted via http://www.ruby-forum.com/. From jagadeeswaran_krishnan at satyam.com Tue Jun 13 06:29:11 2006 From: jagadeeswaran_krishnan at satyam.com (jagadeesh sridhar) Date: Tue, 13 Jun 2006 12:29:11 +0200 Subject: [Rails I18n] i18n Message-ID: Hi We are using Cocoon 2.1(Web publishing Framework) We have some problem in getting the i18n content in pages. If we hardcode the key value like for instance, home then the translated value is getting printed, But if we give the key from xsl variable, it?s not coming. What can be done to get i18n? Please give suggestion so that we can move ahead. -- Posted via http://www.ruby-forum.com/. From jec at rptec.ch Wed Jun 14 03:27:12 2006 From: jec at rptec.ch (Jean-Eric Cuendet) Date: Wed, 14 Jun 2006 09:27:12 +0200 Subject: [Rails I18n] Installing GLoc Message-ID: <448FBA50.9080704@rptec.ch> Hi, I have read the "Getting started" part of GLoc in the RDoc but it lacks a part: How to install the plugin? ruby script/plugin install GLoc doesn't work ruby script/plugin install doesn't work either (I use CVS, not SVN it says) I have downloaded the .tar.gz 1.1 distrib but I don't know how t install it... Thanks to help -jec -- Best regards / Salutations. Jean-Eric Cuendet Senior developer / Technical support Riskpro Technologies SA Av. Louis-Ruchonnet 2 CH-1003 Lausanne Switzerland Direct : +41 21 637 0123 Principal : +41 21 637 0110 Fax : +41 21 637 0111 Skype : jec.rptec Web : http://www.rptec.ch -------------------------------------------------------- From daesan at gmail.com Wed Jun 14 06:31:17 2006 From: daesan at gmail.com (Dae San Hwang) Date: Wed, 14 Jun 2006 19:31:17 +0900 Subject: [Rails I18n] yet another unicode string hacks Message-ID: <84ABE817-A534-4F3F-8306-B3AB0AAFD6EF@gmail.com> Hi everyone. I'm implementing yet another unicode string hacks. I'm trying to rewire String class so that it will act like Ruby 2.0 String class. (see http://redhanded.hobix.com/inspect/futurismUnicodeInRuby.html) String literals will act as byte buffers, just as they used to. However, when creating string object by using constructor, you can optionally specify the encoding of the input string. String.new("\352\260\200", "utf-8") Default value of the encoding is nil if $KCODE is not set or set to "none". Default encoding is 'utf-8' if $KCODE == 'u'. If encoding is nil, string objects will act just like old ruby strings we all know and love. If encoding is set to a specific charset, string's instance methods will act more reasonably according to its encoding. Following is the summary of what I'm thinking: String#encoding gives character encoding name (e.g. "utf-8") String#[index] returns character string if encoding is set. If the encoding is not set, it returns fixnum as it used to. String#[] is always encoding aware if encoding is set. String#slice is always byte buffer operation regardless of the encoding. String#size always returns the number of bytes in the string. String#length returns the number of characters in the string according to the encoding specified. If the encoding is not set, it's same as String#size. String#+ will return utf-8 encoded string if two string's encoding does not match. *, <<, <=>, ==, =~, capitalize, casecmp, center, chomp, chop, count, delete, downcase, each, each_line, eql?, gsub, match, succ, scan, split, strip, sub, upcase, upto will be all encoding aware if encoding is set. The reason I'm differentiating between 'size' and 'length' is because some libraries (like rails) depend on them returning the byte size of the string. Maybe we can establish a customs that 'size' for byte size and 'length' for the number of characters. Same reasoning goes for '[]' and 'slice'. For now, it will support only utf-8 encoding as ruby's regexp doesn't seem to support encodings other than ascii and utf-8. (I could use iconv to convert encoding internally to utf-8 for each method call, but at the moment, I think it's probably too costly and not worth it.) I would love to get some feedback on this. I really want to create something that I can depend on until Ruby 2.0 releases. Thanks! Daesan Dae San Hwang daesan at gmail.com From japgolly at gmail.com Wed Jun 14 08:25:04 2006 From: japgolly at gmail.com (David Barri) Date: Wed, 14 Jun 2006 22:25:04 +1000 Subject: [Rails I18n] Are GLoc or Globalize a good fit for this... Message-ID: Hi. Before I answer this question I'll let everybody know in advance that 1) I'm actually the author of GLoc. 2) Although I've looked at Globalize a few times I've never used it. My answer might be a little biased but at least you know beforehand :) I think, the answer to your question depends on whether or not your actual model data will be in different languages. If not then I recommend GLoc because although it's very easy to setup and maintain, and also fast and flexible. However I remember that with Globalize you can just put "translates :name, description" or something into your model. GLoc doesn't do that. (Although, FYI it will do it or maybe something similar in the future, still haven't decided what I want to do and how I want to do it). Either way, both are good products. To be honest, Globalize will probably be easier for you when you get stuck, because it has a larger user base and there are more tutorials etc on it. Good luck either way dude. From japgolly at gmail.com Wed Jun 14 08:25:19 2006 From: japgolly at gmail.com (David Barri) Date: Wed, 14 Jun 2006 22:25:19 +1000 Subject: [Rails I18n] Installing GLoc Message-ID: Hi. Thanks for pointing that out to me. I complete forgot about the script/plugin script cos I never use it. To install the zip or tar.gz just extract it in to the vendor/plugins directory so that all the files are in vendor/plugins/gloc/ I'll make sure that it is installable via the script/plugin script before the next release. Thanks :) From me at julik.nl Wed Jun 14 20:48:22 2006 From: me at julik.nl (Julian Tarkhanov) Date: Thu, 15 Jun 2006 02:48:22 +0200 Subject: [Rails I18n] yet another unicode string hacks In-Reply-To: <84ABE817-A534-4F3F-8306-B3AB0AAFD6EF@gmail.com> References: <84ABE817-A534-4F3F-8306-B3AB0AAFD6EF@gmail.com> Message-ID: <5e97819d03a5b93c0a59ea77e76ef90f@ruby-forum.com> Dae San Hwang wrote: > String.new("\352\260\200", "utf-8") This is a dead-end approach, alas. Not a single library in the world will tell Strings to magically become UTF-8. I implemented a different solution to that using an accessor that gives you a character-friendly proxy, in the newest version of mu plugin. Feels somewhat nicer to me. http://julik.nl/code/unicode-hacks/index.html What you are trying to achieve is subclassing - you can see where it leads here: http://thraxil.org/users/anders/posts/2005/11/01/unicodification/ and here http://thraxil.org/users/anders/posts/2005/11/01/unicodification/ exactly because "some flag does not get set somewhere" and such. -- Posted via http://www.ruby-forum.com/. From warrens at actcom.net.il Wed Jun 14 12:06:09 2006 From: warrens at actcom.net.il (Warren Seltzer) Date: Wed, 14 Jun 2006 19:06:09 +0300 Subject: [Rails I18n] Best for Hebrew? Message-ID: <002f01c68fcc$787dab80$23cd19ac@Whatever> I have potential customers for Hebrew language versions of web sites. Actually, Arabic is also a possibility. Which of the major ruby-rails i18n packages is best or worst at right-to-left languages? Warren Fred -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/railsi18n-discussion/attachments/20060614/21d0ac4e/attachment.htm From bschmeil at autoscout24.com Fri Jun 16 09:12:54 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 16 Jun 2006 15:12:54 +0200 Subject: [Rails I18n] Globalize list: Sketch of new globalize tutorial by szymek Message-ID: Again a pbly. interesting post by "szymek" to the globalize list (which still has no archive as far as I know): -- begin -- Hi! I've created a sketch of a tutorial about how to use globalize to translate an existing rails app. You can find it here: http://www.globalize-rails.org/wiki/pages/Examplary+application. I couldn't find complete globalize tutorial anywhere, so i decided to create one and hope that you will help :) As English is not my native language (i'm Polish), i made lots of mistakes there and i *strongly* encourage everyone to correct them. I'm not sure if even the title of the page is correct :) I'm also not really sure if i should write "Now we have to create..." or "Now you have to create..." or just "Create..." so unfortunately you can find mix of all these forms. I'm Ruby/Rails newbie, so the technical part can also have lots of mistakes. Feel free to correct/add/remove/improve anything you think will make this tutorial better. I have few questions and propositions for the tutorial: 1. How to put url in
tags? Textile automatically adds link. 2. Could you guys take a look at the built_in column problem? I could remove then the whole *WARNING* part. I'm not sure if only i have this problem. 3. There's a problem with routes in the tutorial. If i go to "localhost:3000/admin/" i get "localhost:3000/en/admin/admin/products". If i specify locale in the route for 'admin' it works correctly so i assume there's something wrong in my :set_locale method in application_controller.rb. 4. How to display a single object in 2 languages on a single page? Do i need to get both versions from the database? Currently i'm using @instance_variable.switch_language method provided by globalize_extension plugin, which was posted by Olivier Amblet on this mailing list. The plugin is great, but i'm not sure if there shouldn't be globalize only solution in the tutorial. Maybe this plugin could be integrated with globalize? Also i'm not sure if Olivier Amblet is the only author of this plugin. Olivier, if you want feel free to change it. 5. Is it possible to upload files (globalize_extension plugin) and pictures to the globalize wiki server? 6. It would be nice to say something about adding/using pluralizations, and localization of dates/currency (that's why i've added created/updated_on and price fields to product model). 7. Add a chapter about translating error messages (maybe they could be built-in like dates?) 8. Add short introduction. 9. Upload non-globalize and globalized versions of the app? It could be helpful as the reference and probably could clear up many inaccuracies. 10. Correct the styling (i.e. add different background color for notes, change font, maybe move it to the right?) -- end -- -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Fri Jun 16 09:20:03 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 16 Jun 2006 15:20:03 +0200 Subject: [Rails I18n] Globalize Mailing List Archives? In-Reply-To: <3e41f3d6cec9ec07d8da408cd6fe60a7@ruby-forum.com> References: <35d55b1b7bd3ab98d91760f1f130ae7e@ruby-forum.com> <6368fd2f122df99c51e5a1230a4f21e7@ruby-forum.com> <3e41f3d6cec9ec07d8da408cd6fe60a7@ruby-forum.com> Message-ID: Kasper Weibel wrote: > http://rubyforge.org/pipermail/railsi18n-discussion/ This is actually THIS list. I was asking about the *Globalize* mailing list *archive*. - Bernd -- Posted via http://www.ruby-forum.com/. From roland at rv-net.de Wed Jun 21 08:38:52 2006 From: roland at rv-net.de (roland at rv-net.de) Date: Wed, 21 Jun 2006 14:38:52 +0200 Subject: [Rails I18n] [PATCH] to Globalize::Currency Message-ID: <200606211438.53111.roland@rv-net.de> Hi there, this a small patch fixing Globalize::Currency::parse, to not only parse US like currency strings. It uses now the Locale.active settings. hadn't time to run any tests, so status is: 'it works for me' :) Greetings, Roland [i'm not subscribed to this list, so please cc me] -------------- next part -------------- A non-text attachment was scrubbed... Name: currency.rb.diff Type: text/x-diff Size: 699 bytes Desc: not available Url : http://rubyforge.org/pipermail/railsi18n-discussion/attachments/20060621/07d93ebb/attachment.bin From dekads at hotmail.com Thu Jun 22 04:42:33 2006 From: dekads at hotmail.com (=?utf-8?Q?=e7=8e=9b=e9=9b=85?=) Date: Thu, 22 Jun 2006 10:42:33 +0200 Subject: [Rails I18n] sdgasdg Message-ID: <4210e40c8440a435ea728c116bb7b9e2@ruby-forum.com> ??????? -- Posted via http://www.ruby-forum.com/. From dekads at hotmail.com Thu Jun 22 04:42:58 2006 From: dekads at hotmail.com (=?utf-8?Q?=e7=8e=9b=e9=9b=85?=) Date: Thu, 22 Jun 2006 10:42:58 +0200 Subject: [Rails I18n] =?utf-8?b?c2RnYXNkZyDmgJ3ogIM=?= In-Reply-To: <4210e40c8440a435ea728c116bb7b9e2@ruby-forum.com> References: <4210e40c8440a435ea728c116bb7b9e2@ruby-forum.com> Message-ID: ?? wrote: > ??????? -- Posted via http://www.ruby-forum.com/. From www-data at andreas-s.net Thu Jun 22 04:44:04 2006 From: www-data at andreas-s.net (www-data) Date: Thu, 22 Jun 2006 10:44:04 +0200 Subject: [Rails I18n] sdgasdg In-Reply-To: <4210e40c8440a435ea728c116bb7b9e2@ruby-forum.com> References: <4210e40c8440a435ea728c116bb7b9e2@ruby-forum.com> Message-ID: <115060cfc24d2df9967d40960f5fdc2a@ruby-forum.com> ?????? wrote: > ????????????????????? ???????????? -- Posted via http://www.ruby-forum.com/. From anton at kovalyov.net Fri Jun 23 19:40:17 2006 From: anton at kovalyov.net (Anton Kovalyov) Date: Sat, 24 Jun 2006 04:40:17 +0500 Subject: [Rails I18n] Are there any performance issues with Globalize? Message-ID: <865AD383-17FA-4AEC-926F-2ED0D95698EC@kovalyov.net> Hey. Usually, I don't bother myself with performance questions before I create a first version and collect some information about my visitors but I'm just curious about the performance issues with Globalize. I'm going to create one multilingual webapp and I want to use globalize plugin in it. I know that it stores all translated stuff in one table and that's why I want to ask if there any *big* performance issues? I mean is there something like "omg, we have only 2 visitors and it's already slow as turtle"? I'm pretty sure that everything is ok, but nobody will die if I ask, right? :) -- Anton Kovalyov, web developer http://anton.kovalyov.net From fafa at asfas.it Sat Jun 24 07:31:22 2006 From: fafa at asfas.it (afaa) Date: Sat, 24 Jun 2006 13:31:22 +0200 Subject: [Rails I18n] Are GLoc or Globalize a good fit for this... In-Reply-To: References: Message-ID: <1cf8260aea09f202d3e9bce24120cc44@ruby-forum.com> adsadafF -- Posted via http://www.ruby-forum.com/. From mattias at oncotype.dk Tue Jun 27 13:34:35 2006 From: mattias at oncotype.dk (Mattias Bud) Date: Tue, 27 Jun 2006 19:34:35 +0200 Subject: [Rails I18n] Globalize and update_attributes returns nil Message-ID: After installing and configuring of globalize I started testing on a small app. The problem I now have is that both Model.new and Model.update_attributes return nil instead of true on a successful create or update. Any idears on why this is? -- Posted via http://www.ruby-forum.com/. From mattias at oncotype.dk Tue Jun 27 14:58:43 2006 From: mattias at oncotype.dk (Mattias Bud) Date: Tue, 27 Jun 2006 20:58:43 +0200 Subject: [Rails I18n] Globalize and update_attributes returns nil In-Reply-To: References: Message-ID: <3d7210b00f9d19a76349f74896439ed0@ruby-forum.com> Mattias Bud wrote: > After installing and configuring of globalize I started testing on a > small app. The problem I now have is that both Model.new and > Model.update_attributes return nil instead of true on a successful > create or update. > > Any idears on why this is? My misstake - I used the old version without support for raisl 1.1 which I ran. Installing the version that supports 1.1 solved the problem. -- Posted via http://www.ruby-forum.com/. From mattias at oncotype.dk Tue Jun 27 14:59:12 2006 From: mattias at oncotype.dk (Mattias Bud) Date: Tue, 27 Jun 2006 20:59:12 +0200 Subject: [Rails I18n] Globalize and update_attributes returns nil In-Reply-To: References: Message-ID: Mattias Bud wrote: > After installing and configuring of globalize I started testing on a > small app. The problem I now have is that both Model.new and > Model.update_attributes return nil instead of true on a successful > create or update. > > Any idears on why this is? My misstake - I used the old version without support for raisl 1.1 which I ran. Installing the version that supports 1.1 solved the problem. script/plugin install http://svn.globalize-rails.org/svn/globalize/globalize/branches/for-1.1 -- Posted via http://www.ruby-forum.com/. From josealvaro.camacho at epfl.ch Wed Jun 28 16:28:09 2006 From: josealvaro.camacho at epfl.ch (camacho) Date: Wed, 28 Jun 2006 22:28:09 +0200 Subject: [Rails I18n] another mysql error with Globalize Message-ID: <9f4346ddc4e45e77cde9d26a50b6092f@ruby-forum.com> Trying to install Globalize i got this error : D:...>rake globalize:setup (in D:...) rake aborted! Mysql::Error: #23000Duplicate entry '1' for key 1: INSERT INTO globalize_countri es (`id`, `code`, `english_name`, `date_format`, `currency_format`, `currency_co de`, `thousands_sep`, `decimal_sep`, `currency_decimal_sep`, `number_grouping_sc heme`) VALUES ('1', 'AD', 'Andorra', NULL, NULL, 'EUR', NULL, NULL, NULL, 'weste rn') can somebody help me?? thanks -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Wed Jun 28 16:37:27 2006 From: joshmh at gmail.com (Joshua Harvey) Date: Wed, 28 Jun 2006 23:37:27 +0300 Subject: [Rails I18n] another mysql error with Globalize In-Reply-To: <9f4346ddc4e45e77cde9d26a50b6092f@ruby-forum.com> References: <9f4346ddc4e45e77cde9d26a50b6092f@ruby-forum.com> Message-ID: <3527dd260606281337j7fb5d798qdf0867076810a0e5@mail.gmail.com> Is it possible your countries table is already populated? --- Josh On 6/28/06, camacho wrote: > Trying to install Globalize i got this error : > > > D:...>rake globalize:setup > (in D:...) > rake aborted! > Mysql::Error: #23000Duplicate entry '1' for key 1: INSERT INTO > globalize_countri > es (`id`, `code`, `english_name`, `date_format`, `currency_format`, > `currency_co > de`, `thousands_sep`, `decimal_sep`, `currency_decimal_sep`, > `number_grouping_sc > heme`) VALUES ('1', 'AD', 'Andorra', NULL, NULL, 'EUR', NULL, NULL, > NULL, 'weste > rn') > > can somebody help me?? > > thanks > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion >