Quick links: Content - sections - sub sections
EN

Trace: 1.2rc1 1.2 minitutorial 1.6 creating-application tutors about 1.8 translate 1.2beta1

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/30 21:00] – [Jelix and your portal in the user's language] 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 come just after, will be translated immediatly in the choosen language, otherwise,  +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
-   this one will appear again in the language previously choosen  or the language of the portal+
  
- Then we act the same way with the event 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)
  
 <code php> <code php>

en/tutorials/plugins/coord/autolocale.1327957248.txt.gz · Last modified: 2012/01/30 21:00 by foxmask

Recent changes RSS feed Creative Commons License