Change symfony default culture in admin-generator
By default, symfony admin is in english, but you can easily change the default language for the generated pages (without creating a specific dictionary). Just enable the i18n and set up your culture in your apps/backend/config/settings.yml :
all:
.settings:
i18n: on
default_culture: fr
Then, retrieve your ORM plugin's dictionary and put it into your application :
mkdir -p apps/backend/i18n/en/ cp lib/vendor/symfony/lib/plugins/sfPropelPlugin/i18n/sf_admin.fr.xml apps/backend/i18n/en/ ./symfony plugin:publish-assets ./symfony cache:clear
one comment
good info - thanks!
but have you ever observed that there are several single strings not translated in the admin generator?
I've chosen german as language, and among other things the message "yes or no" for foreign key selections is not translated although it is within the sf_admin.de.xml (as found in the symfony core or put into <module>/i18n/)
Cheers - Alex