Filtering by language

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 4 Replies | 3 Followers

Not Ranked
13 Posts
Points 190
ghettoiam posted on Wed, Jun 11 2008 6:36 PM

I'm still in the dev process of internationalizing my site and I've received some great help so far but now I appear to be at a bit of a wall.

I've checked "Enable content language filters"

I've assigned forums to a specific language.

I've created users and assigned them to a specific language.

My problem is that the users set language and the language to filter the forums by seem unrelated.

A forum that is set to "Francais / French" can be seen by all users regardless of language, not just my French users.

The "filtering" languages seem to lay in 'communityserver.config' and seem to be disconnected from the 'languages.xml'   How can I get both of these on the same page?

Thank you for any help!  (I'm a bit stuck)

All Replies

Not Ranked
41 Posts
Points 535
noutlaw replied on Fri, Aug 22 2008 3:50 PM

were you able to get this resolved?

  • | Post Points: 5
Top 10 Contributor
3,150 Posts
Points 46,765
TelligentSupportTeam
Suggested by Alex Crome

Have you enabled Content Language Filters under Control Panel > Site Configuration > Setup > General Site Settings.  Also, I believe users have to select which languages to filter out in their profile.  You could write a CS Module to change the behaviour so thsoe who select French as their language only see the French sections etc.

  • Post Points: 20
Not Ranked
41 Posts
Points 535
noutlaw replied on Fri, Aug 22 2008 11:27 PM

We plan on enabling them once we are ready for other languages.  However when setting up a forum don't i still need to setup 2 forums - one for french and then one for english?  I want to allow people to post universally in their language into a forum - but to the user it says "abc" and to the french "xyz" but underneath it's still  the same forum. 

I didn't think forum names are specific to the language sections in the setup???

 

  • | Post Points: 20
Top 10 Contributor
3,150 Posts
Points 46,765
TelligentSupportTeam
Suggested by Alex Crome

You're not going to do that out of the box.

My suggestions however would be to replace all instances of <CSForum:ForumData Property="Name" runat="server /> with something like

<%=ResourceManager.GetString("ForumName-" + CSControlUtility.Instance().CurrentForum.SectionID.ToString(),"ForumNames.xml) %>

Then inside each language pack, create a new ForumNames.xml file, create resources with the names "Forum-N" where N is the sectionID of each forum, and you can give then show a different name for each forum.

You may also have to make some changes to the Emails Provider to replace the [ForumName] text token to get that resource instead of just Forum.Name.

  • Post Points: 5
Page 1 of 1 (5 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com