Symfony控制台语言改变了

I am trying to learn Symfony framework.

When I type bin/console doctrine:fixtures:load command my console language changes to Japanese (I think) and as a result I can not debug my error. Can anyone please help make Symfony console to print the results in English?

The following is the error I am getting from running the above command. J�│T␤␋⎽ ⎼␊⎽⎺┤⎼␌␊ °⎺⎼┐ ␋┼├␊┼├␋⎺┼▒┌┌≤ ┌␊°├ ␉┌▒┼┐ ��PHP P▒⎼⎽␊ ␊⎼⎼⎺⎼: ⎽≤┼├▒│ ␊⎼⎼⎺⎼, ┤┼␊│⎻␊␌├␊␍ '␊│├␊┼␍' (T_STRING), ␊│⎻␊␌├␋┼± 'π' ␋┼ /⎻⎼⎺┘␊␌├⎽/└▒┴▒/⎽⎼␌/A⎻⎻B┤┼␍┌␊/D▒├▒F␋│├┤⎼␊⎽/ORM/L⎺▒␍P⎼⎺┘␊␌├⎽.⎻␤⎻ ⎺┼ ┌␋┼␊ 9

P▒⎼⎽␊ ␊⎼⎼⎺⎼: ⎽≤┼├▒│ ␊⎼⎼⎺⎼, ┤┼␊│⎻␊␌├␊␍ '␊│├␊┼␍' (T_STRING), ␊│⎻␊␌├␋┼± 'π' ␋┼ /⎻⎼⎺┘␊␌├⎽/└▒┴▒/⎽⎼␌/A⎻⎻B┤┼␍┌␊/D▒├▒F␋│├┤⎼␊⎽/ORM/L⎺▒␍P⎼⎺┘␊␌├⎽.⎻␤⎻ ⎺┼ ┌␋┼␊ 9

[S≤└°⎺┼≤\C⎺└⎻⎺┼␊┼├\D␊␉┤±\E│␌␊⎻├␋⎺┼\F▒├▒┌E⎼⎼⎺⎼E│␌␊⎻├␋⎺┼]
P▒⎼⎽␊ E⎼⎼⎺⎼: ⎽≤┼├▒│ ␊⎼⎼⎺⎼, ┤┼␊│⎻␊␌├␊␍ '␊│├␊┼␍' (T_STRING), ␊│⎻␊␌├␋┼± 'π'

␍⎺␌├⎼␋┼␊:°␋│├┤⎼␊⎽:┌⎺▒␍ [--°␋│├┤⎼␊⎽ [FIXTURES]] [--▒⎻⎻␊┼␍] [--␊└ EM] [--⎽␤▒⎼␍ SHARD] [--⎻┤⎼±␊-┬␋├␤-├⎼┤┼␌▒├␊] [--└┤┌├␋⎻┌␊-├⎼▒┼⎽▒␌├␋⎺┼⎽] [-␤≠--␤␊┌⎻] [-─≠--─┤␋␊├] [-┴≠┴┴≠┴┴┴≠--┴␊⎼␉⎺⎽␊] [-V≠--┴␊⎼⎽␋⎺┼] [--▒┼⎽␋] [--┼⎺-▒┼⎽␋] [-┼≠--┼⎺-␋┼├␊⎼▒␌├␋⎺┼] [-␊≠--␊┼┴ ENV] [--┼⎺-␍␊␉┤±] [--] <␌⎺└└▒┼␍>

Here is framework related settings in my config.xml imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: services.yml } - { resource: "@MyBundle/Resources/config/services.yml" }

Put parameters here that don't need to change on each machine where the app is deployed

http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration

parameters: locale: en

framework: #esi: ~ #translator: { fallbacks: ["%locale%"] } secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true } #serializer: { enable_annotations: true } templating: engines: ['twig'] default_locale: "%locale%" trusted_hosts: ~ trusted_proxies: ~ session: # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id handler_id: session.handler.native_file save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%" fragments: ~ http_method_override: true assets: ~

dongyao2022
dongyao2022 我之前检查过,默认语言环境是'en'。
4 年多之前 回复
douyaju4749
douyaju4749 检查app/config/config.yml文件以获取区域设置信息。
4 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐