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