[TYPO3] trying to customize a default system translation
Lucas Thurston
lucas at castironcoding.com
Tue May 13 18:33:22 CEST 2008
Editing the locallang XML is not the solution. Changing that language
would require setting a value in TypoScript, not TSConfig. Either the
language label can be changed or the TypoScript configuration of the
tt_content plugin can be modified to use some alternate, hardcoded
language (but this is not a great option).
Changing a language label for a plugin usually looks like this:
plugin.tx_blahblah_pi1._LOCAL_LANG.default.languageKey = New Language Value
In this case, because the language key has a . in it: label.toTop, I'm
not entirely sure if the TS snippet below will work. Anyone know?
plugin.tx_cssstyledcontent_pi1._LOCAL_LANG.default.label.toTop = Go back
up to the top!
One could also change the TypoScript that references this label, but I
think that's generally considered a bad choice.
Here's what the line looks like now:
tt_content.stdWrap.innerWrap2 = | <p class="csc-linkToTop"><a
href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
You would replace the {LLL:EXT:css_styled_content....} with your
language in a TypoScript template.
Lucas
CAnet // Canè Alessandro wrote:
> ok, you're right....
> so it means the only way to change this text is searching it into some
> xml and modify it there?
>
> tnx a lot
>
> ----- Original Message ----- From: "Dmitry Dulepov [typo3]"
> <dmitry at typo3.org>
> Newsgroups: typo3.english
> To: <typo3-english at lists.netfielders.de>
> Sent: Tuesday, May 13, 2008 4:51 PM
> Subject: Re: [TYPO3] trying to customize a default system translation
>
>
> CAnet // Canè Alessandro wrote:
>> just a simple (I think) question:
>> I can't find the way to change (via TSConfig) the default language
>> translation for the text "to top" that shows up IN THE FE PAGE when I
>> check "to top" in a content element type...
>
> TSConfig does not affect Frontend.
>
More information about the TYPO3-english
mailing list