473,320 Members | 2,035 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,320 software developers and data experts.

Localizable=true has no effect

Hi
I have a project with quite a number of dialogs in it all with
Localizable=true, and all except one working fine.
But the one is causing me trouble because even though Localizable=true is
set, all strings (.Text properties and the like) are still written to
InitializeComponent() in the .cs file instead of to the .resx file.
I have tried setting the Localizable to false again,
saving/building/restarting studio, and then setting Localizable to true
again but it does not help at all - all strings are still in the .cs file
and when I create a new Menu Item using the designer its .Text is written to
InitializeComponent.
It is only for this one dialog - all other dialogs work as expected.
I have checked my source control and it seems that the problems started when
I migrated from VS2003 to VS2005 - in the last 2003 version the dialog is
loading the strings from the resource manager in the same way as all the
other dialogs, and in the first 2005 version it has the strings written
directly in the .cs file while the other dialogs is doing
resources.ApplyResources. I am not entirely sure that it happened at
migration though as I made other changes after migrating and before checking
in to source control.
Anyone knows a solution? And please do not suggest reimplementing the
dialog - it's huge.
Best regards,
Peter
Aug 17 '06 #1
2 3119
I have found out that this is caused by a 3rd party control I have added to
the dialog. If I remove this control the texts goes back in place (into the
..resx) again and then I add it returns to the .cs file.
Can anyone explain this behaviour and suggest what I can do to work around
it?
/Peter

"Peter Vestergaard" <po*****@hotmail.comwrote in message
news:44*********************@dreader2.cybercity.dk ...
Hi
I have a project with quite a number of dialogs in it all with
Localizable=true, and all except one working fine.
But the one is causing me trouble because even though Localizable=true is
set, all strings (.Text properties and the like) are still written to
InitializeComponent() in the .cs file instead of to the .resx file.
I have tried setting the Localizable to false again,
saving/building/restarting studio, and then setting Localizable to true
again but it does not help at all - all strings are still in the .cs file
and when I create a new Menu Item using the designer its .Text is written
to InitializeComponent.
It is only for this one dialog - all other dialogs work as expected.
I have checked my source control and it seems that the problems started
when I migrated from VS2003 to VS2005 - in the last 2003 version the
dialog is loading the strings from the resource manager in the same way as
all the other dialogs, and in the first 2005 version it has the strings
written directly in the .cs file while the other dialogs is doing
resources.ApplyResources. I am not entirely sure that it happened at
migration though as I made other changes after migrating and before
checking in to source control.
Anyone knows a solution? And please do not suggest reimplementing the
dialog - it's huge.
Best regards,
Peter

Aug 18 '06 #2
On Fri, 18 Aug 2006 09:07:42 +0200, "Peter Vestergaard"
<po*****@hotmail.comwrote:
>I have found out that this is caused by a 3rd party control I have added to
the dialog. If I remove this control the texts goes back in place (into the
.resx) again and then I add it returns to the .cs file.
Can anyone explain this behaviour and suggest what I can do to work around
it?
/Peter
A long shot - perhaps the name of your dialog clashes with something
in the third party control. Try changing the name of your dialog and
see what happens.

Also read the manual for the third party control to see if that says
anything about the problem. Do they have a help desk or support forum
- that might also help.

rossum

Aug 18 '06 #3

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

Similar topics

1
by: Horatiu Ripa | last post by:
I have a control that has some localizable stuff on it (i.e a GroupBox.Text property). I'm exposing this property of myGroupBox for the container designer through: public string The_Caption {...
0
by: Kevin | last post by:
This problem has stumped me for almost two years now. In a nutshell... 1) I create a textbox class, and set the font to Tahoma 8 2) I drop the textbox class on a form, and set other properties...
3
by: Robin Tucker | last post by:
I did a little experiment during localization of my software (or at least preparations for localization) - without adding any language resources, I just went through changing the Localizable...
1
by: Christophe Peillet | last post by:
I have a CompositeControl with two types of properties: 1.) Mapped Properties that map directly to a child control's properties (ex.: this.TextboxText = m_txt.Text). These properties are handled...
3
by: Michael Brown | last post by:
Hi there, After applying the "Localizable" attribute to my form using the (form) properties window in VS, I was expecting to see "" preceding my form's class in code (added automatically by the...
7
by: Ryan | last post by:
I'm creating a user control that has a handful of controls on it (19 in total). One of the controls on the UC is a textbox for a user's password, so I've set the PasswordChar property to "*". I...
0
by: Clive Dixon | last post by:
If I add a property of type string to a form which has attribute , the form editor stores the string list I enter in the associated .resx file as a base 64 string. Does anyone know of any resource...
1
by: choupi | last post by:
Hi, When Localizable = True for my Form, the ImageList of my TreeView control doesn't show any image anymore (blank instead). The strange thing is that the problem doesn't appear in another...
0
by: Johnny Jörgensen | last post by:
I had a project where I happened to set Localizable = true for a form just to test it. But I decided agains making a multi language application, and set Localizable = false again. Now, whenever...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.