Last post Jun 17, 2006 03:55 AM by lucdlucd
Apr 23, 2006 05:38 AM|Psykik|LINK
select news_id, date, title_nl, content_nl ......
select news_id, date, title_en, content_en ....
SelectCommand="Select date, title" + "<%$ Resources:Resource, LanguagePrefix %>" + " ... (and so on...)
SelectCommand="Select date, title"+meta:resourceKey="LanguagePrefix"+"... (and so on...)
Apr 24, 2006 12:36 PM|Caddre|LINK
Try the links below the first is a three part article on localization and there is a link for Asp.net 2.0 localization resources in the second link.
Apr 24, 2006 01:34 PM|Psykik|LINK
Apr 24, 2006 02:11 PM|Caddre|LINK
Apr 25, 2006 10:57 AM|lucdlucd|LINK
If you wish, you can see it in action, checj this thread and dowload the zip file...
See Resource and LocalizedResource in the BLL classes
Or drop me a mail, i'll send you localized classes samples
You can just adapt it to your News class...
Luc from Brussels
Apr 26, 2006 04:18 AM|Psykik|LINK
Jun 16, 2006 09:06 AM|lucdlucd|LINK
Sorry for late answer, i was not able to connect the forum anymore [:^)]
That's always the problem with localized websites, the customer need and want many languages, but never translate it...
As for the blanks when locales are not translated, the resource manager displays the default culture value if no locale exists... see ResourceManager.GetResource, all default values are loaded first.
For other ojects with localized values, I always use DB select statements with "SELECT CASE" to return the defautl culture translation if no localized value exist... no blanks here neither..
I now use this localization module in asp.net 2, and it work like a charm (with 9 translators working on it)... i put far more than simple labels in it.
If your website is small, may the DB Resourcemanager only could suffice ?
It just miss a image manager to upload pictures and i would use it as a static pages editor (next step)
Jun 17, 2006 03:55 AM|lucdlucd|LINK
If you did not install it yet, you may want to read that for asp.net 2 custom localization