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 plugin and widget resources. Telligent Enterprise 4.0 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 Telligent Enterprise Web site.
- Copy the contents of the language pack into the folder you created. This includes core resource files, Messages and Email templates.
- 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 Scheduler folder.
- Edit the languages.xml under your Job Scheduler folder to add the new language to your site.
- Run the siteterms_{language}.sql script on your database.
- Touch your web.config file and your new language should be recognized by Telligent Enterprise.
- Log into your site as administrator.
- Navigate to Control Panel > System Administration > Site Administration > Widget Studio > Manage Widgets.
- Click Import Resources.
- Select the Widget-Resources.xml file in your language pack folder.
- Select Merge Resources. Scroll to the bottom of the Import Widget Resources dialog box and click Import.
- Navigate to Site Administration > Site Configuration > Manage Plugins.
- Click Import Resources.
- Browse to 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 Telligent Enterprise Web site 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. Telligent Enterprise does not translate content; it just supports language packs that localize the site.