Wednesday, November 18, 2015

culture-specific .resx files

What if you want to have exceptions for some common cultures with your default resources for a language in an ASP.NET resource project? Well, this sort of suggests that you may just sit Whatever.fr-ca.resx next to Whatever.fr.resx and the French Canadians will get the first resource while all other French peeps will fall through to the later (assuming there are no other french .resx files). I have not tried it yet as of this writing. Also, I guess es-la is a legitimate resource for a Spanish variation with the la standing for Latin America I suppose.

 
 

Addendum 11/19/2015: Why can't I set CultureInfo("es-la") in C# and then find the appropriate resources? Is this illegitimate? Well, it's not on the list of supported country codes here.

No comments:

Post a Comment