Override the neutral language of a specific resource file within an assembly
Posted
by Sandor Drieënhuizen
on Stack Overflow
See other posts from Stack Overflow
or by Sandor Drieënhuizen
Published on 2010-02-20T14:42:03Z
Indexed on
2010/05/03
8:08 UTC
Read the original article
Hit count: 484
I have an assembly that contains several resource files. Most of them have the neutral language 'nl' (Dutch, specified on the assembly as the neutral language), so I don't specify the 'nl' in their filenames.
However, I'm putting strings in the English language in some other resource files (they are internal error messages) and I will never provide Dutch translations of them.
If I name those resource files something like 'Errors.en.resx', no designer class is generated (breaks the build) because there is no 'Errors.resx'. This is annoying because now I have to put 'en' strings into a 'nl'-implied resource file and I really don't want to translate those strings to 'nl' or provide empty strings just to satisfy the compiler.
Is there a way to override the neutral language on a specific resource file or perhaps somehow have the 'Errors.en.resx' build a designer class?
© Stack Overflow or respective owner