Q:

Possible to use one resource file with multiple languages?

I've got a .net 4.0 website that we have 2 copies of it running. One for US based users and another for AU based users. Code is basically the same, the only differences being some text and wording here or there where it references the US versus Australia. Right now I have two copies of the site which is pretty silly. So I want to maintain just one copy and put all these regional text changes in a resource file. 
Is it possible to have just a single resource file contain multiple 'languages' or do i need to create a Resource.US.resx and a Resource.AU.resx file? Also, if i do create two files, how do I tell .net which file to use in each site? I assume in the web.config globalization uiCulture & culture='en-AU' or en-US would tell .net which of the two files to use?

A:

Yes, you are right, you can use Resource.US.resx and a Resource.AU.resx files and tell in web.config globalization uiCulture & culture='en-AU' or en-US
in code:
    string culturePref = [Your setting from web-config]; // "en-US" or "en-EU"
    try
    {
        Thread.CurrentThread.CurrentCulture =
            CultureInfo.CreateSpecificCulture(culturePref);

    }
    catch
    {
        Thread.CurrentThread.CurrentCulture =
            new CultureInfo("en-US");
    }
    Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;

