c# - Support Multi Language in current website -
we have big asp.net web site (actually web project), pages in english, company decide support france , dutch?
so best option this,
the main factors is:
1-performance
2-fast , easy implementations
3-generic solution easy add new language
i think options:
1- add page each current page (so need add 800 pages each language)
2- translate texts in code behind: button1.text = gettext("button1");
3- add method translate texts:
void translate (control control) { foreach(control cn in control.controls) { translatealltextsofcontrol(cn); } }
so options?
some 1 must did this? best solution really? suggestion?
depending on state of project need assess whether quick hack vs globalization/localization solution need.
you should check out these articles:
http://www.codeproject.com/articles/38907/asp-net-localization-quick-reference http://msdn.microsoft.com/en-us/library/ms247245(v=vs.100).aspx
and figure going take more work.
typically (in initial stages of application itself) architect system globalization. there isn't other solution.
i suggest going proper globalization route, adding new language creating right resource files , supplying them application.
a non-generic hack, the code you've added bite , special hell if had support right-to-left languages in future.
Comments
Post a Comment