Extending .NET G11n and L10n




I'm interested in extending what's available in the .NET framework
with regards to globalization and localization. I've read many
articles that discuss extending so that a datasource other than RESX
files (Ex: database) can be used, such as this one:


Most of these articles use the same idea of key-value pairs - just a
different datasource. I was wondering if anyone could provide some
insight as to whether it's possible to extend what .NET offers such
that content can come from, say, XML files. And not in the key-value
sense, but more along the lines of XPath or XQuery? If this is
possible, where might there be some good resources targeting .NET 3.5
to help get started? Thanks in advance.



Actually RESX files are XML files anyway. If you wanted to, you could get
that info into your own XML format and read it out using XPath etc, but you'd
have to write a fair bit of redundant code.

The basic premise of RESX's / key-value pairs is that the key is like the
placeholder on your page (eg: hello_label) with the value in each data
source/resx being the implementation of that key (eg: "hello", "ni hao") etc.
It's because of the simplicity of this structure that you don't have to spend
time defining your own XML structure.

For more info on localization, you can have a look at this post on my blog:

best regards,

bruce barker

the most common way of localization with xml is via xslt transformations. see
the Xml control.

-- bruce (sqlwork.com)

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