我在项目中遇到了lang文件的问题。事实证明我为不同的视图创建了lang文件,但特别是一个错误,它没有显示错误的任何解释。
1 Symfony \ Component \ Debug \ Exception \ FatalErrorException ... /应用/郎/ EN / opportunities.php:6
0 Illuminate \ Exception \ Handler handleShutdown<#unknown>:0
Symfony \ Component \ Debug \ Exception \ FatalErrorException(E_UNKNOWN)
return array(
'opportunities_' => 'Opportunities',
'products-and-services' => 'Products and Services',
'applied-opportunities' => 'Applied Opportunities',
'control-panel' => 'Control Panel',
'filters' => 'Filters',
'oppportunity' => 'Opportunity type', // <-- key has 3 p's in OP's screenshot
'select' => 'Select',
'radio' => 'Radio',
'festival' => 'Festival',
'venue' => 'Venue',
'country' => 'Country',
'select-country' => 'Select country',
'city' => 'City',
'select-city' => 'Select a city',
'music-genre' => 'Music Genre',
'date' => 'Date',
'filter' => 'Filter',
'application-sent-message' => 'Your application has been sent! If you want to see it, go to your list of applications.',
'uncompleted-profile-message' => 'Remember to complete your band profile. It will be important in the reviewing process.',
'see-profile' => 'See Profile',
'about-the-oppotunity' => 'About the Opportunity', // <-- key missing r in OP's screenshot
'download-the-bases' => 'Download the bases',
'deadline' => 'Deadline',
'apply' => 'Apply',
'more-information' => 'More Information',
'download-file' => 'Download File',
'gallery' => 'Gallery',
'get-coupon-code' => 'Get coupon code',
'exchange-code' => 'Exchange Code',
}; // <!-- erroneous curly bracket to close the array in OP's screenshot
答案 0 :(得分:0)
您要在最后一行使用data3,text3,test03
关闭数组,应为}
。 ;)