MailingList


 « Return to Thread: Upgrade path to Globalize2

Re: Upgrade path to Globalize2

by Sven Fuchs :: Rate this Message:

Reply to Author | View in Thread

On 23.11.2008, at 01:11, joost wrote:
> Ouch, this is what I feared. That's going to hurt.

Yeah, sorry for that :(

There was no way around it.

> Sorry for the noob question, but is it correct that Globalize2’s  
> Static backend works with yaml/rb files only, and does not store  
> translations in the database?

Yes.

> In which case I would have to unload the viewtranslations from the  
> db and store them in .yml files?

Unless you do or find a db backend for that, yes.

There's something on GitHub: http://github.com/yar/i18n_db and http://github.com/yar/i18n_db_admin

I can't tell about the status or quality though.

> Since I don't need any model translations at this point (and I can  
> live with simple pluralization) would it be correct to assume I can  
> just use the built-in I18n module instead?

Most probably, yes. What locales do you need to support? Anything fancy?




>
>
> Thanks again
>
> Op 23 nov 2008, om 00:55 heeft Sven Fuchs het volgende geschreven:
>
>> Hi Joost,
>>
>> there's none.
>>
>> Globalize2 uses the Rails I18n API which is not compatible with  
>> Globalize.
>>
>> That's the price we had to pay for "doing the right thing".
>>
>> That said, one could imagine a tool that helps converting existing  
>> views. If you're interested in trying something like that, you  
>> might want to register to the rails-i18n Google group and ask for  
>> ideas or help.
>>
>>
>> On 23.11.2008, at 00:10, joost wrote:
>>
>>> Hi all
>>>
>>> I'm a satisfied user of Globalize (version 1) but eager to upgrade  
>>> to Rails 2.2.
>>>
>>> What's the upgrade path from the old Globalize to Globalize2? I  
>>> have many view translations I wish to preserve.
>>>
>>> Thanks for any help
>>
>

 « Return to Thread: Upgrade path to Globalize2