Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I create non-language based global .resx?

So here is the scenario. I have an internationalized application using .NET MVC in English and French using the global resources.

For certain clients using the application, the terminology used to reference an object such as "User" is different. One client might see that User as a "Subscriber" but another client's mental model of the User is a "Lead".

So in my English global resource file, the name and value is simply "User" and now I've failed to satisfy both clients. :)

Is there a way to handle different terminology in the same language using resource files?

I tried to create a new resource file, MyApp.[non-language identifier].resx, but .NET didn't seem to like that at all.

Thanks!

like image 898
Kevin Avatar asked Nov 14 '22 12:11

Kevin


1 Answers

Yes, it is possible, though I'm not sure exactly how to do it. This MSDN article has some info on creating a custom culture in .NET:

How to: Create Custom Cultures

It's definitely a scenario that we've tested before while working on ASP.NET (I'm a developer on the ASP.NET team). One of our scenarios was to use the localization feature to help a developer create "branded" versions of their sites, which sounds almost exactly like what you're trying to do.

like image 151
Eilon Avatar answered Dec 18 '22 06:12

Eilon