Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to translate website in another language?(ASP .NET , c#)

I have developed a large business portal. I just realized I need my website in another language. I have researched the solutions available like

  • Used third party control on my website. (Does fit in my design. Not useful regarding SEO point of view. Dont want to show third party brand names.)
  • Create Resource files for each language.( A lot of work required to restructure pages to use text from resource files. What about the data entered by the user like Business Description. )
  • Are there any Other options available.
    I was thinking of a solution like a when a page is created on server side then I could translate it before sending back to client. Is there any way I can do that?(to translate everything including data added from databases or through a code. And without effecting design. )

    like image 376
    Tasawer Khan Avatar asked Jun 04 '10 11:06

    Tasawer Khan


    People also ask

    What is translate in C#?

    You can use Translate API to translate a text in one language into another language. Text is translated using the Neural Machine Translation (NMT) model. If the NMT model is not supported for the requested language translation pair, then the Phrase-Based Machine Translation (PBMT) model is used.

    What is multilingual website in asp net?

    Multilingual means we can implement the website in multiple languages. In today's world to grow customer ineraction, everyone needs to implement this procedure in their applications. Prerequisites. Visual Studio.


    1 Answers

    a large switch case? use a dictionary/hashtable (seperate instance for each a language), it is much, much more effective and fast.

    like image 157
    max brin Avatar answered Sep 29 '22 12:09

    max brin