• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple, the Netherlands

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.


This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net) Please confirm that you are not a script by entering the letters from the image

Related to CMSMS Core release 1.11 and higher

Open anchor to this point in the page 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.

Open anchor to this point in the page How to use?

  1. {cms_set_language lang="fr_FR"}

Open anchor to this point in the page 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.

Open anchor to this point in the page Syntax examples

  1. {cms_set_language lang="fr_FR"}