473,394 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.Net 2.0 - Resource Files - Culture Specific And Mode specific

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.
Jun 23 '07 #1
0 887

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Sarah Woodfield | last post by:
Hi, I have written an application in VB.Net which runs well on my development PC. However on a few clients machines, at apparently random intervals, they get the above message and the programme...
0
by: Patrick | last post by:
Hi all, I have a very strange problem with my resource files. I have build an applicatie which uses resource files, but for some reason only the default language works as it should. I use the...
0
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
1
by: urban.john | last post by:
Here are my steps: create resource files from resx files: <echo message="CREATING RESOURCE FILES FROM RESGEN EN" /> <resgen todir="product\resources_en" verbose="true"> <resources> <include...
0
by: vivek | last post by:
localization of lang. using resource files resides in the global resources folder (App_GlobalResources). Currently In my application, I need to have different language resource files in global...
1
by: Jason | last post by:
Greetings , I'm studying for a MS exam and I'm a little confused about assemblies. Not what they are but just a specific comment that I'm reading and it doesn't make sense to me. It reads ...
5
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
0
by: VigneshS | last post by:
Hi, I am a newbie to Globalization and Localisation Concepts. I tried almost all the methods of the Globalization concepts. But i cannot be able to embed a text file within a Resource. ...
1
by: TisMe | last post by:
Hi All, I am trying to use resource files to globalize my website application. I had this working fine, working through the API for setting page titles programatically, with the resource files...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.