Hi,
I have a slight problem, I have a sight, which has Internationalisaton using the Global Resources folder, and different cultures per language. For example I have a Jobs page, and corresponding jobs resx files:
jobs.resx
jobs.en-gb.resx
THe problem is the application is now working for jobs and courses. Jobs are one mode, and Courses are the other. Based on the host header of the site that you access you'll either get Jobs or Courses. The functionality for both Jobs and courses is the same, the only difference is the text that appears on the page.
So what I'd like to be able to do is have a mode, and a check like this:
if ( mode == "Courses")
{
// Use Courses.resx
}
else
{
// Use Jobs.resx
}
Does anyone know how this can be achieved?
Could I fudge the CultureUI to be say Mexican, and leave the Culture to auto. That way in the Mexican version of the resx file I could setup the text correctly for Courses?
Don't really like the above solution, but it could work.
Note: We are accessing data from resource files in the following manner:
Text="<%$ Resources:Jobs, JobStartDate %>"
this.lblJobStartDate = Resources.Jobs.JobStartDate
Any help greatly appreciated.