Bug #16678
closedtranslating of sitetitle not possible
0%
Description
The sitetitle-part in the generated title-tag which is generated by the function t3lib_TStemplate::printTitle() used in the file class.tslib_pagegen.php could not be translated. Because it is entered in the template record.
Now if you have an multilanguage website you would like to translate not only the page title but also the sitetitle. There are some alternatives but no usefull ones:
1. setting the title-Tag with TypoScript:
iE.:
page.headerData.5 = TEXT
page.headerData.5.field = subtitle // title
page.headerData.5.wrap = <title>{$label.headertitle}: |</title>
(and setting translations for the sitetitle via TS)
Then you can not overwrite the page title with an extension. Very bad, for tt_news and some other.
2. using an UserFunction to generate the title:
here no TS-params are passed through, so you could only set the translations in the user function? Why do not pass the TS to the function?
3. changing the function in the core ...
Is it possible to set an alternative site title in the TS (with conditions for the languages) and to use this "altSiteTitle" (config.altSiteTitle) in the printTitle-Function?
(issue imported from #M4450)