Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Локализация проекта (http://forum.typo3.ru/forumdisplay.php?f=14)
-   -   is there russian Indexed Search version? (http://forum.typo3.ru/showthread.php?t=1110)

Amiran Chyb 20.12.2003 19:24

is there russian Indexed Search version?
 
hello
(excuse me writing in english - i'm form poland, builing a site in russian)

is there any way to get the russian labels for indexed search? has anybody done it? I'd be very grateful for any help, extension, or even a file with russian version of labels nad some hints where should I add them.
thanks
amiran at tlen.pl

Valery Romanchev 21.02.2004 12:42

Hi!
About search in russian:
http://typo3.net.ru/viewtopic.php?t=9
....
\"Probably this is because the REGEX which extracts the words from the content is geared for ascii and no >127 chars. Maybe german and danish extras. In the file \"class.indexer.php\" there is a function \"split2words\" which splits the word in the content and that does it by \"alnum\" plus characters found in some internal arrays: ->convChars - obviously we need a solution for splitting the words in other languages wheere the non-ascii chars are different. For now you can make a class extension to this class and insert a list of russian/ukranian chars in these internal arrays and you should be fine. Feel free to work on a better, more general solution. [Answered Online during List Management]\"

Solution:
1. Edit file class.indexer.php in typo3/ext/indexed_search
2.
Replace:
var $convChars=array( \"qyЉ}t{Њ†v€u\", \"‘™Є?’љ«¤ћ–Ё•\" );

To:
var $convChars=array( \"АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ\", \"абвгдеёжзийклмнопрстуфхцчшщъыьэюя\" );

3. Save file



Часовой пояс GMT +4, время: 20:04.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot