Answers.Body: <p>Polylang is not supported by CiviCRM yet but it should change soon : I have just submitted a patch here : <a href="https://github.com/civicrm/civicrm-core/pull/11312" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/11312</a></p>
  
  <p>If you still have a need for this functionality, you should try it and confirm if it resolves the problem.</p>
  
  <p>To make it work with the patch :</p>
  
  <ol>
  <li><p>Install Polylang and configure at least 2 languages
  <img src="https://user-images.githubusercontent.com/372004/33148916-ab6d7112-cf9b-11e7-90d6-d31c1643f535.png" alt="polylang - languages config wordpress"></p></li>
  <li><p>Configure CiviCRM in multiligual mode with 2 languages and set "Inherit CMS Language"
  <img src="https://user-images.githubusercontent.com/372004/33148616-7f0a50f0-cf9a-11e7-9bd8-c5be1a88a5d8.png" alt="settings - localization wordpress"></p></li>
  <li><p>In civicrm.settings.php, uncomment as needed lines like : <code>define('CIVICRM_LANGUAGE_MAPPING_xx_XX')</code>  (to resolve ambiguity between language short 'fr' and language long form 'fr_FR' or 'fr_CA')</p></li>
  <li>Create a contribution page and translate at least the title</li>
  <li>Add a page with the shortcode to the contribution page and translate it to the second language
  <img src="https://user-images.githubusercontent.com/372004/33148615-7ef8faf8-cf9a-11e7-96a5-3752990735ca.png" alt="edit page shortcode and language wordpress"></li>
  <li>You should be able to go to one page you've created and switch language to have another version of the same form</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-22T20:52:39.533Z
Answers.LastActivityDate: 2017-11-22T20:52:39.533Z
Answers.UserDisplayName: samuelsov
Body: <p>I am using the latest Wordpress with Polylang and CiviCRM versions. I try to call the online event registration form in both German and English, but I don't know how to do it.</p>
  
  <p>How can I force CiviCRM to switch to a specific language?  The &amp;lcMesssages=de_DE parameter has no effect at all, neither does &amp;lang=de. </p>
  
  <p>Inherit language from CMS also does not work - I cannot even see a pattern. When I call CiviCRM from the Dashboard, it's always the current language, just from Wordpress itself, it does not work at all.</p>
  
  <p>But there must be a way to force CiviCRM to use a specific language - or not? Any help is appreciated.</p>
  
Tags: <wordpress><civievent><localisation><i18n>
Title: Call event registration with specific language through Wordpress
ThreadText: # Call event registration with specific language through Wordpress
  
  (Asked by: username_0 on 2016-02-16)
  
  I am using the latest Wordpress with Polylang and CiviCRM versions. I try to call the online event registration form in both German and English, but I don't know how to do it.
  
  How can I force CiviCRM to switch to a specific language? The &lcMesssages=de\_DE parameter has no effect at all, neither does &lang=de.
  
  Inherit language from CMS also does not work - I cannot even see a pattern. When I call CiviCRM from the Dashboard, it's always the current language, just from Wordpress itself, it does not work at all.
  
  But there must be a way to force CiviCRM to use a specific language - or not? Any help is appreciated.
  
  **Tags:** wordpress, civievent, localisation, i18n
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-22. Score: 1
  
  Polylang is not supported by CiviCRM yet but it should change soon : I have just submitted a patch here : <https://github.com/civicrm/civicrm-core/pull/11312>
  
  If you still have a need for this functionality, you should try it and confirm if it resolves the problem.
  
  To make it work with the patch :
  
  1. Install Polylang and configure at least 2 languages
     ![polylang - languages config wordpress](https://user-images.githubusercontent.com/372004/33148916-ab6d7112-cf9b-11e7-90d6-d31c1643f535.png)
  2. Configure CiviCRM in multiligual mode with 2 languages and set "Inherit CMS Language"
     ![settings - localization wordpress](https://user-images.githubusercontent.com/372004/33148616-7f0a50f0-cf9a-11e7-9bd8-c5be1a88a5d8.png)
  3. In civicrm.settings.php, uncomment as needed lines like : `define('CIVICRM_LANGUAGE_MAPPING_xx_XX')` (to resolve ambiguity between language short 'fr' and language long form 'fr\_FR' or 'fr\_CA')
  4. Create a contribution page and translate at least the title
  5. Add a page with the shortcode to the contribution page and translate it to the second language
     ![edit page shortcode and language wordpress](https://user-images.githubusercontent.com/372004/33148615-7ef8faf8-cf9a-11e7-96a5-3752990735ca.png)
  6. You should be able to go to one page you've created and switch language to have another version of the same form
  
  
  ---
  
  