[TYPO3-mvc] Create localizations in FE / on demand / on import?

Henjo Hoeksma me at henjohoeksma.nl
Tue Sep 20 15:23:23 CEST 2011


On 2011-09-19 16:23:44 +0000, Dominik Stankowski said:

> Hi Henjo
> 
> It actually turns out that one can set $l18nParent in the Data Model by 
> just adding this variable and a setter/getter function.
> 
> We first add the default language records, persist them, then add the 
> non-default language records and set the $l18nParent with the uid of 
> the original record.
> 
> To set the language uid, we use $_languageUid from the 
> AbstractDomainObject with an own setter/getter function, as 
> $sysLanguageUid does not seem to work.
> 
> Hope this helps,
> Dominik
> 
> On 09/19/2011 10:32 PM, Dominik Stankowski wrote:
>> Hi Henjo
>> 
>> We tried to use _localizedUid instead of a mapping with l18n_parent
>> (which did not seem to work for us). However, even with this method, a
>> patch is required (cf. Bug #30041). Therefore, I would prefer a wider
>> discussion about how-to properly localize Extbase objects.
>> 
>> Cheers,
>> Dominik
>> 
>> On 08/18/2011 05:50 AM, Henjo Hoeksma wrote:
>>> On 2011-08-17 11:34:14 +0000, Franz Koch said:
>>> 
>>>> Hi Henjo,
>>>> 
>>>>> did you find a solution for this?
>>>>> I am running into the same problem on creating an import xml script…
>>>>> 
>>>>> Thanks in advance for your reply.
>>>> 
>>>> I somehow managed to get it working - but I can't remember how and it
>>>> was just a one-time import. But IIRC you first have to import the
>>>> default language (to have all the IDs available) and then the
>>>> localizations and set the according internal variables (l18n_parent or
>>>> something like that). Really can't remember and don't have the
>>>> according code at hand atm.
>>> 
>>> Hi Franz,
>>> 
>>> thanks for your response. I will see where this brings me…
>>> 
>>> Henjo

Hi Dominik,

this seems promising… Looks interesting. For now it seems the client 
will only be capable of providing a default XML, i.e. in the default 
language, but I would really like to know how to work around this, so 
thanks a lot for your thoughts!

Henjo



More information about the TYPO3-project-typo3v4mvc mailing list