You should be able to do this without havign to maintain multiple databases per language. You should be able to localise the site by adding additional language packs into the /languages/ direcotry, and you should be able to filter out unwanted languages by using Language Content Filters.
If you want to automatically change the connection string on the fly based on the language of the current user, I'd suggest you'd be facing an uphill struggle, especially in those components that do not come with the soruce code included. You'll also face enormouse problems with caching as CS would not differentiate on a per language basis. If you use the Language Content Filters build into CS, you would be able to work around said problems.
CS Documentation - now available in downloadable PDF form
My CS Site
You cannot assign languages to individual posts, but you can to specific sections (e.g. forums, blogs). When you create or edit the blog in the Administration section of Control Panel, there should be a "Default Language" option. Set this to the language of posts you want that section to contain.
This means that if you have three languages, and for each you want to have three forums
- Announcements- Feedback- Chat
you'll have to create one set of forums per language
+ ENGLISH+-- Announcements+-- Feedback+-- Chat |+ GERMAN+-- Announcements+-- Feedback+-- Chat |+ FRENCH+-- Announcements+-- Feedback+-- Chat
Similar will occur for blogs and galleries I believe.
For localization of text used in CS, you'll want to look at the English language pack in ~/Languages/en-us, and make a language pack for each language you use.
Thank you. That's -very- helpful. I
In my languages.xml I have a list of languages that are shown when I select my users default language in their profile.
<
language name="English" key="en-US" /><language name="Fran‡ais / French" key="fr-FR" /><language name="Deutsch / German" key="de-DE" /><language name="Deutsche Schweiz / German (Swiss)" key="de-CH" /><language name="Ελληνικά / Greek" key="el-GR" /><language name="简体中文 / Chinese" key="zh-CN" /><language name="Spanish (Ecuador)" key="es-EC" /><language name="Spanish (Spain)" key="es-ES" />
But when I edit a forum and select a language, the list is different. It's missing languages and has extra ones that I don't even have files for (ie. Italian).
Why is this? Can I get this forum language selection to reflect my languages.xml?
Problem found.
communityserver.config and languages.config both have a lists of languages.
In communityserver.config you must add your nodes from languages.config with the appropriate data and add the enabled="true" to the end of it.
So in languages.xml you have:
language name="Deutsche Schweiz / German (Swiss)" key="de-CH" />
Which means in communityserver.config you must have:
filterLanguage key="de-CH" name="Deutsche Schweiz / German (Swiss)" enabled="true" />
This solves the issues. All languages not in found in "languages.xml" should be deleted or set to enabled="false"
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com