473,811 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Localization blues....

Hello. I have the following problem:

In a test page I have

<asp:Label ID="lblTestReso urceFiles"
runat="server"
Text=""
meta:resourceke y="String1">
</asp:Label>

Under App_GlobalResou rces I have

Scorecards.fr.r esx
and
Scorecards.resx

They contain Name = String1 and Value = This is the text in ENGLISH !
or Ceci est le texte en francais ! respectively.

In Welcome.aspx.vb I have the code:
_______________ _______________ _______________ ______________
Protected Overrides Sub InitializeCultu re()
g_strWebSiteLan guage = Context.Request .Params("Lang")
If Not String.IsNullOr Empty(g_strWebS iteLanguage) Then

If g_strWebSiteLan guage = "fr-CA" Then
UICulture = g_strWebSiteLan guage
Culture = g_strWebSiteLan guage
System.Threadin g.Thread.Curren tThread.Current Culture =
System.Globaliz ation.CultureIn fo.CreateSpecif icCulture(g_str WebSiteLang
uage)
System.Threadin g.Thread.Curren tThread.Current UICulture = New
System.Globaliz ation.CultureIn fo(g_strWebSite Language)

Else 'Default to language "en"
UICulture = "en-CA"
Culture = "en-CA"
System.Threadin g.Thread.Curren tThread.Current Culture =
System.Globaliz ation.CultureIn fo.CreateSpecif icCulture("en-CA")
System.Threadin g.Thread.Curren tThread.Current UICulture = New
System.Globaliz ation.CultureIn fo("en-CA")

End If
End If
MyBase.Initiali zeCulture()
End Sub
_______________ _______________ _______________ ______________
where g_strWebSiteLan guage is defined as public string in a module,

and the projects property pages state:

Start Action = Specific Page = Welcome.aspx?La ng=fr_CA

I am expecting to see the label change text from "This is the text in
ENGLISH !" to "Ceci est le texte en francais !" and viceversa,
depending on the parameter "LANG". However, I see none of that. What
am I doing wrong ?

Thanks.
Alex.

Jan 29 '07 #1
0 970

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3183
by: Frank | last post by:
Hi, we are using oracle clients (Release 9.0.1.0.1 - Production) on an NT4 (Service Pack6) computers. the server is a W2K, (Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the Partitioning option,JServer Release 9.0.1.1.1 - Production) machine. now we are going to update several of those client boxes to a dual processor board. - great thinking but they are randomly crashing to blues screen. okay it is ms but the old...
0
533
by: Amin Schoeib | last post by:
Hi, I am a Postgres newbie who worked until now with Oracle. Now I want to know if it is possible (when yes the how?) in Postgresql To set dynamically the Localization? For example in Oracle you can set the Localization for dates like this Alter session set NLS_DATE_LANGUAGE=American NLS_TERRITORY=America This example would set the Date-Localization to American but only for the actual session. Is something like this possible in...
6
1992
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with --->LocalizationManagement.exe, I get an exception: --->Unable to generate loose file resources
2
1568
by: Julia | last post by:
Hi, We want to migrate out asp application to asp.net and take advantage on localization. I want to ask how it is advice to structure the site directory I am going to use resource only assemblies The site is an intranet site so I don't see problems to cache some resource
8
2546
by: Olivier Matrot | last post by:
I encounter a problem with Localization features in ASP.NET 2.0. Is seems that the framework is not able to manage neutral cultures such as 'fr', or 'de'. Those are the culture sent by default from a french or German Internet Explorer in France or Germany. There is a runtime error "System.NotSupportedException: Culture "fr" is a neutral culture. It can not be used in formatting and parsing and therefore cannot be set as the thread's...
5
2655
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope someone can give me a clue... Questions: 1) Do my eyes deceive me or is it true that localization is still totally utterly disengaged from the Designer and Property Editor... either in source
2
3587
by: bruno | last post by:
I need to localize my ASP.NET app and I just used "Tools" --"generate local resources" command and everything works fine in my WebForms. Resource file name is: MyWebForm.aspx.resx under a subDir named: "App_LocalResources" inside the App directory. Now I need to localize some messages my VB app sends to the user. What I'm looking for is a way to read from a .resx file and get the appropriate values. I found some examples like this...
0
1648
by: shapper | last post by:
Hello, Sometime ago I followed an article (I believe MSDN) related with localization in Asp.Net 2.0. To make pages localization I create a class named Localization: 1 Public Class _Localization 2 Inherits Page 3
3
2244
by: Corey B | last post by:
I have an ASP.NET application that was built in ASP.NET v1.1. It has a SQL Server back end database. I have been asked to provide an estimate for the level of effort required to produce a Chinese version of the application. I have read a bit about localization in .NET. However I have no experience with actually implementing localization. Can anyone out there provide some sort of idea as to how difficult or easy this may be? It...
3
6471
by: Computer Guru | last post by:
I have a VB.NET 2005 application with several forms and a couple hundred "strings." I've been looking into all the localization improvements in VB.NET, and I can't seem to find anything that does what I'm looking for. My application has all the strings hard-coded, I wasn't planning on localizing it when I first built it. But that's OK, I am perfectly willing to re-create a resource file for en_US with the required data.
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10395
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9211
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5564
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4352
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3876
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.