dimanche 22 février 2015

Typo3 Record localization

I am struggling with Typo3 / Typoscript. I want to localize a website to two languages in total (German as default, and English). Using the following typoscript I could localize my standard text records:



lib.main = CONTENT

lib.main {
table = tt_content
select {
pidInList = this
languageField = sys_language_uid
orderBy = sorting
}

renderObj.stdWrap.dataWrap = <section id="tt_content_{field:uid}"><article>|<hr class="clearer"/></article></section>

}


However, no images / media records and their captions are overwritten/localized. I already have these settings in my Typoscript:



config.sys_language_overlay = 1
config.sys_language_softExclude = tt_content:image
config.sys_language_softMergeIfNotBlank = tt_content:image

config.sys_language_mode = strict


The images (and files) and captions are still default German; no translation / localization. Even if I altered the localized record with different files, only the default was visible. Is there another point where I can force localization? Another snippet using the image is a caption wrap (which another one created):



plugin.tx_presets_pi1 {

rendering {
file.import.data = file:current:uid_local

caption {
wrap = <p class="center image-caption">|</p>
}
}
}


Could someone suggest a solution? I have the feeling that it is a FAL problem (and a reported bug...?!) Thanks for your generous help :)


Aucun commentaire:

Enregistrer un commentaire