[toc]
To localize a site, you must: create a new folder for each language, create translated site resource files, update your /languages/languages.xml file, touch your web.config, and export-->translate-->import widget and plugin resources. Telligent Community Server widgets do not rely upon the languages/en-us/resource.xml file for language localization.
Install a language pack
To install a language pack:
- Create a new folder with the name of the Language Code of the language pack you are installing (for example, for US English "en-US") inside the /languages/ directory of your Community Server website.
- Copy the contents of the language pack into the folder you created. This folder contains core files such as Resources and resource files and Messages. The Email templates are part of the plugin resources.
- Open /languages/languages.xml and add an entry for the language you just created. The name is a friendly name of the language, for example, Français or French, Español or Spanish,and so on. The key is the Language Key of the language you created, and the name of the folder the language pack is stored in. For example, for US English you would add:
<language name="U.S. English" key="en-US" />
- Copy the language pack files to the \languages folder under your Job Service folder.
- Edit the languages.xml under your Job Service folder to add the new language to your site.
- Run the siteterms_{language}.sql script on your database.
- Recycle the site's application pool or touch the Web.config file (edit with a space and Save).
- Log into your site as administrator.
- Navigate to Widget Studio (Administration > Interface > Widgets) and click the Import icon and upload the Widget-Resources.xml file in your language pack folder.
- Review and select the widget resources you want to import and click the Import button.
- After being imported, the affected widgets will show up in the Staged Changes area of Widget Studio for review. Review and publish any changes you want live for your users.
- Navigate to Administration > Translation > Plugin translations.
- Click Import Resources and upload the Plugin-resources.xml file from your language pack folder.
- Click Import Resources.
- After the import is complete, click Save. Now, you are ready to go and select different languages for your users, or let them select the language.
Before users see the Community Server website in their own language, they need to set their language on their Settings page.
About content translation
All content (for example, blog posts, forum threads, etc.) is stored in the language the user wrote them in, irrespective of the site’s language pack. Thus, if a blog post is created in English, the post content will be displayed in English. Community Server does not translate content; it just supports language packs that localize the site.