473,385 Members | 1,445 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,385 software developers and data experts.

Resource File Issue

103 100+
Hi,

I have to get the dropdownlist values in different languages when i open different versions(languages) of same website.

For example,

I have a dropdownlist with values "10inch","20inch". and if i open french site,
i have to get "10pouces","20pouces".

Please help me..

I am using VS2008...

Thanks in advance,

Mathew.
Sep 10 '08 #1
3 1058
nateraaaa
663 Expert 512MB
The MSDN has a lot of useful information on this topic. Research the use of System.Globalization and CurrentCulture.

Nathan
Sep 10 '08 #2
mathewgk80
103 100+
The MSDN has a lot of useful information on this topic. Research the use of System.Globalization and CurrentCulture.

Nathan
Hi Nathan,

I would like to get the source code for my requirement specified above..

Please help me..

Thanks and Regards,
Mathew
Sep 10 '08 #3
Plater
7,872 Expert 4TB
Well we don't do source code, see posting guidelines, but we might be able to help point you in the right direction.
To be clear, you wish to develope a website that changes depending on the language settings of the user who visits it?
There is a header that would be sent in the Request called "Accept-Language" that should contain the values you need to look at.
Example:
Expand|Select|Wrap|Line Numbers
  1. Accept-Language: en-us,en;q=0.5
  2.  
Since my culture is set to en-us, it sent en-us

You can use that as a base to decide what language to show your page in (using the System.Globalization and CurrentCulture mentioned earlier) and then it would be a good idea to have a small section somewhere that would let the user manually choose what language to view the page in.
Sep 11 '08 #4

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

Similar topics

11
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
0
by: SHC | last post by:
Hi all, I saw the following 2 files used in the OpenGL and DirectX 9 programming: 1) resource.h //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by...
6
by: martin | last post by:
Hi, I have noticed that every aspx page that I created (and ascx file) has an assosiated resource file aspx.resx. However what I would like to do is have a single global resource file for the...
2
by: JollyK | last post by:
Hello friends, In a large asp.net project, I don't think it is a good idea for having one common resource file containing all localized strings for the whole application. I think a better...
0
by: Tyrven | last post by:
I have a localized website that has been in production for sometime. Recently, localizations for one particularly locale (zh-TW) stopped displaying on the test application; the same locale works...
1
by: Dom | last post by:
I get an InvalidOperationException with the message "The resource class for this page was not found. Please check if the resource file exists and try again." when I change the resource file of a...
0
by: gopal | last post by:
Hi, I had an issue with loading/using resource file. I thought i will share this information if it helpful some . I have a console C# application and inside this i have class definition as...
7
by: craig | last post by:
....quick question for anyone who might have some experience with .net resource files in VS 2003. I have an application that is not localized, but I would still like to be able to place all of...
2
by: Andrus | last post by:
I have resource files in different languages created by VCS 2005 Express. I want to use those files to translate reports at runtime. I have text to be translated as string. I think I need to...
0
by: =?Utf-8?B?UGF1bCBIYWdlcg==?= | last post by:
I've been trying to solve this issue for the better part of a month. My attempts to get an answer on the MSDN groups proved to no avail. Here is the situation/problem. I am migrating an old...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.