| Click here to ask a question or provide feedback on this topic | Bookmark this topic Print this topic | Next |
Using languages
Multiple Languages per Web SiteIWS supports multi language web sites. All managed documents have one specific version per available language in your project. You can add as many languages to your project as you want. A language is defined by its:
Example:English Name = "German" Foreign Name = "Deutsch" ISO Code = "DE" Languages are defined on Repository level, that is all your defined languages will be available for all projects in your repository. Go to Project -> Tools -> Options Add or modify the languages you need. Then go to Project -> Tools -> Languages and check the languages you want to use for your current project. Language detectionThe users language is automatically detected on the server side by analyzing the browser request. If no language can be discovered, then the projects default language will be set as active language. Switching LanguagesSingle Language SwitchTo insert a link that switches the current document to an other language, you can insert { %SetLanguage.ISOCode% } in your document. ISOCode is the two character abbreviation of any of the languages you have added to the project. This variable will get expanded to <a href="features.iwp?iwslanguage=en">English</a> Where "en" is the ISO Code and "English" is the foreign language name. If you need more control (for example to display small language flags) then you can also construct language switching links manually (Dynamic Deployment only: <a href="{ %filename% }?iwslanguage=de"><img src="../flags/german.gif" border="0"></a> Multi Language SwitchTo make life even easier, IWS has three variables to provide a complete link chain for all languages in the current project. Just insert one of the following variables in a document:
The choosen language will become the active language for the current user. All subsequent pages will be served in that new language. The current language setting is stored in a cookie. If cookies are disabled then the current document will be served in the selected language, but the next page will be served in the detected language again. Look here to learn how to translate a document. |
We
use the ABCpdf .NET PDF component for HTML to PDF conversion...