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

Strange behaviour with localization and Master Pages

I'm having a weird behaviour when implementing localization resource
files in my website. This looks like a .Net bug to me, but it's too
obvious to be there, so I must be overlooking something.

I have the following file structure:
+ root folder
|-----Masterpage.master
|-----Somepage.aspx
|-----App_LocalResources
| |----- MasterPage.master.resx
| |----- MasterPage.master.es.resx
|
|-----UserControls
|----- SomeControl.ascx
|----- App_LocalResources
|----- SomeControl.ascx.resx (plus it's spanish
version)

Somepage.aspx uses MasterPage.master, and in the MasterPage, some
UserControls from the UserControls folder are used.
Both the MasterPage itself, and the controls it uses show texts that
are localized.
Now, I first created the whole website in English, ready to be
localized (every text inside literal or localize controls, etc), and
now I've started creating the actual .resx files. I created the "Local
Resource" RESX files for the master page, and the user controls in it,
and it all looks great.
I open Somepage.aspx, and the "things" around it (the master page)
change languages perfectly.

The problem appears when I generate the local resource file for
Somepage.aspx. As soon as I do, all the texts in the master page and
its controls go back to English, they stop getting "localized", for
that page only.Even though there is a SomePage.es.resx, neither the
contents of the page, nor the Master Page get localized.

Again, I must be missing something very big here, but I can't find it.
If you want to see this happening, you can go to: http://peptido.dyndns.org/

The texts on the footer are on the master page itself. The ones on the
header ("Hello Guest") are in a User Control inside the Master Page.
Everything below the Blue bar, and above the footer tab is the content
of individual pages.
As you can see, by clicking on the flags on the top, texts DO get
localized (in the header and footer), no matter what page you navigate
to.
Now, if you navidate to http://peptido.dyndns.org/error.aspx (this is
the one i'm using for testing, and it's the only localized page)
you'll see that it does NOT get localized, and neither do the
surroundings.

Any help or pointer will be greatly appreciated

Thanks in Advance
Daniel Magliola

Apr 9 '07 #1
0 2788

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

Similar topics

4
by: Anja | last post by:
Hi, At the end of one of my php pages, I have a statemtent echo "<meta http-equiv=\"refresh\" content=\"0; url=Master.php\"> " ; which works well: it redirects to my page 'Master.php'. But,...
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...
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
0
by: micky | last post by:
i'd like to use localization programatically at first, i using like this... protected override void InitializeCulture() { String selectedLanguage = "en-US"; UICulture = selectedLanguage;...
1
by: Bruno Alexandre | last post by:
Hi Guys, I'm driving crazy here with Localization issue, this is what I have now: masterpage.master - with some asp:linkbutton like this: <asp:LinkButton PostBackUrl="~/login/Default.aspx"...
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...
2
by: Hans Artm | last post by:
Hi, We are developing a site that needs to be localized (english + spanish). The site has a lot of "static" pages with a lot of text, and some dynamic pages. We are unsure how to develop the...
3
by: Jordan S. | last post by:
I'm looking to localize an ASP.NET Web application for English, Spanish, and French (fr-CA), and was just considering the possibility of localizing the meta tags (e.g., keywords, title, and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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...

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.