Quick links: Content - sections - sub sections
EN

Trace: manuale-1.1 1.2 1.3 creation-application 1.2.x 1.2 about 1.2.x jevent hall-of-fame

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tutorials:plugins:coord:autolocale [2012/01/31 10:30] foxmasken:tutorials:plugins:coord:autolocale [2012/01/31 10:34] (current) foxmask
Line 2: Line 2:
  
 //(supported version Jelix 1.3.x)// //(supported version Jelix 1.3.x)//
- 
 ===== Jelix and your portal in the user's language ===== ===== Jelix and your portal in the user's language =====
  
Line 29: Line 28:
 </code> </code>
  
-The trick here, is to put **$gJConfig->locale = $form->getData('member_language');** before the  **jMessage::add** , so the message which comes just after, will be translated immediatly in the choosen language, otherwise, this one will appear again in the language previously choosen  or the language of the portal+The trick here, is to put **$gJConfig->locale = $form->getData('member_language');** before the  @@C@jMessage::add@@ , so the message which comes just after, will be translated immediatly in the choosen language, otherwise, this one will appear again in the language previously choosen  or the language of the portal
  
 Then we act the same way with the events of jAuth which are  AuthLogin (when logged in) and AuthLogout (when logged out) Then we act the same way with the events of jAuth which are  AuthLogin (when logged in) and AuthLogout (when logged out)

en/tutorials/plugins/coord/autolocale.1328005822.txt.gz · Last modified: 2012/01/31 10:30 by foxmask

Recent changes RSS feed Creative Commons License