Hari Subramaniam
Hari Subramaniam

Reputation: 1876

Asp.net MVC - Multi lingual site

I am tasked with developing a multi lingual site using ASP.NET MVC. For static content i am ok to have resx files to allow better scalability. But the problem comes for user entered data. User1 fills up a customer data form and saves it using language1. Now User2 when views the data, the data entered by user1 in langauge1 should be shown in the language of User2's choice. Can somebody help with some idea here. Thanks in advance.

Upvotes: 4

Views: 442

Answers (2)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039130

You could use an automatic language translation service such as Google's Translate. Using it as simple as sending a GET request to https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&q=hello%20world&source=en&target=de (translates hello world from English to German) and parsing the resulting JSON.

As pointed out by @olivehour, Microsoft also offers a similar service.

Don't expect miracles though as far as the quality of the automatic language translation is concerned.

Upvotes: 8

Dante
Dante

Reputation: 3891

If you want the user inputted data translated into other users languages, you should request them to input it in those other languages. Or get editors to do that for them, assuming you want some level of quality in the translations.

Upvotes: 0

Related Questions