Last post Nov 25, 2019 05:03 PM by KathyW
Nov 19, 2019 08:47 AM|nagapavanich|LINK
I have developed a website using visual studio community 2013 in English with SQL server 2008 as DB. Now client requriement is Bilingual i.e it should be shown in Hindi. I searched online found some samples but I want to
convert the whole website to bilingual . What is the best option for this requirement?
Nov 19, 2019 12:03 PM|Khuram.Shahzad|LINK
ASP.Net offer globalization/localization, you need to specify resource files against keys, that keys are used in your code, for each culture there is specific syntax to create resource files and ASP.net auto pick the resource file by culture.
Its bit challenging from design prospective to LTR to RTL transformation.
Nov 19, 2019 07:51 PM|KathyW|LINK
Either use globalization, or duplicate the site and translate it, and publish two sites with language options to select one or the other site. There is no easy, automatic way, and if you didn't start with the idea of using globalization, rewriting the site
to do that may be slower than simply creating two sites and translating the pages (and database content, if there is any).
Nov 20, 2019 08:21 AM|samwu|LINK
I have developed a website using visual studio community 2013 in English with SQL server 2008 as DB. Now client requriement is Bilingual i.e it should be shown in Hindi. I searched online found some samples but I want to convert
the whole website to bilingual . What is the best option for this requirement?
ASP.Net can localize/Globalization an application, The globalization means that the application can render it contents based on the language preference set by a user in his or her browser. Localization involves translating a web application
into different languages and cultures.
And ASP.Net makes it easy to localize an application through the use of resource files. Resource files are xml files with .resx extension. Resources can either be a global resource, in which it is accessible throughout the site and placed in App_GlobalResources folder
in a website or a local resource which is specific to a page only and is placed in App_LocalResources folder.
More information about localize/Globalization you can refer to below link:
Hope this can help you.
Nov 20, 2019 08:56 AM|nagapavanich|LINK
is https://www.translatetheweb.com option the good one. We tried but in postback it losses the language translated . Please suggest
Nov 20, 2019 09:09 AM|KathyW|LINK
Google discourages automatic translations because they can give erroneous results or awkward results. It's best to pay for a skilled translator and actually get a result that feels like it was written in the language it is being read in.
For general guidance on how google sees multi-language sites, see
Note: "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." It would not be your goal to have to block your alternate language pages from google, so try not to rely on automatic translations.
Nov 20, 2019 09:17 AM|nagapavanich|LINK
URL not working . Please check
http://www.ayobamiadewole.com/Blog/AspNet/Localize.aspx : The requested URL could not be retrieved.
I created App_GlobalResources and added Hindi.hi.resx file. Added names and value for a login page .In design added
In page directive added
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" Culture="auto" meta:resourcekey="PageResourcel" UICulture="auto" %>
Also changed browser preference to Hindi.But not effect and login displays in english only. Restarted the system and checked .Please suggest .
Nov 21, 2019 10:38 AM|samwu|LINK
Also changed browser preference to Hindi.But not effect and login displays in english only. Restarted the system and checked .Please suggest
You can follow this video to how to globalize your application.
If you have any question, please let me know.
Nov 23, 2019 08:07 AM|KathyW|LINK
For webforms, all I needed to do to have resx files work was the following:
Add the following line in your web.config, in the system.web section:
<globalization culture="auto" uiCulture="auto" enableClientBasedCulture="true"/>
Create the App_GlobalResources folder (assuming you want the resx files to apply to all pages, and that you are not creating separate files for each page). Add two resx files, the default one (in my case English) content.resx, and one for french, content.fr.resx.
The name "content" can be what you want, but it must be the same for all these files. Of course you can add other files for other languages, using the same naming format with the proper language tag, e.g, in my example, "content.hi.resx"
Assuming the .resx files have the following content:
content.resx:Greeting Good Morning
Description This is an English language web site
and for content.fr.resx:
Description C'est un website en francais
Displaying the content in the page would be done by setting the Text property as follows:
<asp:Label runat="server" ID="Greeting" Text="<%$ Resources:content, Greeting %>" />
<asp:Label runat="server" ID="Description" Text="<%$ Resources:content, Description %>" />
Change the language setting in your browser to English and then to French and you'll see the difference. (Don't forget to restart your browser for the language preference change to take hold.)
Nov 25, 2019 11:44 AM|nagapavanich|LINK
thank you for replay added web config tag
Nov 25, 2019 05:03 PM|KathyW|LINK
Did that solve your problem? If so, please also mark my earlier reply as an answer to help others reading this thread.