I created an MVC 5 project in VS2013 (with update 2). If I add the resource file to the App_GlobalResources folder, it will correctly generate the corresponding .designer.cs file when saving.
However, if I create a copy of the resource file and , include the culture in the name , for example. Resource.fr-FR.resx, the constructor file is always empty.
Steps for replication:
- Create the App_GlobalResources folder (right-click the project> Add ASP.NET folder> ...)
- Right-click this folder> Add> Resource File
- Accept the default name (Resource1)
- Make a copy (you must have Resource1 - Copy.resx)
- Rename the copy to Resource1.fr-FR.resx
- Inspect the .designer.cs file - it is empty
Perhaps this has something to do with the custom tool (GlobalResourceProxyGenerator) and dot / period file names? I'm new to localization, so I'm probably wrong!
source
share