473,657 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help regarding localization.

Hi all,

I am having confusion regarding localization in .net.

I have one form on which i have some labels and button. After designing
that form what i did is set localization property of form to true and i
set language as french.

But still it is not changing caption of controls which are there in
form.

What should i do to make all content of all controls of form to french.

If anyone can shed some light on it then it will be really beneficial
for me.

thanks in advance.

Jun 19 '06 #1
5 2404
> I am having confusion regarding localization in .net.

I have one form on which i have some labels and button. After designing
that form what i did is set localization property of form to true and i
set language as french.

But still it is not changing caption of controls which are there in
form.

What should i do to make all content of all controls of form to french.

If anyone can shed some light on it then it will be really beneficial
for me.

thanks in advance.


It doesn't translate it for you automatically. Read up on "satellite
assemblies" for complete details.
Jun 19 '06 #2
hi,

thanks for your reply.

Let me explain in brief what i want.

I created one console application and one resx file. Then from this
resx file i generated another resource file with language as german.

then i generated resource file for this using resgen and then created
resource dll using al.exe

when i add this dll to bin folder and get message from this resource
file it is working properly.

But now here my problems start.

I have one windows application with some controls. What i did is i set
localization property of form to true and language as german. After
doing that file with name 'Form1.de.resx' is automatically generated.
But when i try to find out data of this resource file it is not showing
me anything. what i am expecting is it should alleast show me resources
which are there in original file i.e 'Form1.resx'

Can you tell me why this is happening. If i am wrong please correct me.

Thanks in advance.

Michael Brown wrote:
I am having confusion regarding localization in .net.

I have one form on which i have some labels and button. After designing
that form what i did is set localization property of form to true and i
set language as french.

But still it is not changing caption of controls which are there in
form.

What should i do to make all content of all controls of form to french.

If anyone can shed some light on it then it will be really beneficial
for me.

thanks in advance.


It doesn't translate it for you automatically. Read up on "satellite
assemblies" for complete details.


Jun 20 '06 #3
> I created one console application and one resx file. Then from this
resx file i generated another resource file with language as german.

then i generated resource file for this using resgen and then created
resource dll using al.exe

when i add this dll to bin folder and get message from this resource
file it is working properly.

But now here my problems start.

I have one windows application with some controls. What i did is i set
localization property of form to true and language as german. After
doing that file with name 'Form1.de.resx' is automatically generated.
But when i try to find out data of this resource file it is not showing
me anything. what i am expecting is it should alleast show me resources
which are there in original file i.e 'Form1.resx'

Can you tell me why this is happening. If i am wrong please correct me.


Please elaborate when you say "it is not showing me anything what (sic) i am
expecting ...". Presumably you mean at runtime (not build time). If you're
following the standard model for using satellite assemblies (probably),
you'll end up with one version of "<YourAppName>. resources.dll" for each
language you're supporting (after compiling your app). You'll find each
version in its own language directory so in your case look for it under a
"de" folder normally found under the "bin" directory off your program's main
(source) folder. This file will contain all embedded German resources for
your app including your "Form1.de.r esx" file (stored in the ".dll" as
"<YourDefaultNa mespace>.Form1. de.resources"). When you distribute your app,
you simply create a "de" subfolder under the main folder containing your
app's main ".exe" and copy the German version of
"<YourAppName>. resources.dll" to this directory. When the form is loaded, it
will then (normally) appear in German on a German version of Windows but for
any other version you normally have to invoke the following on the thread
that creates the form *prior* to loading the form (otherwise the OS's
default language will be used - note that you have to do this even in your
debug version which may be the problem you're experiencing):

Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("de ");

The form will now load in German.

Hope that helps.
Jun 20 '06 #4
Hi,
thanks for your reply.

basically my form1.resx has some controls and some strings.
When i change languate to german it has created new resx file with name
form1.de.resx but with no data in it. what i am expecting is it will
contains same resources as that of form1.resx which is not happening.

If i am wrong then please correct me

Thanks.
Michael Brown wrote:
I created one console application and one resx file. Then from this
resx file i generated another resource file with language as german.

then i generated resource file for this using resgen and then created
resource dll using al.exe

when i add this dll to bin folder and get message from this resource
file it is working properly.

But now here my problems start.

I have one windows application with some controls. What i did is i set
localization property of form to true and language as german. After
doing that file with name 'Form1.de.resx' is automatically generated.
But when i try to find out data of this resource file it is not showing
me anything. what i am expecting is it should alleast show me resources
which are there in original file i.e 'Form1.resx'

Can you tell me why this is happening. If i am wrong please correct me.


Please elaborate when you say "it is not showing me anything what (sic) i am
expecting ...". Presumably you mean at runtime (not build time). If you're
following the standard model for using satellite assemblies (probably),
you'll end up with one version of "<YourAppName>. resources.dll" for each
language you're supporting (after compiling your app). You'll find each
version in its own language directory so in your case look for it under a
"de" folder normally found under the "bin" directory off your program's main
(source) folder. This file will contain all embedded German resources for
your app including your "Form1.de.r esx" file (stored in the ".dll" as
"<YourDefaultNa mespace>.Form1. de.resources"). When you distribute your app,
you simply create a "de" subfolder under the main folder containing your
app's main ".exe" and copy the German version of
"<YourAppName>. resources.dll" to this directory. When the form is loaded, it
will then (normally) appear in German on a German version of Windows but for
any other version you normally have to invoke the following on the thread
that creates the form *prior* to loading the form (otherwise the OS's
default language will be used - note that you have to do this even in your
debug version which may be the problem you're experiencing):

Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("de ");

The form will now load in German.

Hope that helps.


Jun 21 '06 #5
> Hi,
thanks for your reply.

basically my form1.resx has some controls and some strings.
When i change languate to german it has created new resx file with name
form1.de.resx but with no data in it. what i am expecting is it will
contains same resources as that of form1.resx which is not happening.

If i am wrong then please correct me


It won't contain everything that's in "form1.resx " itself, only those
properties that you've explicitly changed into German (text strings only
typically). The entire form can basically be re-created using "form1.resx "
itself so "form1.de.r esx" will be just a tiny subset of this normally
(containing German changes only). You need not worry about these details
however. The system will find everything it needs for you.
Jun 21 '06 #6

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

Similar topics

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...
1
1295
by: KMILO | last post by:
Hello, Thanks ins advance for reading my message Im trying to use many .resx files for different webforms when I try to the project the following error appears: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Site.resources" was correctly embedded or linked into assembly "Site". baseName: Site locationInfo: <null> resource file name: Site.resources assembly:...
2
1706
by: Paul M | last post by:
Hi there, can anyone help me with this one.... i have a page which is in normal english format, but when i wanna change it to Russian format text, i set the Culture code, but it still remains the same. Does this mean that every bit of text i need to convert every label on my screens in order for them to show or is there an easier way to this? thanks for anybody's help.
6
1981
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
5
2646
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
3568
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...
3
2233
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
6467
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.
1
1584
by: 2310b | last post by:
I have a web form in which i use OnPreRender to load controls. it works fine BUT no matter what other events I call, the OnPreRender keeps executing. If I click on one of the buttons to fire off the OnClick event, the OnPreRender runs!!! I don't get it. I've never seen this behaviour before. Does anyone have any ideas??? here's part of the class... namespace mynamespace { /// <summary>
0
8394
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
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
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
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6164
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
5632
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();...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.