Показать сообщение отдельно
Старый 19.06.2008, 21:09   #1
typo27
Новенький
 
Регистрация: 30.01.2008
Сообщений: 27
По умолчанию multilanguage extension

Privet

I need to make multilanguage extension. Does anybode now tutorial for that? I searched but could not found. Lets say simple extension with list items "car".
There is one field: name. I can enter 'Audi", but how to enter russian transliation "Ауди" for that car?
It is more or less clear how to retrieve from database:

PHP код:
$res $GLOBALS['TYPO3_DB']->exec_SELECTquery('*'' tx_yourextension_car''uid=29');
$row $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);

// Check if the user is viewing a different language
if ($GLOBALS['TSFE']->sys_language_uid != 0) {
$OLmode = ($this->sys_language_mode == 'strict'?'hideNonTranslated':'');
$row $GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_anpacars2_car'$row,
$GLOBALS['TSFE']->sys_language_uid$OLmode); 
but how to enter different values of car name for different languages?

Sposibo
typo27 вне форума   Ответить с цитированием