Hello all,
I'm in the process of creating an application that will make extensive
user of the i18n features of symfony. First off, let me say thank you
for all of the effort that's gone into this so far, as it's been
saving me lots of time (minus the fairly steep learning curve).
My question is this: I have a database table where I plan to store
languages and the translations of their names to other languages. A
user's profile will then link to this language so that their default
language may be stored, as well as being able to change it within a
profile editing action/template. The problem that I'm having is in
populating the database with some initial translation data using
fixtures.yml.
Here are the pertinent sections of my schema.yml:
propel:
xxxxxx_user_profile:
_attributes: { prefix: xxxxxx, phpName: UserProfile }
created_at: ~
id: ~
language_id: ~ # preferred language to use
user_id: { type: integer, foreignTable:
sf_guard_user, foreignReference: id, onDelete: cascade }
first_name: varchar(20)
last_name: varchar(20)
xxxxxx_language:
_attributes: { prefix: xxxxxx, phpName: Language }
id: ~
iso: varchar(7)
xxxxxx_language_i18n:
_attributes: { prefix: xxxxxx, phpName: LanguageI18n }
name: varchar(80)
In my fixtures.yml, I'm attempting to do this:
Language:
english:
iso: en
arabic:
iso: ar
LanguageI18n:
english_en:
id: english
name: English
english_ar:
id: english
name: بالانكليزي
arabic_en:
id: english
name: Arabic
arabic_ar:
id: arabic
name: العربية
sfGuardUser:
user_en:
username: [EMAIL PROTECTED]
password: password
UserProfile:
user_en:
user_id: user_en
first_name: Test
last_name: User
language_id: english
Calling 'propel-build-model' seems to succeed, but when I do a 'propel-
load-data frontend', I'm rewarded with this:
>> propel load data from "x:\xxxxxx\Proje...ns\sfGuardPlugin\data\fixtures"
>> propel load data from "x:\xxxxxx\Projects\xxxxxx\site\data\fixtures"
[sfException]
Unable to find path for class "LanguageI18nPeer".
I've double-checked that 'LanguageI18nPeer' does, in fact, exist in /
lib/model.
Any suggestions?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---