Click here to Skip to main content
15,885,278 members
Everything / Globalization

Globalization

globalization

Great Reads

by Robert Hoffmann
History of globalization in ASP.NET and available options.
by Shabra
How to use Resx files to internationalize your code
by Andrea Simonassi
A simplified guide to the RFC5646 document; what is a language tag, how must be parsed, what is the IANA registry. How to implement a library, in any programming lang, to lookup user preferred language against a list of supported languages. A C# implementation is provided.
by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.

Latest Articles

by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.
by Andrea Simonassi
A simplified guide to the RFC5646 document; what is a language tag, how must be parsed, what is the IANA registry. How to implement a library, in any programming lang, to lookup user preferred language against a list of supported languages. A C# implementation is provided.
by Vipul Bhatnagar
Create a multilingual application WPF
by Cindy Potvin
How to format dates with Java in Android applications

All Articles

Sort by Score

Globalization 

10 Dec 2012 by Robert Hoffmann
History of globalization in ASP.NET and available options.
18 Feb 2014 by Shabra
How to use Resx files to internationalize your code
24 Sep 2013 by Sergey Alexandrovich Kryukov
Thank you for clarifications (please see the discussion in comments to the question).This is a serious complex questions. The difference between cultures is usually highly underestimated, especially in the West. At the same time, if I understand anything about world cultures (and I, as a...
1 Nov 2016 by Andrea Simonassi
A simplified guide to the RFC5646 document; what is a language tag, how must be parsed, what is the IANA registry. How to implement a library, in any programming lang, to lookup user preferred language against a list of supported languages. A C# implementation is provided.
14 Dec 2011 by Ryan Zahra
Did you try to search before posting here?Check this great article: http://www.codeproject.com/KB/dotnet/Localization.aspx
17 Sep 2011 by Martin Stevens
I found my own answer rather than mucking around with inheritance I created a simple class with;Imports Microsoft.VisualBasicImports System.ThreadingImports System.GlobalizationPublic Class globalisation_simple Public Sub set_thread() If...
27 Sep 2011 by Not Active
I can't imagine you mean things like first name and last name would be localized. For columns such as biography you would need to create another table with columns such as; Id, lcid, text, where I'd is of course the identifier for this table, lcid is the language code and text is the localized...
8 Nov 2011 by Sergey Alexandrovich Kryukov
First thing to understand is this: http://msdn.microsoft.com/en-us/library/21a15yht%28v=VS.100%29.aspx[^].Also, what makes an application selecting this or that satellite assembly? It won't happen by itself. This is a current thread culture which you need to switch to the culture you need to...
14 Dec 2011 by Mohankumar.Engain
refer this link.http://msdn.microsoft.com/en-us/library/bz9tc508.aspx[^]
14 Dec 2011 by Uday P.Singh
check this article:Creating multilingual websites - Part 1[^]hope it helps :)
14 Dec 2011 by thatraja
Check thisHow to create multi languages page in asp.net[^]
15 Dec 2011 by thatraja
Its a different way(check the below series)Creating multilingual websites - Part 1[^]Creating multilingual websites - Part 2[^]Creating Multilingual websites - Part 3[^]I tried this (English & Arabic) for a project, very nice.EDITGlobalizing and Localizing...
23 Dec 2012 by lavjain
When I use Global.asax file for url rewriting purposes, I use Application_BeginRequest and follow up the code :protected void Application_BeginRequest(object sender, EventArgs e) { //Get the current http context HttpContext InRequest =...
24 Dec 2012 by Herman<T>.Instance
RewritePath according to MSDN makes a new request:See http://msdn.microsoft.com/en-us/library/system.web.httpcontext.rewritepath.aspx[^] First line in text:Redirects a request for a resource to a different path than the one that is indicated by the requested URL. RewritePath is used in...
27 Jun 2013 by thanh_bkhn
I have some classes like thisclass A{public: B *b; C *c;};class B{};class C{};I have some global variables, that is used in A, B and C class. I know using global variables is unsuitable for maintenance, so I'm considering converting to local variables. I'm...
27 Jun 2013 by H.Brydon
Your class structure is a little puzzling. It seems to me that the int value(s) really might belong in A and then B and C instances refer to an instance of A (in the constructor). [The value(s) in A should then be private with a 'get' accessor.]If this is not the case and you really need...
30 Jul 2013 by Thanks7872
Refer these links to understand how it works and pros. as well as cons.ASP.NET Globalization and Localization[^]Using Globalization and Localization in ASP.NET[^]Globalization and Localization in ASP.NET Web Applications[^]ASP.NET Globalization and Localization [msdn][^]What...
14 Jan 2014 by Ron Beyer
MSDN Sample - Change Keyboard Layout in C#[^]I know its similar to what you posted, but I have a feeling that your issue is in obtaining the correct input language. See the linked example for something that works and see where the difference is in your code.
1 Feb 2014 by Karthik_Mahalingam
In order to make is as Global access, you need to change the access modifier of the DataGridView1 as Public or InternalTo access the DataGridView1 in other classes you need to create an instance for the DataGridView1 Form (Form1)public class V{ public void Somemethod(){Form1 obj...
6 Mar 2015 by Sergey Alexandrovich Kryukov
Let me summarize:You have to 1) define variables, 2) if the variable is defined, it cannot be used in outer scope. Not only it is impossible, but it makes no sense. Such variables are stored on the call stack and simply don't exist between calls, its memory is re-used after the frame stack...
9 Mar 2015 by Afzaal Ahmad Zeeshan
You can get help from Google, to search for some good resources online. This one is from MSDN, and provides and overview of globalization and localization in ASP.NET, https://msdn.microsoft.com/en-us/library/c6zyy3s9%28v=vs.140%29.aspx[^] read all of the sections inside. Secondly, here...
11 Dec 2016 by Jochen Arndt
Always use UTC when storing and comparing dates and times. Only when displaying them, they may be converted to local time. If the clients are displaying (e.g. using JavaScript), convert the UTC time passed from the server to local time.If the server is displaying, it needs...
1 Aug 2017 by Ben J. Boyle
No, straight HTML will not update. HtmlLabelFor passes through a localization aware process and can update the strings based on the selected locale, but a hardcoded HTML string does not.
18 Jan 2024 by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.
21 Apr 2011 by fawadparacha
I have multilingual asp.net application and currentUICulture is set to pt-PT. problem is by setting the UICulture decimal point (.) changes to comma (,) but my client requires the same decimal point (.) I have tried to override the decimal separator in InitializeCulture event of the page like...
16 Sep 2011 by Martin Stevens
HiI've got a standard asp.net web app which uses globalization. All my .aspx pages inherit my "globalisation" (yes thats my class with UK English spelling to avoid any confusion) fine but I cannot get my generic handlers to inherit it. I've tried a number of variants but without success. I'm...
27 Sep 2011 by omid.nazifi
Hi to ExpertsI want to design a DB for several language, but I have question?In This DB there are user information that saved to several languages.for example:UserID, FirstName, LastName, BiographyHow to I design it?thanks a lot
27 Sep 2011 by omid.nazifi
You are telling me that I design the database as follows:CREATE TABLE UserName(UserID int IDENTITY PRIMARY KEY NOT NULL) CREATE TABLE Language (LanguageID int IDENTITY PRIMARY KEY NOT NULL,LanguageDescription varchar(50) NOT NULL) CREATE TABLE UserAttrib (UserID int NOT NULL...
28 Sep 2011 by varunjeeri
I am working on a web application being developed on ASP.NET 3.5 C# and SQL server 2005. I need to convert my application into multiple languages. For static labels and static content, this can be achieved by creating the required .resx files. This is not an issue in the case of numbers,...
28 Sep 2011 by Parwej Ahamad
Look into Localization toolkit: http://msdn.microsoft.com/en-us/library/aa479334.aspx[^]
10 Oct 2011 by inayat basha
Hi, I am showing a text to the user. But i want to show the resource name. for example:Executed commandI want show the Executed Command in different languages. so anyone can help me...regarding...
10 Oct 2011 by André Kraak
Have a look at these:Globalization and localization demystified in ASP.NET 2.0[^]Declarative ASP.NET globalization[^]ASP.NET Globalization and Localization[^]
13 Oct 2011 by inayat basha
I found the answer... " runat="server"> Regards,Basha...
2 Nov 2011 by member60
what do u mean by message name ,if you are thinking to chabge the message itself use simple condition as:if(condtion)// check for the language{message1}else if(....
2 Nov 2011 by E.F. Nijboer
You can use localization with localized resources:http://msdn.microsoft.com/en-us/library/ms228208.aspx[^]Good luck!
8 Nov 2011 by N_tro_P
Have you written any logic that accesses your culture settings and then loades the appropriate resource file?If not that is your problem.If yes, I would look there, because again that is likely your problem.Not sure what this has to do with int i;
16 Nov 2011 by Prince Antony G
http://www.4gu...
8 Dec 2011 by Michael Groeger
I am trying to control whether digits get displayed as native digits on systems having an arabic culture.To be precise, I try to avoid using native digits, because the display string contains a value that is identifying a radio access technology: 3G.But the DigitSubstitution property...
14 Dec 2011 by mmvr2k11
Hi,I would like to change my web site from one language to other languages i.e English to German, French, Hindi, etc.If anybody knows please help me.Thanks in advance.
14 Dec 2011 by ujjwal uniyal
use this script. this is google translator. it will work fine for you. :)function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element');}
14 Dec 2011 by contact97438
Hi Folks,I have a problem with my application. Long post, but surely a short answer !!I've done an application in French, and want to make it converted into multi-languages, using the Globalization.What i've already done : - Set properties of my form to Localizable = True- Change...
15 Dec 2011 by contact97438
Hi,I've read a lot of articles and tried many ways to do a multi-language application (Globalization, ResourceManager, and so on ...). i've tried a lot of examples given, but which doesn't work at all !What's the simpliest way to do an application, where the user can change the choosen...
15 Dec 2011 by Abhinav S
In my experience, having a resource file that contains all the translations strings, downloading this to the client and then mapping UI text to the translations using the key is the easiest approach. In this case, .Net takes care of most of the work for you.Here[^] is a simple example.
6 Jan 2012 by larssy1
Hi everyone,Is there anyone who could tell me how i could define global variables which I could start using in my entire application?currently I've tried, However, it is throwing me errors obviously..:http://plaatscode.be/141545/http://plaatscode.be/141543/errors on lines 7,8,9...
6 Jan 2012 by E.F. Nijboer
The first idea that came into mind was a singleton, and surprisingly it is also the preferred method. Check out this link for more info:http://derekneely.com/2009/11/iphone-development-global-variables/[^]Good luck!
19 Jan 2012 by Member 8317792
How to change Oracle Globalization environment to English?
23 Jan 2012 by Jörgen Andersson
Have a look at the documentation[^]
19 Feb 2012 by Pradeep Kumar Chowdavarapu
Hi, I am pretty new to C# and using resources in Localization. My query is :If I have some Local Resources and Global resources in my application. Suppose If i don't have a resource in my App_LocalResources folder for particular language, Will the application look for App_GlobalResource...
19 Feb 2012 by Keith Barrow
It won't look at the Global resources, nor should it. "Global" in this context means global to the application (available to across pages etc) rather than a global locale.The rule is it traverses up the tree:e.g.Foo.resx (default - lets say english)Foo.hi.resx (default...
18 Jun 2012 by springjazzy
Hi!Is there any way to prevent Resource Fallback Process? If the app is intended to be used in a single country/region then Resource Fallback Process is unnecessary. Is there any way to prevent searching all region specific resource dll's?
18 Jun 2012 by Bernhard Hiller
Just do not deploy the localized resource dlls, except for the one for the required culture.
18 Jun 2012 by springjazzy
But CLR still searches them otherwise it wouldn't know that they don't exist.
23 Jun 2012 by banxman
Hi,I'm building a Windows Phone application and my client has given me a list of languages that he would like the App to be localized for.The problem is that some of those languages are not supported by Windows Phone and I then decided to check out the list of supported langauges which...
23 Jun 2012 by Ganesan Senthilvel
You can get the Windows Phone Operating System Version number from Environment.OSVersion. Here is C# code:string OSVersion = Environment.OSVersion.Version.ToString();
9 Jul 2012 by Paulo Morgado
How to make XAML Content Globalizable when using value converters
2 Oct 2012 by Stephen Hewison
Hi,We have a our own cloud which we've built and host in the UK.Currently all of our clients are based in the UK but we have opportunities to provide services to Qatar.Would it be advisable to construct a new cloud in the region of should the UK based cloud be able to adequately...
18 Dec 2012 by Dilber80
On my web site, I am using Global Resource option of ‘Globalization’. I have also created my custom library for resourceProviderFactoryType.I have following entry in my main site web.config file:-
21 Jan 2013 by Member 9660753
I want to change the language of content in error message(String) which is being shown in pop up window. How can i change it ?
31 Jan 2013 by chandramani P.
Hello Friends, I am new to the MVC3.0. I am working on the Project for both the English and the Arabic Layout. When I am posing the url without any query-string, Globalization works fine. But when I am having url in English with query string...
23 Feb 2013 by Irina Pykhova
maybe storing resources in .resx files will work better. Here is a simplest way to do that:add localization via resx files. It works for sure for simple strings. The only thing I didn't check is whether escaped xml tags work.
4 Mar 2013 by mayankkarki
I am working on a metro app which provides a change language option to user, so that it changes the application language. I have used resource file for this and coded like this Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride =...
4 Mar 2013 by Jameel VM
Try this linkhttp://fromjamitoothers.blogspot.in/2012/12/globalizationdo-and-dont.html[^]Hope this helps
15 May 2013 by NarasimhaMurthy
You can use String.Format function.String.Format("{0:MM/dd/yyyy}", "Your String goes here")
15 May 2013 by sangamesh arali
Hi,Add below code in page load event of your page then it will workCultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone(); culture.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy"; culture.DateTimeFormat.LongTimePattern = ""; ...
11 Jun 2013 by cpquest
Hi all,I was working on a project which uses Prism 4.0 Framework. I had a requirement to monitor all my actions across my application which mean any command is executed by the application should be monitored. I have heard about IActiveAware interface which provides monitoring the commands...
27 Jun 2013 by Stefan_Lang
The decision where a variable belongs shouldn't be based on "ease of access", but on actual association. You didn't specify what these local variables are for, and what property they describe, but at the heart of avoiding global variables is the realization that almost every variable describes...
27 Jun 2013 by «_Superman_»
I would recommend creating a separate class to hold the variables.Access to the variables could be given using methods instead of directly.You could also make the variables and methods static to avoid having to create an object of the class.
27 Jun 2013 by Freak30
An alternative would be to keep the variable local in A and pass a reference to B and C in their constructor. Then B and C store the reference and use the same variable. This is closer to a global variable but it is only known between the 3 classes. It would look like that:class A{ B...
5 Jul 2013 by Askar Imran
Well in our project we are having a requirement as to create a global class file, In each of our ASPX.cs page we have to pass the page controls (Page.Controls) to the global class file i mentioned above, and i need to disable or enable the controls in the class. This can be simply done in each...
2 Oct 2013 by Shashi_zen
Hi,i want to capture all mouse click event anywhere in the windows [means global mouse events] and suppress its action.using following code i can suppress the mouse click events in my application's form only not outside of the my app form :protected override void WndProc(ref Message...
3 Oct 2013 by Richard MacCutchan
How to set a Windows hook in Visual C# .NET[^].
18 Nov 2013 by akhil.krish
hai,I am developing one website which is using more then 20 pages... Please I want Globalization using master page...Any help.?
18 Nov 2013 by Orcun Iyigun
Here is a tutorial in C# which explains how to apply Globalization using master page:Implement Globalization in Asp.Net[^]The following 2 from CP:Developing an ASP.NET page with MasterPage and Localization[^]Master Page Globalization[^]Good luck,OI
7 Jan 2014 by JoCodes
Refer http://forums.asp.net/t/1742430.aspx[^]http://www.codemag.com/article/0503081[^]Hope this helps
13 Jan 2014 by TrushnaK
try like this:-details:-GlobalMessages:- global message file namemsgBoxInvalidUserId:- alertbox name in that global resource fileuse like below:-message = Resources.GlobalMessages.msgBoxInvalidUserId ScriptManager.RegisterClientScriptBlock(Me.Page, GetType(String), "AltBox1",...
14 Jan 2014 by Ali Agha
i am developing a multi-lingual application allowing users to change language as well as keyboard layouts (through combobox). I am able to change the culture of application successfully but i'm unable to change the individual keyboard layouts e.g. for English (United States), im unable to change...
1 Feb 2014 by JOHNNYDEMICHAEL
I have a DateGridView1 instantiated in Form1 (by Visual C#).I want it to be global . . . I want to access its cells from every class (I made a new one) in app.I thought it would be accessible from all classes if I changed the generated code from private to public . . .public...
1 Feb 2014 by Baxter P
Select the DataGridView and open the properties window. Then set the 'modifiers' property to 'Public'.That should do it.If you try to access the DataGridView from anywhere in the application you may have some problems though.
19 Feb 2014 by JOHNNYDEMICHAEL
Thanks, but I could not get any of the suggestions to work. I substantiated it in the class outside of any method.
19 Feb 2014 by Krunal Rohit
Let's say you're having GridView in Deafault.aspx and you want to access it on Page1.aspx, Page2.aspx and Page3.aspx.So what you can do is, make a public property for it and with the help of page instance you can call that Grid.For example,Default.aspxpublic GridView MyGrid{ ...
20 Feb 2014 by hemantwithu
I have a web application which should be Localized to 3 languages. All the controls are taking the control text from the Resx file of that language. Now I have scenario like suppose if we have a messages,custom error messages to show for that particular culture. So for this I have created a...
20 Feb 2014 by RahulMGunjal
check http://stackoverflow.com/questions/1508570/read-string-from-resx-file-in-c-sharp[^]
5 May 2014 by Member 10702891
Hi thereI am VERY new to programming on a whole and this is my first question so please go easy on me. I have searched everywhere for a solution but nowhere seems to deal with the same situation.Basically, I am one of two developers working on the same project. I have just completed the...
23 Jun 2014 by Stephen Hewison
Hi,I've developed a globalised application which uses the Request Header information such as language to decide which country my user is from and then display a date control, amongst others, formatted with their locality settings.The issue I'm having, especially when entering into the...
23 Jun 2014 by Bernhard Hiller
No "perfect" answer possible.The users might select the language / regional settings from a menu, then you could store that in a cookie and apply when they visit again. Of course, that won't work with the first visit.Also users might configure their browsers with other languages being...
24 Jul 2014 by Jeevan83
Guys, I created two files. I know that a static variable has just file scope. So, here I am trying to take a global pointer and pointing to that static variable and want to use that static variable's value through pointer in my other file. But I am unable to do it. Please correct me!File...
24 Jul 2014 by Richard MacCutchan
Try this// file 1.c#include #include static int name;extern int *p=&name;int main(){ extern void strlength(); name = 20; printf("add of p is %p and value odf p is %d\n",p,*p); strlength(); getchar(); return 0;}// file 2.c#include...
24 Jul 2014 by CPallini
This way it would work#include static int name;int *p=&name;void strlength(void);int main(){ name = 20; printf("add of p is %p and value odf p is %d\n",p,*p); strlength(); return 0;}However that's a good example of bad code.
19 Jan 2015 by Inimicos
I try to figure out.How to use global namespace.I have some code.using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Aliasname = Boxnamespace.Bunch;namespace aliaoperator{ class Program { static...
19 Jan 2015 by CPallini
You cannot use the global namespace qualifier to resolve the namespace clash because your System.Console class de facto replaces the one in the global namespace.
9 Mar 2015 by spark bell
Hi All can anyone here post code to create asp.net application with globalisation.I mean Application Globalisation in Asp.Net .I want sample codeThanks
2 Mar 2016 by vJay Yadav
I am testing my application in UK timezone (UTC) Dublin, Edinburgh, Lisbon, London.The DST (Daylight saving time) in UK starts on Last Sunday of March i.e. 27-Mar-2016.I am passing unix timestamp to Javascript Date object. It display normal date time but when UK DST is in effect, the time is...
18 Feb 2016 by F-ES Sitecore
Use a geolocation service, google for possibilities, there are lots out there.
2 Mar 2016 by DotNetSteve
Check out this js library:Moment.js | Home[^]andMoment Timezone | Home[^]
3 Oct 2016 by Harpreet05Kaur
Hi, Try the following code snippet within your code . $("#ControlName").datepicker({ dateFormat: 'dd/MM/yyyy'}); Hoping this would be helpful.
3 Oct 2016 by Hussain Patel
here the link for Jquery UI.. May be you might have tried and searched on this...Datepicker Widget | jQuery UI API Documentation[^]
11 Dec 2016 by abdul subhan mohammed
Hi guys,I have created one web and windows based application and these both applications are in multilingual langauges(English, Arabic, Hindi, Philiphinne).This application is created for ExamCenters.In which they will create Exam Session. When Exam Sessions are created, the date &...
11 Dec 2016 by Andy Lanng
Anything you do on the server side (in the c# code) will take the server time.Please perform a quick search either in the forums or in google before posting here:How to get the date time of client PC in asp.net C#?[^]
16 Jan 2017 by Gaurav_Chaudhary
This is the C# function which is throwing random 'System.OutOfMemoryException', public string GetFormattedDate(string datetoparse, string format = "MM/dd/yyyy") { DateTime dt; string parsedDate = ""; string[] otherValidFormats =...
1 Aug 2017 by UnStable Messi
hello guys. i'm using Globalization and Localization in my Asp Net Mvc project.. i'm facing an issue in it. the lables in my view. when these are marked through razor like @Html.LabelFor(m=>m.Name) then after change to arabic it's change the name to arabic. but if i use traditional labels...