Welcome to Geeklog Monday, August 03 2020 @ 08:47 am EDT

Geeklog Forums

add a language field for each story, link etc ?


Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1298
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.

Arrow 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. Confused:

 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 05/08/03
Posts: 969
Location:The Netherlands, where else?
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?
Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1298
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.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 29/08/05
Posts: 985
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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: jmucchiello

Search though should be expanded to use COM_getLangSQL.


Hmm? It's doing that already.

bye, Dirk
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1298
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 correctConfused: 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.

Arrow 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.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 29/08/05
Posts: 985
Quote by: Dirk

Quote by: jmucchiello

Search 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.
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1298
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".
 Quote

All times are EDT. The time is now 08:47 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content