This plugin attempts to set the current language for use by translation strings and date formatting to the desired language. The language specified must be known to CMSMS (The nls file must exist). When this function is called, (and unless overridden in the config.php) an attempt will be made to set the locale to the local associated with the language. The locale for the language must be installed on the server.

   How to use?

{cms_set_language lang="fr_FR"}

   Available parameters

  • lang (required) - The desired language. The language must be known to the CMSMS installation (nls file must exist)

CMSMS does not support switching languages multiple times within one page request. This plugin will only work correctly when called once per page request.

   Syntax examples

{cms_set_language lang="fr_FR"}