Search:
Namespaces
Discussions
.NET v1.1
Feedback
Localizing ASP.NET string resources
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngarchitecture' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Fakhreddine Essedik
Hi all,
I am creating a portal in ASP.NET that should bear the multi-language.
For the simple content as the new ones, I think the solution is
comparatively simple. But for the web forms, Microsoft counsels us to
use the resource files. But until now, I didn't succeed to make it work
in VS.NET with web forms, but it works with WinForms.
Would someone have an idea on the better manner to manage that?
Thanks in advance,
FAKHRI
Reply to this message...
Tim Musschoot
Hello,
check this: www.aspalliance.com/tim_musschoot
Regards,
Tim
----- Original Message -----
From: "Fakhreddine Essedik" <
Click here to reveal e-mail address
>
To:
Click here to reveal e-mail address
Sent: Fri, 19 Jul 2002 10:35:14 +0100
Subject: Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Ollie Cornes
Hi,
Check these out:
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp
http://www.devx.com/dotnet/articles/oc022102/Part2/oc040302-5.asp
http://www.devx.com/dotnet/articles/oc022102/Part3/oc050102-3.asp
It's a three-part series of articles on localizing in ASP.NET. The code is
downloadable from here:
http://www.devx.com/dotnet/articles/oc022102/Part2/localization.zip
Ollie
--
http://www.richtextbox.com/
The no. 1 content editor for ASP.NET
----- Original Message -----
From: "Fakhreddine Essedik" <
Click here to reveal e-mail address
>
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 10:35 AM
Subject: [aspngarchitecture] Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Damon Allison
Hi Tim,
I read your article and have a question. If I'm programming for a global
audience, why would I not use resource files and the built in capabilities
of the
ResourceManager
to retrieve localized strings? What the article asks
us to do is maintain our own list of locales (N, F, E) for each language.
This is already built into .NET, windows, and browsers and seems
unnecessary. I could also deploy resource only (satellite) assemblies and
get the advantages of no resource locking and versioning via the GAC.
Thanks,
Damon
----- Original Message -----
From: "Tim Musschoot" <
Click here to reveal e-mail address
>
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 6:50 AM
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Tim Musschoot
Hello,
I'm not familiar with the
ResourceManager
under ASP.NET. (if you can =
give me links to more info about this topic, please do). I developed =
the system when I migrated from ASP to ASP.NET. The big advantage is =
the fact the mainainer of the webapplication can add and adjust the =
language files withoud any help of the software engineer. Something you =
cannot do with resources I suppose... (if resources are included in =
your application source, you'll have to rebuild everything if something =
changes) Again, I'm not familiar with the
ResourceManager
, but I'll try =
to get some info about it...
Best Regards,
Tim Musschoot
----- Original Message -----
From: "Damon Allison" <
Click here to reveal e-mail address
>
To:
Click here to reveal e-mail address
Sent: Fri, 19 Jul 2002 07:41:28 -0500
Subject: Re: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 6:50 AM
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Damon Allison
The
ResourceManager
is a class that is responsible for retrieving values
from resource files. Search the SDK for System.Resources.
ResourceManager
I can see parallels between the .xml version you created for your asp
application and those provided by the framework. In fact, many of the
principles you used in your resource manager, like string based clutures (N,
E, F), xml configuration, and an object model for accessing the strings feel
very similiar to what the resoucemanager library provides. The .NET version
differs in that it forces us to create a separate physical file for each
resource, .NET reads cluture from the environment (
Thread
.CurrentCulture?),
and you can take advantage of the GAC if you want to compile the resources
into assemblies. (versioning, no locking when replaced).
Nice work on your article. To deploy something like you did in .asp was
definitely thinking ahead. Damon
----- Original Message -----
From: "Tim Musschoot" <
Click here to reveal e-mail address
>
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 8:15 AM
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
Hello,
I'm not familiar with the
ResourceManager
under ASP.NET. (if you can give me
links to more info about this topic, please do). I developed the system
when I migrated from ASP to ASP.NET. The big advantage is the fact the
mainainer of the webapplication can add and adjust the language files
withoud any help of the software engineer. Something you cannot do with
resources I suppose... (if resources are included in your application
source, you'll have to rebuild everything if something changes) Again, I'm
not familiar with the
ResourceManager
, but I'll try to get some info about
it...
Best Regards,
Tim Musschoot
----- Original Message -----
From: "Damon Allison" <
Click here to reveal e-mail address
>
To:
Click here to reveal e-mail address
Sent: Fri, 19 Jul 2002 07:41:28 -0500
Subject: Re: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 6:50 AM
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
| [aspngarchitecture] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngarchitecture.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Padmanabhan, Raman
Hi Damon,
I have used the
ResourceManager
and Resource Files (.resx and
.resources) to achieve Localization for our web site. I know this approach
works with European languages that are all single byte but I'm not sure if
this approach works for Double byte (support for Kanji, Korean ,Chinese
etc).
I would highly appreciate if someone could provide any info on this.
-R
-----Original Message-----
From: Damon Allison [mailto:
Click here to reveal e-mail address
]
Sent: Friday, July 19, 2002 8:41 AM
To: aspngarchitecture
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
Hi Tim,
I read your article and have a question. If I'm programming for a global
audience, why would I not use resource files and the built in capabilities
of the
ResourceManager
to retrieve localized strings? What the article asks
us to do is maintain our own list of locales (N, F, E) for each language.
This is already built into .NET, windows, and browsers and seems
unnecessary. I could also deploy resource only (satellite) assemblies and
get the advantages of no resource locking and versioning via the GAC.
Thanks,
Damon
Reply to this message...
Fakhreddine Essedik
Hi,
I find your method interesting and very effective , but I believe that
if the XML document has a big size, there be a problem of performance.
Regards,
FAKHRI
-----Original Message-----
From: Tim Musschoot [mailto:
Click here to reveal e-mail address
]
Sent: vendredi 19 juillet 2002 12:51
To: aspngarchitecture
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
Hello,
check this: www.aspalliance.com/tim_musschoot
Regards,
Tim
----- Original Message -----
From: "Fakhreddine Essedik" <
Click here to reveal e-mail address
>
To:
Click here to reveal e-mail address
Sent: Fri, 19 Jul 2002 10:35:14 +0100
Subject: Localizing ASP.NET string resources
[Original message clipped]
| [aspngarchitecture] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngarchitecture.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Tim Musschoot
agreed, but I use one XML file for each page. In case the filesize is =
too big, you can create a different file for each language...
----- Original Message -----
From: "Fakhreddine Essedik" <
Click here to reveal e-mail address
>
To:
Click here to reveal e-mail address
Sent: Fri, 19 Jul 2002 15:21:42 +0100
Subject: RE: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
Sent: vendredi 19 juillet 2002 12:51
To: aspngarchitecture
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
To:
Click here to reveal e-mail address
Sent: Fri, 19 Jul 2002 10:35:14 +0100
Subject: Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Ollie Cornes
I believe that the .NET Framework and ASP.NET are both unicode-enabled and
therefore the localization features will work in any language. I have
successfully written code that uses resources to localize in French,
English, Japanese and Mandarin Chinese.
Ollie
--
http://www.richtextbox.com/
The no. 1 content editor for ASP.NET
----- Original Message -----
From: "Padmanabhan, Raman" <
Click here to reveal e-mail address
>
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 2:23 PM
Subject: [aspngarchitecture] Re: Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Brian Bilbro (VIP)
I've used Resource files successfully in globalizing ASP.NET applications
before. What kind of problems are you running to?
Some resources:
Dr Dobbs had a article a few issues ago (April 2002 issue):
http://www.ddj.com/articles/2002/0204/
Ollie Cornes has a nice three part article on the topic:
http://www.devx.com/dotnet/articles/oc022102/oc022102-1.asp
Here's another resource (I haven't read this one):
http://www.fawcette.com/reports/vslive/021302/aspnet/default.asp
--
Brian
----- Original Message -----
From: "Fakhreddine Essedik" <
Click here to reveal e-mail address
>
To: "aspngarchitecture" <
Click here to reveal e-mail address
>
Sent: Friday, July 19, 2002 5:35 AM
Subject: [aspngarchitecture] Localizing ASP.NET string resources
[Original message clipped]
Reply to this message...
Joel Faigan
I have managed to get my ASP.Net site working with resource files (in satelite assemblies) but the issue I am running into now is "how do I search my site's content?". Since all the static text is compiled into the assembly, how do I offer a site search feature?
Really hope someone can point me in the right direction!
Regards,
Joel.
--------------------------------
From: Joel Faigan
Reply to this message...
System.Resources.ResourceManager
System.Threading.Thread
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com