We are writing an ASP.Net C# application (VS 2003) and plan to use
embedded resources files for french, german and english UI.
I created resx files named _todo.resx and _todo.fr-CH.resx
Here is part of the code:
....
string txtReturn = "?";
ResourceManager locRM = new ResourceManager ("myapp.resourc es._todo",
Assembly.GetExe cutingAssembly( ));
CultureInfo ci = new CultureInfo("fr-CH");
Thread.CurrentT hread.CurrentCu lture = ci;
Thread.CurrentT hread.CurrentUI Culture = ci;
txtReturn = locRM.GetString (keyName);
return txtReturn;
....
Everything works fine on my development environment (Windows XP Pro).
However, when I deploy the application on a Windows 2003 STD server,
the application always use default values.
It behaves as if CurrentUICultur e could not be set, but if I display
CurrentUICultur e.Name, it shows "fr-CH".
I have tried almost any variations I could find in forums (using
ResourceSet built from ResourceManager , GetString(var, new
CultureInfo("fr-CH")))...), but none solve the problem.
The thing that drives me nut is the fact that VB applications on the
same server work perfectly using the same type of code to access
resources, and that this application works fine on an XP machine.
Any help is welcome.
Thank you. 1 1943
are u using satellite assemblies
actually i am not giving solution
just curious to know
--
Thanks and Regards,
Amit Agarwal
Software Programmer(.NET )
"Weenie the Pooh" <rm****@lanexpe rt.ch> wrote in message
news:96******** *************** ***@posting.goo gle.com... We are writing an ASP.Net C# application (VS 2003) and plan to use embedded resources files for french, german and english UI.
I created resx files named _todo.resx and _todo.fr-CH.resx
Here is part of the code:
... string txtReturn = "?"; ResourceManager locRM = new ResourceManager ("myapp.resourc es._todo", Assembly.GetExe cutingAssembly( )); CultureInfo ci = new CultureInfo("fr-CH");
Thread.CurrentT hread.CurrentCu lture = ci; Thread.CurrentT hread.CurrentUI Culture = ci; txtReturn = locRM.GetString (keyName); return txtReturn; ...
Everything works fine on my development environment (Windows XP Pro). However, when I deploy the application on a Windows 2003 STD server, the application always use default values. It behaves as if CurrentUICultur e could not be set, but if I display CurrentUICultur e.Name, it shows "fr-CH". I have tried almost any variations I could find in forums (using ResourceSet built from ResourceManager , GetString(var, new CultureInfo("fr-CH")))...), but none solve the problem.
The thing that drives me nut is the fact that VB applications on the same server work perfectly using the same type of code to access resources, and that this application works fine on an XP machine.
Any help is welcome.
Thank you.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.586 / Virus Database: 371 - Release Date: 2/12/2004 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nils Erik Asmundvaag |
last post by:
Hello
I hope someone is able to help me with this frustrating problem.
I have a C# web project in Visual Studio .NET 2003. I want to support
Swedish and Norwegian texts and have put the texts in resource files
(.resx).
I build the project from the IDE without errors. A main assembly
(containing the Swedish texts) are created, and a resource assembly
|
by: Bill |
last post by:
Hi Everyone,
I am having some difficulty in using the Windows Resource Localization
Editor (WinRes.exe) on several Visual Basic .NET forms (.resx files) in two
different projects. The editor gives an error when loading the .resx files.
When attempting to load a .resx file using WinRes under Visual Studio .NET
2003, the following error is displayed in the client area of the editor:
"An error occurred while loading the document. Fix...
|
by: Eric |
last post by:
Hi,
I'm just looking into the samples that are delivered withthe Enterprise
Localization Framework/Toolkit.
I have set it up and it all works fine.
But.. now i have a question.
I read a post, from a Microsoft employee i belief, and he stated the following:
>3) The AutoPopulate feature doesn't work as well as I
|
by: Weenie the Pooh |
last post by:
We are writing an ASP.Net C# application (VS 2003) and plan to use
embedded resources files for french, german and english UI.
I created resx files named _todo.resx and _todo.fr-CH.resx
Here is part of the code:
....
string txtReturn = "?";
ResourceManager locRM = new ResourceManager("myapp.resources._todo",
|
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
| |
by: steven |
last post by:
I have an asp.net webapp running on W2K server with .net framework 1.1
The intranet-app supports 2 languages: dutch (fallback language) and
french. The choice is made with 'Request.UserLanguages'
In IIS the application is configured to use only windows
authentication. The web.config file contains <identity
impersonate="true" />. When I restart the server, only the primary
..resx (language.resx) file is used. The file that should be...
|
by: Maileen |
last post by:
Hi,
I've created an assembly where are stores some strings.
By using menu items, user can change language of application GUI (so using the strings in my assemblies)
1. how can i compile my resx into dll ?
2. how can i use a resourcemanager to manage the resources ?
3. how can i do this (1. and 2.) without restarting application or form (due to initializecomponent function present in sub new of my form) ?
thanks a lot
|
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
|
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...
|
by: =?Utf-8?B?QnJhZCBBc2hmb3J0aA==?= |
last post by:
We have the environment mentioned above. The Server OS is Windows Server 2003
SP2 and the client machine is XPPro SP 2. Several years ago we coded the
application to "support localization". At that time we supported british and
italian only and were not aware of any issues. A new client is coming on
board who will also use british settings. The new client of course required
some customization and during test we found several places where...
|
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...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |