[Typo3] translation in extension's locallang utf-8

Ries van Twisk typo3 at rvt.dds.nl
Sun Oct 23 00:22:20 CEST 2005


tding at 1688.com wrote:

>thanks to all who responded, looks like this is a known issue and ways to overcome it is stated here.
>
>http://lists.netfielders.de/pipermail/typo3-dev/2005-May/010223.html
>
>According to the thread -
>
>Lacking a capable editor you could use the suggested workaround: delete  
>the sections you want to change from locallang.php and edit each of them  
>in a single TS file. Write down the labels like
>plugin.<plugin>._LOCAL_LANG.<lang> {
>   label1 = some text
>   label2 = another text
>}
>
>can someone tell me what "single TS file" means? I tried the following in my typoscript constant but didn't work
> 
>plugin.tx_srfeuserregister_pi1.formFields = username, password, email, disable
>plugin.tx_srfeuserregister_pi1.LOCAL_LANG.default {
>username = blah blah:
>password = blah blah:
>}
>
>and
>
>plugin.tx_srfeuserregister_pi1.formFields = username, password, email, disable
>plugin.tx_srfeuserregister_pi1.LOCAL_LANG {
>default {
>username = blah blah:
>password = blah blah:
>}
>}
>
>  
>
almost there, example:
plugin.tx_srfeuserregister_pi1._LOCAL_LANG.default.www= Your website:

Note the underscore (_) before _LOCAL_LANG

Also, you don't need to delete anything in the localang.php file, you 
basicly overwrite any lanhuage settings.
Single TS file means, just a TypoScript file you inlude.

Here is how you can include it from you TS template found in the root of 
your website:

<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/<filename>">


Ries





More information about the TYPO3-english mailing list