Quick links: Content - sections - sub sections
EN

Trace: 1.7.x 1.2rc1 1.4 1.3 1.1 1.0 jevent 1.3 jelixnews-1.8 hall-of-fame

Differences

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

Link to this comparison view

Next revision
Previous revision
en:tutorials:plugins:coord:autolocale [2012/01/30 20:59] – created foxmasken:tutorials:plugins:coord:autolocale [2012/01/31 10:34] (current) foxmask
Line 1: Line 1:
 ====== Coord  Plugin "autolocale" ====== ====== Coord  Plugin "autolocale" ======
  
-//(version de Jelix supportée 1.1.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 =====
  
-I'm not going to repeat the [documentation sur le plugin coord "autolocale", plugin permettant de gérer automatiquement l'[[http://jelix.org/articles/fr/manuel-1.3/locales|internationalisation de vos templates]].+I'm not going to repeat the documentation of the plugin coord "autolocale", plugin which permits to manage automatically the [[http://jelix.org/articles/en/manual-1.3/locales|internationalisation of your templates]].
  
 The main subject of this article will consist to show how with Jelix, jAuth and jCommunity in particular,  The main subject of this article will consist to show how with Jelix, jAuth and jCommunity in particular, 
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.1327957144.txt.gz · Last modified: 2012/01/30 20:59 by foxmask

Recent changes RSS feed Creative Commons License