开发者

Convert a system to multilanguage

开发者 https://www.devze.com 2023-01-12 18:49 出处:网络
I have to translate a web application written in asp.net / javascript with a lot of html/javascript code created in the codebehind, which approach could be 开发者_如何学Gothe best to translate it, or

I have to translate a web application written in asp.net / javascript with a lot of html/javascript code created in the codebehind, which approach could be 开发者_如何学Gothe best to translate it, or make it multilanguage support?


Move all the text into a resource file, then extend the resource file by an additional language.

Then have someone check the presentation in the other language and discover what a pain in the butt supporting applications in multiple languages is.


We've created a database to save all our translations. You can find a translation by keyword (this can be the English word or something else).

Something like this:

Keyword       English          Dutch       French
welcome       welcome          welkom      bonjour
assign_user   Assign a user    ...         ...

In our web application, we've created a class which needs the keyword and the current language, queries the database and returns the translated word. Our web application also uses a lot of JavaScript and this hasn't been a problem; it's very flexible.

0

精彩评论

暂无评论...
验证码 换一张
取 消