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

How can I temporarily diable localization...

Hello,

I am trying to localize an existing application (asp.net 2.0). using
implicit as well as explicit localization.

Asp.net 2.0 uses App_LocalResources folder for implicit localization. When
this happens the tag values for Text, ToolTip etc. are not used from the aspx
file but read from the resource files. The problem is that most developers
works
on the aspx files to make and view changes.

We would like to have our developers work and test in aspx files and then we
would like to write a program to synchronize the text values from the aspx
files to the resource files (.resx files) later during the release.

Is it possible to temporarily switch off the globalization in asp.net 2.0
using some settings in web.config, or writing some C# program in
global.asax.cs. When the switch is off, I would like asp.net to work as if
there are no globalization resources (i.e. it should read text values from
aspx files and not the resource files).

Any input will be appreciated.

Thanks
--
-jojobar
Feb 3 '06 #1
3 1590
Hello jojobar,

Welcome to the ASPNET newsgroup.

From your description, you're developing an ASP.NET 2.0 web application
which use the "Local Resource" to localize all the pages in the
application. Currently you're wondering whether we can temporarily disable
using "Local Resource" and instead use the aspx template's setting for
those pages which is configured to use "Local Resource", correct?

Based on my research, when page is configured to use "Local Resource", the
localized controls are associated to their localized resource items by the
"meta:XXX" attributes, therefore, if we want to prevent the controls from
getting property values from "Local Resource" files, we have to remove the
"meta:XXX" attributes. There is no other attributes at page level or
application level which can disable the "Local Resource" setting(if the
page or control has used the "meta:xxx" attribute).

In addition, for your scenario, would you consider put all the test control
properties in the default "Local Resource" file at development time? Since
we can control the page or application to use a fixed culture/uiculture
setting, by put the test control property values in a certain culture's
"Local Resource" file, the pages can always read property settings from
that specific file.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 6 '06 #2
Thank you for your reply. I kindof figured this out after doing some
research. It would be nice to be able to do this though!
--
-jojobar
"Steven Cheng[MSFT]" wrote:
Hello jojobar,

Welcome to the ASPNET newsgroup.

From your description, you're developing an ASP.NET 2.0 web application
which use the "Local Resource" to localize all the pages in the
application. Currently you're wondering whether we can temporarily disable
using "Local Resource" and instead use the aspx template's setting for
those pages which is configured to use "Local Resource", correct?

Based on my research, when page is configured to use "Local Resource", the
localized controls are associated to their localized resource items by the
"meta:XXX" attributes, therefore, if we want to prevent the controls from
getting property values from "Local Resource" files, we have to remove the
"meta:XXX" attributes. There is no other attributes at page level or
application level which can disable the "Local Resource" setting(if the
page or control has used the "meta:xxx" attribute).

In addition, for your scenario, would you consider put all the test control
properties in the default "Local Resource" file at development time? Since
we can control the page or application to use a fixed culture/uiculture
setting, by put the test control property values in a certain culture's
"Local Resource" file, the pages can always read property settings from
that specific file.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 6 '06 #3
Thanks for your quick response.

Yes, I think this is a reasonable suggestion. You can also try posting it
in the MSDN feedback center to suggest such a feature:

http://lab.msdn.microsoft.com/produc...k/default.aspx

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 6 '06 #4

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

Similar topics

6
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...
2
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...
8
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...
5
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...
2
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...
0
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...
3
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...
3
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...
1
by: sumitkchauhan | last post by:
how to diable a command promt window using c/c++ so that nothing can be selected or copied from it.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.