Posted on: 03/02/07 04:42pm
By: 1000ideen
I`m planning a small club portal with about 4 languages. I will not translate every story as each language group will have own stories but they will all share the portal and discuss together on the forum.
The problem is the search. I cannot search for stories in one specific language. The same is true for any other plugin. Is there any solution? Would it be useful to add a language field in the MySQL for each story, link etc.
:
Re: add a language field for each story, link etc ?
Posted on: 03/03/07 07:32am
By: beewee
You can point out the topics in the advanced search function, so you could make a search form for each language, each with it's own topics. Should that help you out, Markus?
Re: add a language field for each story, link etc ?
Posted on: 03/03/07 06:22pm
By: 1000ideen
Thanks, I`m not sure if I got you right.
I was thinking of a small checkbox in the advanced search like "search in my prefered language". The prefered language would be the one of the profile setting (or cookie).
Then of course each story, static page, link, forum would have to identify its language. There could be a drop down menu (like in the profile) to chose the language of each story, static page, link, forum etc.
E.g. you are looking for the international word "USA" in stories with language 'German'. Up to now you`d get all stories as languages can`t be identified.
Re: add a language field for each story, link etc ?
Posted on: 03/03/07 06:42pm
By: jmucchiello
If you are using 1.4.1 stories should have their language identified in the sid field as storyid_xx where xx is the iso language name. In this manner, you could have story_en and story_de and English readers will only see the first story and German readers will only see the other. Other readers will see whichever language is the default in config.php.
Search though should be expanded to use COM_getLangSQL.
Re: add a language field for each story, link etc ?
Posted on: 03/04/07 04:55am
By: Dirk
Quote by: jmucchielloSearch though should be expanded to use COM_getLangSQL.
Hmm? It's doing that already.
bye, Dirk
Re: add a language field for each story, link etc ?
Posted on: 03/04/07 05:20am
By: 1000ideen
Hm, I did not plant to turn on the "multi-language support" because I will not translate every story as each language group will have own and different stories but they will all share the portal.
As far as I understood up to now with the "multi-language support" German users would not see English stories, is that correct
: Some users will be multilingual.
It is a similar system with
ebay. Usually you find items in your ebay country but if there are no items then it also shows you international items. The system language is always the chosen one.
My idea is rather that the search should find stories, static pages, forums and possibly links in the preferred language. If there are none it could point out other findings.
Re: add a language field for each story, link etc ?
Posted on: 03/05/07 02:25am
By: jmucchiello
Quote by: DirkQuote by: jmucchielloSearch though should be expanded to use COM_getLangSQL.
Hmm? It's doing that already.
It probably is. I assumed he was using the multi-language support supplied by geeklog and that if it wasn't filtering the stories by language, then that call was missing. But, he isn't using multi-language support.
To the OP, language support is still a band-aid in 1.4.1. Until lang_id is a field on the tables you are talking about, search will not work how you want it to.
Re: add a language field for each story, link etc ?
Posted on: 03/05/07 05:00am
By: 1000ideen
This "lang_id as a field on the tables" is what I think I will need this year but also for static pages and for forums. I think it is a necessary field for larger multilingual sites.
For the time being I can try to work with "multi-language support".