Hi Michael,

unfortunately there is one additional trap. The solution proposed by Alexander 
does of course work, but it will still require you to manually recreate all 
views.

But shoudn't it be possible to do this automatically in the onActivate handler, 
you ask? Of course it should, there is even an updateViews method, that does 
the hard work for you. However the oxLang module, which tells the system about 
your new multilang tables, is not active yet in this handler, so you're out of 
luck.

regards
Gernot
________________________________________
Von: [email protected] 
<[email protected]> im Auftrag von Michael Wagner 
<[email protected]>
Gesendet: Donnerstag, 6. Februar 2014 14:58
An: [email protected]
Betreff: Re: [oxid-dev-general] Oxid MultiLangTables

Sometimes it's simple. Thank you for the "little" hint. :-)

Greets Michael

Am 06.02.2014 13:56, schrieb Roman Allenstein:
> This is a very useful hint. thanks for that!
>
> Greets
> Roman
>
> Am 06.02.2014 13:18, schrieb Alexander Kludt:
>> Hi there,
>>
>> I always extend that array through my own module:
>>
>> <?php
>>
>> class agformsmanager_oxlang extends agformsmanager_oxlang_parent{
>>
>>      public function getMultiLangTables(){
>>          $aTables = parent::getMultiLangTables();
>>          $aTables = array_merge($aTables,
>> array('agforms','agformfields','agformmailings'));
>>          return $aTables;
>>      }
>>
>> }
>>
>>  From what I can see this works even if I add new languages.
>> --
>> mit freundlichen Grüßen
>> Alexander Kludt
>>
>> __________________________
>> Phone: 09283-5925453
>> Fax: 09283-592671
>> Skype: kingschnulli
>> Email: [email protected]
>> Website: www.aggrosoft.de
>>
>> __________________________
>> Aggrosoft it intelligence GbR
>> Tannstrasse 12
>> 95111 Rehau
>> GERMANY
>>
>> Sitz Rehau, Amtsgericht Hof
>> Steuernummer: 223/165/54508
>> Ust.-Id. Nr. gemäß § 27 a Umsatzsteuergesetz: DE260722773
>>
>> ___________________________
>> Diese Nachricht ist nur für den Empfänger bestimmt, sollten
>> Sie nicht der Empfänger sein löschen Sie diese Nachricht
>> umgehend und geben Sie uns bitte per Email ([email protected])
>> Bescheid
>> über den fälschlichen Erhalt.
>>
>>
>>
>>> Michael Wagner <mailto:[email protected]>
>>> Donnerstag, 6. Februar 2014 13:03
>>> Hello,
>>> I have a table containing the text. This I did in the config.inc.php:
>>> aMultiLangTables entered. Iif I will now adding a new language but the
>>> OXID tables extended not my own. must be set even something extra or
>>> you have to do this yourself here. If you have the Views Updated?
>>>
>>> - Registered table
>>> - Created a new language
>>> - Cleared cache
>>> - Views updated.
>>>
>>> My own table remains unchanged.
>>>
>>> Does anyone have an idea what it is?
>>>
>>> M. Wagner
>>>
>>
>>
>> _______________________________________________
>> dev-general mailing list
>> [email protected]
>> http://dir.gmane.org/gmane.comp.php.oxid.general
>>
>
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general


--
  Michael Wagner
  Senior Software Developer
--
Spark 5 GmbH
Rheinstr. 97
64295 Darmstadt
Germany
--
Fon: +49-6151-8508-027
Fax: +49-6151-8508-111

Mail: [email protected]
Web: http://www.spark5.de
--
Geschäftsführer:
Dipl. Designer Till Middelhauve
Dipl. Informatiker Witold Wegner

Amtsgericht Darmstadt, HRB 7809
--
Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen 
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail sind nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to