Quick links: Content - sections - sub sections
EN

Trace: minitutoriel faq 1.0 1.2beta1 1.0.7 1.2.x 1.4 1.2 1.3 1.2.x

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:tutorials:plugins:coord:autolocale [2012/01/31 10:31] foxmasken:tutorials:plugins:coord:autolocale [2012/01/31 10:34] (current) foxmask
Line 28: 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.1328005883.txt.gz · Last modified: 2012/01/31 10:31 by foxmask

Recent changes RSS feed Creative Commons License