Dhruva Sagar wrote:Do you think this is a bad idea?
> Yes it is better to store the multilanguage strings in the .yml files.
> Why you ask, well are you going to have all your record entries repeat
> one
> for each language you intent to support ?? Do you think that would be a
> good
> idea ??
>Not necessarily. It would be quite feasible to use the DB.
> The database should have single values which the .yml files will
> translate
> into different languages depending on the locale settings.
Then don't make statements like this till you *are* sure!
> I am not very
> sure regarding the loading of the different .yml files, that is
> something
> even I would like to know,
> but from my experience / knowledge I don'tWrong again. The whole point of i18n is to present your app
> think
> that is the case since locale change requires me to restart the app.
>
multilingually without restarting.
Now, it seems to me that an advantage of text files over a DB is that
you can hand them straight to a skilled translator...
But anyway, Rails i18n pretty much sucks out of the box. Use
fast_gettext.
> Thanks & Regards,
> Dhruva Sagar.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dhruva Sagar wrote:Wrong. Internationalized strings have nothing to do with searching for
> Thanks & Regards,
> Dhruva Sagar.
>
>
>
> On Mon, Apr 26, 2010 at 17:39, Marnen Laibow-Koser
> <li...@ruby-forum.com>wrote:
>
>> Dhruva Sagar wrote:
>> > Yes it is better to store the multilanguage strings in the .yml files.
>> > Why you ask, well are you going to have all your record entries repeat
>> > one
>> > for each language you intent to support ?? Do you think that would be a
>> > good
>> > idea ??
>>
>> Do you think this is a bad idea?
>>
> Yes I think it is a bad idea.
> First it is a bad database design which will lead to unnecessary
> complications while searching for data, also for indexing.
data.
Wrong again. It may well be faster to use the DB.
> If I have to support somewhere around 5-10 different languages, I really
> think having a 5-10 .yml files for translations will be a lot more
> performant compared to a 5-10 times larger database.
But you are probably wrong. If you have a logical reason to think this,
>
>>
>>
> >
>> > The database should have single values which the .yml files will
>> > translate
>> > into different languages depending on the locale settings.
>>
>> Not necessarily. It would be quite feasible to use the DB.
>>
>> I agree, but as I was saying I don't consider it to be a good idea. However
> I do agree it could be in some specific scenarios, but in general for a
> web
> application I do not think it is.
I'd like to hear it.
However, the fact that you were wrong about restarting the app to switch
locales makes me think you're not really qualified to have an opinion
here.
[...]
>> Now, it seems to me that an advantage of text files over a DB is thatYou're welcome!
>> you can hand them straight to a skilled translator...
>>
>> But anyway, Rails i18n pretty much sucks out of the box. Use
>> fast_gettext.
>>
> Thanks for this information.
>
>>
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.