Development

HowToHandlei18nDbFieldsWithAdminGenerator1.2 (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of HowToHandlei18nDbFieldsWithAdminGenerator1.2

Show
Ignore:
Author:
keeper (IP: 217.220.105.241)
Timestamp:
12/16/08 15:34:09 (6 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToHandlei18nDbFieldsWithAdminGenerator1.2

    v0 v1  
     1With Symfony 1.2 the creation of I18n admin interface has changed.[[BR]] 
     2It's very simple: if you have an Article model, just add to your !ArticleForm: 
     3 
     4{{{ 
     5class ArticleForm extends BaseArticleForm 
     6{ 
     7  public function configure() 
     8  { 
     9    $this->embedI18n(array('en', 'fr')); 
     10  } 
     11} 
     12}}} 
     13 
     14and you can change the language labels with: 
     15 
     16{{{ 
     17    $this->widgetSchema->setLabel('en', 'English'); 
     18    $this->widgetSchema->setLabel('fr', 'French'); 
     19}}} 
     20 
     21for reference take a look at [http://www.symfony-project.org/book/forms/1_2/en/08-Internationalisation-and-Localisation#Propel%20Objects%20Internationalization Form I18n]