Forum OpenACS Q&A: I18n

Collapse
1: I18n
Posted by Iuri Sampaio on
Is the i18n package possible to have instances.

I have the same structre of message on two subsites but i need them without any relations.

http://www.myybiz.net/
http://www.myybiz.net/chapters/argentina

So, do i need to create individual messages to each subsite? This is gonna be huge !!!

It would be great to have i98n working as instances like news, calendar, edit-this-page are.

Collapse
2: Re: I18n (response to 1)
Posted by Rainer Hahnekamp on
Hi, I don't think that this works.

A possible workaround could be that you create an own locale for each subsite and each locale:
So for subsite S1, S2 and supported locales en, de you create the following new locales:
en_S1, en_S2, de_S1, de_S2.
Then you copy the existing message keys of the "master locales" en and de to their appropriate children and edit them individually.
In the subsite you can now set the supported locale manually.

I don't know if this is the best solution or what problem you can run into but it can be done very quickly. Perhaps somebody can post a better way.

Collapse
3: Re: Re: I18n (response to 2)
Posted by Iuri Sampaio on
mmm....
Interesting. How do i install a new locale for each subsite if locale doesn't work like a package?
Have you done that before? Can you show do i do that?
Collapse
4: Re: Re: Re: I18n (response to 3)
Posted by Rainer Hahnekamp on
Hi,

because of the fact that Localization is a singleton package and can therefore just have only one instance you have to create an own locale for each subsite.

In /acs-lang/admin you have the link "Create New Locale" at the bottom of the page.

I've never tried that out so I cannot guarantee that it works perfectly but it would be the methodology I would try at first (if somebody does not come up with a better idea..)

Collapse
5: Re: Re: Re: Re: I18n (response to 4)
Posted by Iuri Sampaio on
Sure,
thanks man