symfony
symfony forum
Home » support » General discussion » i18n admin generator
i18n admin generator [message #7571] Sat, 17 June 2006 12:38 Go to next message
omoser  is currently offline omoser
Messages: 8
Registered: June 2006
Junior Member
Hi all,

I am trying to understand the i18n concept. I set up a small testproject to build the admin generator with i18n. So I used the XML from the documentation ...

<?xml version="1.0" encoding="UTF-8"?>
<database name="propel" defaultIdMethod="native" noxsd="true">
<table name="my_product" phpName="Product" isI18N="true" i18nTable="my_product_i18n">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="price" type="float" />
</table>

<table name="my_product_i18n" phpName="ProductI18n">
<column name="id" type="integer" required="true" primaryKey="true" />
<foreign-key foreignTable="my_product">
<reference local="id" foreign="id"/>
</foreign-key>
<column name="culture" isCulture="true" type="varchar" size="7" required="true" primaryKey="true" />
<column name="name" type="varchar" size="50" />
</table>
</database>

I generated the model and the database. And then I wanted to build the admin-tool so I ran ...:

symfony init-app backend
symfony propel-init-admin backend product Product
symfony propel-init-admin backend product_i18n ProductI18n

Then I open the Link:
http://localhost/backend_dev.php/product/create
and
http://localhost/backend_dev.php/product_i18n/create

both are working ... but there is no connection between them. Is this not automated in the Admin-Generator or did I do something wrong!?
How do I make the connection so that I can enter Data for different languages?
Re: i18n admin generator [message #7658 is a reply to message #7571 ] Tue, 20 June 2006 09:43 Go to previous messageGo to next message
francois  is currently offline francois
Messages: 1627
Registered: October 2005
Faithful Member
The i18n data (associated '_i18n' tables) is not yet implemented in the admin generator.

The admin generator has a fully i18n interface, though (all texts enclosed in '_()' calls).

Re: i18n admin generator [message #7667 is a reply to message #7658 ] Tue, 20 June 2006 11:17 Go to previous messageGo to next message
omoser  is currently offline omoser
Messages: 8
Registered: June 2006
Junior Member
do you have a small howto? or example code just for a small object how to handle the multilingual data input in the easiest way? or is it somehow integrated in the crud generator?

we are working on a big project with more than 100 i18n tables ... so i don't want to make more work than neccessary.

thanx for your help.
Re: i18n admin generator [message #13328 is a reply to message #7571 ] Thu, 05 October 2006 14:57 Go to previous message
narko  is currently offline narko
Messages: 42
Registered: October 2006
Member
Did you find the way to solve the problem with I18N in admin generator? I'm also looking for the solution. Thanks
Previous Topic:admin-generator with i18n enabled tables
Next Topic:Access arbitrary Peer class by name
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software