473,782 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_LocalResour ces 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 1613
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
1991
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
1567
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
2544
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
2653
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
3584
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
1645
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
2242
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
6470
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
1302
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
10311
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...
0
10146
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
10080
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
9942
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
7492
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
5378
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...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
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.