我是symfony的新用户我目前正在上课(全职),我的问题:
# app/config/config.yml
framework:
translator: { fallback: %locale% }
app / config / parameters.ini:我设置法语traduction(fr):
; These parameters can be imported into other config files
; by enclosing the key with % (like %database_user%)
; Comments start with ';', as in php.ini
[parameters]
database_driver = pdo_mysql
database_host = localhost
database_port =
database_name = blog
database_user = root
database_password =
mailer_transport = smtp
mailer_host = localhost
mailer_user =
mailer_password =
locale = fr
secret = ThisTokenIsNotSoSecretChangeIt
但标签表格注册/登录,仍然是英文...
我使用版本FriendsOfSymfony-FOSUserBundle-1.2.0-0
,因为最新FriendsOfSymfony-FOSUserBundle-1.2.0-57-g72e8023
请帮忙吗?
答案 0 :(得分:4)
编辑文件parameters.ini后,有必要:
如果您打算自定义翻译的语言,您可以复制/粘贴
vendor\bundles\FOS\UserBundle\Resources\translations
或src\Mysite\UserBundle\Resources\translations
下的app\Resources
{不要修改原始信息!)。