• Inhalt als PDF-Datei herunterladen
  • Optimierter Druck
Thema ohne neue Antworten

TYPO3 Organizer: localization fe_users


Autor Nachricht
Verfasst am: 28. 07. 2011 [06:39]
cskazalisandi
Champ
Themenersteller
Dabei seit: 13.07.2011
Beiträge: 8
Hello, Dirk Wildt

I want to localization in personal data. How to do it?
I'm sorry if my english is not good.

Thank you a lot for your answer.

Best Regards.
Champ


--------------------------------------------------
(Champ) Chinawut Phongphasook
Director of Software Developer at LisAndi Co,.Ltd.
88/9 M.2 Chao Fah Tawan Tok, Vichit, Muang, Phuket, 83000 Thailand.
www.lisandi.com
Verfasst am: 28. 07. 2011 [11:14]
dirk
Dirk Wildt
Dabei seit: 27.09.2010
Beiträge: 601
Hy Champ,
your english is well, my isn't better.

Do you know the Tutorial:
* Browser Tutorial Localization

Especially the chapter
* 1.3. Tutorial

Is this, what you need?

Kind regards
Dirk

--
Willst Du den TYPO3-Browser mit einer Spende unterstützen? Wir freuen uns über jeden EUR!

Sponsoring: Ich will einfach einen Betrag spenden
http://typo3-browser.de/sponsoring
Verfasst am: 28. 07. 2011 [14:14]
cskazalisandi
Champ
Themenersteller
Dabei seit: 13.07.2011
Beiträge: 8
Thank you so much for your answer.
Now i have localization in

tx_org_cal
tx_org_calentrance
tx_org_department
tx_org_event
tx_org_headquarters
tx_org_location
tx_org_news
tx_org_tax

Allready. But now in User Storage is third party tables and i don't understand. What is field to create into fe_users table?
Where is TCA.php and ext_tables.php to modified?
for User Storage only.

Thank you so much again.

Best Regards.
Champ

[Dieser Beitrag wurde 1mal bearbeitet, zuletzt am 28.07.2011 um 14:18.]


--------------------------------------------------
(Champ) Chinawut Phongphasook
Director of Software Developer at LisAndi Co,.Ltd.
88/9 M.2 Chao Fah Tawan Tok, Vichit, Muang, Phuket, 83000 Thailand.
www.lisandi.com
Verfasst am: 02. 08. 2011 [10:18]
uli
Ulfried Herrmann
Dabei seit: 13.12.2010
Beiträge: 101
Hi Champ,

the table `fe_users` doesn't have a localization in standard. It could be added by creating a separate extension.

Best,
Ulfried

--
Willst Du den TYPO3-Browser mit einer Spende unterstützen? Wir freuen uns über jeden EUR!

Sponsoring: Ich will einfach einen Betrag spenden
http://typo3-browser.de/sponsoring
Verfasst am: 02. 08. 2011 [12:57]
cskazalisandi
Champ
Themenersteller
Dabei seit: 13.07.2011
Beiträge: 8
OK, sir

Thank you for your suggestions. icon_lol.gif



Best Regards.
Champ


--------------------------------------------------
(Champ) Chinawut Phongphasook
Director of Software Developer at LisAndi Co,.Ltd.
88/9 M.2 Chao Fah Tawan Tok, Vichit, Muang, Phuket, 83000 Thailand.
www.lisandi.com
Verfasst am: 19. 08. 2011 [12:39]
cskazalisandi
Champ
Themenersteller
Dabei seit: 13.07.2011
Beiträge: 8
Hi, All

Now i can localization in fe_users.

step1: create the field in fe_users table

sys_language_uid int(11) NULL [0]
l10n_parent int(11) NULL [0]
l10n_diffsource mediumtext NULL

step2: you add the php code in ext_tables.php file
after:
PHP
$TCA['fe_users']['ctrl']['thumbnail'] = 'image';


you add this new:
PHP
// fe_user localization
$TCA['fe_users']['ctrl']['languageField'] = 'sys_language_uid';
$TCA['fe_users']['ctrl']['transOrigPointerField'] = 'l10n_parent';
$TCA['fe_users']['ctrl']['transOrigDiffSourceField'] = 'l10n_diffsource';


and you add the sys_language_uid,l10n_parent,l10n_diffsource field to $showRecordFieldList:
PHP
$showRecordFieldList = $showRecordFieldList.',tx_org_news,tx_org_department,tx_org_imagecaption,tx_org_imageseo,tx_org_vita,sys_language_uid,l10n_parent,l10n_diffsource';



after this:
PHP
$TCA['fe_users']['columns']['tx_org_vita'] = array (
  'label'   => 'LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />rg/locallang_db.xml:fe_users.tx_org_vita',
  'exclude' => 0,
  'config'  => array (
    'type' => 'text',
    'cols' => '30',
    'rows' => '5',
    'wizards' => array(
      '_PADDING' => 2,
      'RTE' => array(
        'notNewRecords' => 1,
        'RTEonly'       => 1,
        'type'          => 'script',
        'title'         => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
        'icon'          => 'wizard_rte2.gif',
        'script'        => 'wizard_rte.php',
      ),
    ),
  ),
);


You add this code at here:
PHP
$TCA['fe_users']['columns']['sys_language_uid'] = array (
  'exclude' => 1,
  'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
  'config' => Array (
      'type' => 'select',
      'foreign_table' => 'sys_language',
      'foreign_table_where' => 'ORDER BY sys_language.title',
      'items' => Array(
          Array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages',-1),
          Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
      )
  )
);
 
$TCA['fe_users']['columns']['l10n_parent'] = array (
  'displayCond' => 'FIELD:sys_language_uid:>:0',
  'exclude' => 1,
  'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l10n_parent',
  'config' => Array (
      'type' => 'select',
      'items' => Array (
          Array('', 0),
      ),
      'foreign_table' => 'fe_users',
      'foreign_table_where' => 'AND fe_users.uid=###REC_FIELD_l10n_parent### AND fe_users.sys_language_uid IN (-1,0)',
  )
);
 
$TCA['fe_users']['columns']['l10n_diffsource'] = array (
  'config'=>array(
      'type'=>'passthrough'
  )
);


Now you can localization in fe_users if you want.


Kind Regards.
Champ

[Dieser Beitrag wurde 1mal bearbeitet, zuletzt am 19.08.2011 um 12:52.]


--------------------------------------------------
(Champ) Chinawut Phongphasook
Director of Software Developer at LisAndi Co,.Ltd.
88/9 M.2 Chao Fah Tawan Tok, Vichit, Muang, Phuket, 83000 Thailand.
www.lisandi.com
Verfasst am: 19. 08. 2011 [18:53]
uli
Ulfried Herrmann
Dabei seit: 13.12.2010
Beiträge: 101
Hi Champ,

thank you very much for this tutorial!! I have moved it to TYPO3-Organiser: Kochbuch und Lösungen.

Best regards,
Ulfried

--
Willst Du den TYPO3-Browser mit einer Spende unterstützen? Wir freuen uns über jeden EUR!

Sponsoring: Ich will einfach einen Betrag spenden
http://typo3-browser.de/sponsoring



Powered by TYPO3 und mm_forum Extension

  • Inhalt als PDF-Datei herunterladen
  • Optimierter Druck