[TYPO3] Translating Indexed Search using typoscript

Dylan Wyn Jones dwj at llgc.org.uk
Tue Mar 13 16:40:10 CET 2007


Hello,

I'm in the middle of translating the Indexed Search extension from 
English to Welsh by overriding the locallang xml file using typoscript.

[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = cy

plugin.tx_indexedsearch._LOCAL_LANG.cy {
 submit_button_label = My new word for search
 opt_type_0 = Gair pendant
 ...
}

[global]

Which has worked except for the replacement of the rules which are split 
over multi-lines e.g.

Only words with 2 or more characters are accepted
Max 200 chars total
Space is used to split words, "" can be used to search for a whole 
string (not indexed search then)

I first tried (but kind of knew that it wouldn't work)
 rules_text = Dim ond geiriau gyda 2 neu fwy o lythrennau a dderbynnir.
 Uchafswm o 200 llythyren.
 Defnyddir gofod i rannu geiriau, gellir defnyddio "" i 
chwilio am linyn (na fydd yn ymchwiliad wedi ei fynegeio).

It does work if I put everything on one line, but it looks a mess and 
it's a bit too hard to read.
Is there a way of specifying a carriage return of some sort? (I've also 
tried straight HTML, but this doesn't work either)

Thanks,

Dylan


More information about the TYPO3-english mailing list