cms_set_language

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



   Purpose

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"}