implicit vs explicit localization

S

Steven Cheng[MSFT]

Hello Dave,

Would provide some further explanation on the implicit and explicit
localization? Do you mean statically through declarative directive and
attribute in template verus programmatically localize through code?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steven Cheng[MSFT]

Thanks for your reply Dave,

Well, IMO, I think implicit and explicit localization has their own focus
and strengh respectively.

For implicit localization, it rely on the new Localization Page feature
provided by ASP.NET 2.0/VS 2005, you can generate page specific resx files
for each page, and in that file, it will only contains resourcekeys
associated with controls in the corresponding page. And for the
"meta:ResourceKey" of the certain control on a localized page, they're
always refering to the resource file associated with that page, but not
other resource files.

While for explicit localization, it is more flexible, you can use
<%$Resource %> expression to load resource value from any resource file in
the application, not limietd to the resource file associated with the page
only. For example, you may store all the error message resource values in
a single global resource file in the application and these messages will be
used among multiple pages, here use <%$Resource %> expression is the
prefered approach. do you think so?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

What bothers me with the local files is I then end up with 28 aspx pages * 21
languages whcich gives me 588 files - all in 1 directory. If it did language
subdirectories local would be a great solution.

There is also the problem with localizing GridView - it looks using localize
means I need the same text in each file that matches an aspx file that has
the GridView. So I have to repeat the same text over and over.

I'm not wild on any of the solutions as I see them.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
S

Steven Cheng[MSFT]

Thanks for the reply Dave,

Yes, the VS IDE will create a App_LocalResource sub dir for each Folder in
your ASP.NET application, so if you have lots of pages in a single folder,
the App_LocalResource will contains plenty of resource files. However, at
precompile time, they'll be precompiled as assemblies.

For GridView, generally, we suppose that each page that contains GridView
will has different text setting in it. If you have multiple GridView in
different pages that have common text string setting, it does become
redundant to use Local Resource file. Maybe using shared resoruce file
would be more appropriate.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top