Last post Aug 19, 2019 11:01 AM by AddWeb Solution
Jan 28, 2019 03:43 PM|dlchase|LINK
We are maintaining an older asp.net website (not MVC) and our users want to offer displaying pages in Spanish (and maybe others in future). A lot of the pages are Grids and Forms displaying data from a website. Is there some relatively easy ways to accomplish
this without translating every page on the site? Thank you in advance for any help.
Jan 28, 2019 03:59 PM|PatriceSc|LINK
Try perhaps https://www.bing.com/Translator
It should allow to translate your site on the fly using a frame. In the past you had also
https://translate.google.com/intl/en/about/website/ but it seems phased out to favor translating from within their browser :
https://support.google.com/chrome/answer/173424?co=GENIE.Platform%3DDesktop&hl=en (pushing their browser).
It might be a first quick step thought you may have to handle this by really translating your site (not sure what you mean by "without translating every page", you can use "resources" to fetch the phrase in the correct language but it does need some work,
you can reuse though words used on multiple pages in the same context).
Jan 28, 2019 06:08 PM|dlchase|LINK
This might be an option. The API would seem to be a good route. I tried the Chrome settings and that seemed to work pretty good as well. I will see what users think and see if any other options come from this forum.
Jan 29, 2019 02:26 AM|Ackerly Xu|LINK
There seems to be no easy way to meet your requirement.
You could refer to the similar discussion about globalization,some advice to config visual studio, some advice to refer to open-source project.
Also you could try to use google translate plugin in your page, it could help translate your page.
Feb 18, 2019 06:00 PM|dlchase|LINK
Sorry, got pulled off to another project and now I am back to this project. What I am looking for is an API? that I can submit my html page that is sent to the browser from my asp.net application. I could then use the api in jquery (e.g. using $(
document ).ready()) or js after the page is sent to send the html to an api and have it display in the translated language. Sending an html page would be good and universal and we could determine the language code and send it along in querystring.
I would like the solution to not require a Chrome browser as users around the world use various browsers. Thanks.
Feb 19, 2019 04:25 AM|KathyW|LINK
I'd be surprised if you find such an API. I'll also mention that Google recommends that you block auto-translated pages from showing up in search results for your site:
"Use robots.txt to block search engines from crawling automatically translated pages on your site. Automated translations don’t always make sense and could be viewed as spam. More importantly,
a poor or artificial-sounding translation can harm your site’s perception." -
The best way to do it is to have different sites with different URLs, and translations done - or at least reviewed and edited - by people qualified to be editors in the target languages
Feb 19, 2019 03:27 PM|dlchase|LINK
Thank you for your reply. Not sure maintaining 10 sites for allowing 10 languages is a productive use of time. Also, what about the fact that much of the displayed data is coming from a constantly changing database! Thanks, but no thanks. This is not
Aug 19, 2019 11:01 AM|AddWeb Solution|LINK
Sample code i have done using resource file add global.asax
void Application_BeginRequest(Object sender, EventArgs e)
// Code that runs on application startup
HttpCookie cookie = HttpContext.Current.Request.Cookies["CultureInfo"];
if (cookie != null && cookie.Value != null)
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(cookie.Value);
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(cookie.Value);
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en");
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en");
Refer this Link More info : https://codepedia.info/multiple-languages-website-asp-net-c/