Click here to Skip to main content
15,881,715 members
Everything / General Programming / Localization

Localization

localization

Great Reads

by Nick Polyak
New simple and flexible package for Theming and Localizing multiplatform Avalonia applications is described here with samples
by Tomáš Růt
Explanation of features for localizations and formating by bobril-g11n library
by Robert Hoffmann
History of globalization in ASP.NET and available options.
by Shabra
How to use Resx files to internationalize your code

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 Pawan Kumar from CodewithPawan.com
Explore the seamless integration of @ngrx/translate with an Angular standalone API in this comprehensive guide, ensuring a smooth translation workflow for your applications.
by Nick Polyak
New simple and flexible package for Theming and Localizing multiplatform Avalonia applications is described here with samples
by Jani Giannoudis
Structured approach to ASP.NET Localization

All Articles

Sort by Score

Localization 

25 Dec 2023 by Nick Polyak
New simple and flexible package for Theming and Localizing multiplatform Avalonia applications is described here with samples
13 Aug 2017 by Tomáš Růt
Explanation of features for localizations and formating by bobril-g11n library
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
1 May 2011 by Ernest Poletaev
A Localized WPF Application template for easily localizing a WPF application
4 Sep 2013 by Shweta Lodha
Issue with WPF app while performing localization
20 Jun 2014 by Jochen Scharr
C# CountryInfo class, LanguageInfo class and CurrencyInfo class, derived from CultureInfo respectively RegionInfo for a more intuitive and compile-safe handling of countries, languages and currencies
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.
7 Feb 2022 by Aram Tchekrekjian
How to localize in ASP.NET Core Web API 6
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
11 Sep 2013 by Dave Kreskowiak
Considering the resources are compiled into the running .EXE, you can't modify them. The .EXE file is locked and cannot be modified while the .EXE is running.Another problem you have is that, under Windows Vista, 7 and 8, the Program Files folder your application is installed to is ReadOnly...
14 Jun 2011 by TorstenH.
stick with Soenke Rohde (first -> http://soenkerohde.com/2008/07/flex-localization/[^] ) - that looks quite good and is the common way. Solution 3 is pretty close to that too.You'll also have problems if others are supposed to translate some for you if the translation is in the code. At the...
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...
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 Jun 2013 by Ron Beyer
Ok... I found it...The problem was this line:internal static void ApplyResource(ref Control c, string fullControlName) { string resourceName = fullControlName + ".Text"; string value = c.Text; try { ...
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...
11 Sep 2013 by Sergey Alexandrovich Kryukov
tasinsahin wrote:I read that assemblies could be modified on runtime.You can modify the assembly only if its modules are not currently loaded.None of the loaded Windows executable modules can be modified.If the assembly is not loaded, it can be modified, but this is usually (or in almost...
10 Dec 2016 by gfazzola
In this article I will explain the implementation of an infrastructure to host and manage windows services in a practical and interactive way.As a practical example of the solution will be implemented a dynamic ip update client of DucDNS
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...
22 May 2017 by Richard James Moss
An article covering the basics of using Azure cognitive services to translate text via simple HTTP requests
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.
14 Jan 2018 by Dave Kreskowiak
There is no "easy method" for this. Each corporate implementation is proprietary and it cost them a LOT of money and research time to develop. As far as I can tell, there is no public implementation available. My wife works for a company that does this very thing in large buildings, but not to...
26 Feb 2021 by Maciej Los
As @embar.k.adero mentioned, when you use local names of functions (in your nativve language), you have to use FormulaLocal[^], but when you want general solution (no matter of regional settings), you have to use Formula with English names and...
29 Nov 2022 by Rudi Breedenraedt
Maintain your localization data in SQL Server
13 Jan 2024 by Pawan Kumar from CodewithPawan.com
Explore the seamless integration of @ngrx/translate with an Angular standalone API in this comprehensive guide, ensuring a smooth translation workflow for your applications.
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.
24 Apr 2011 by Ch Naeem
Hi all,I am using visual studio 2008 with SQL server 2008 ..In my application when i am trying to add record in my grid view while adding record i change my text language from default English to Arabic want to add text in Arabic language in grid viewAfter adding record the Arabic...
25 Apr 2011 by Sandeep Mewara
Sounds like you are missing the Arabic Locale MUI. You need to install the language pack such that the text in that locale can be seen properly. Read all about them here: Multiple User Interface (MUI) Language Packs[^]
25 Apr 2011 by sgamage06
i have a report design in VS 2008 which support localization as well.Report will be displayed in Japanese without having any issues.But when we export to report to PDF japanes font will be displyed as ??????????????. i have gone through the few article which support rdlc report...
8 May 2011 by Christophe_
Hi,I localized an ASP.Net web application with resx files in App_GlobalResources and it worked quite well. I could get resources from code behind and from markup with explicit (like this : )Now, I am trying to embed resources into satellite...
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[^]
8 Nov 2011 by praneeth arnepalli
Hi,I am currently working on localization of my website to korean.While I am applying the culture,I am getting a Date format which Iam not looking for.... (2004-08-31, I am getting this format Now).But,I want the koren date format to be (2004/10/31).Is there aby chance of modification of...
8 Nov 2011 by P.Salini
Refer thishttp://msdn.microsoft.com/en-us/library/5hh873ya.aspx[^]
8 Nov 2011 by sriman.ch
HiYou can set this by specifying cultureinfo which is under system.globalisation namespace. If you set this to invariant culture then the corresponding defalult format will be loaded.Hope this helps.
27 Nov 2011 by lukeer
Hi experts,I have created an application that requires .NET 2.0. I added a setup project to check for and install the .NET framework 2.0 prior to the application. Since end users will most likely install the application on laptops on construction sites in the middle of nowhere, I set the...
24 Nov 2011 by Mehdi Gholam
A very simple way is to create a dummy exe (does nothing) file in the name of LANGPACK.EXE and distribute that to the non German users.
29 Nov 2011 by lukeer
Hi experts,is it possible that the language pack that is being installed along with .NET 2.0 itself is completely dependent on the target machine?That would mean that the creator of the application setup package that includes the .NET setup had no influence at all on what language pack...
29 Nov 2011 by Sergey Alexandrovich Kryukov
Who needs language packs? After I visited Hamburg, I though all Germans speak very good English. I has this illusion until I visited Berlin. :-)Well, I would suggest to do just the opposite: avoid dependency between target machine settings (did you mean dependency of international settings?)...
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');}
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...
7 Mar 2012 by sanoopdas
Hi, I am having a software which uses the Font "MS UI Gothic" for displaying the captions of all GUI controls. It is having localization support with some languages like English, Japanese etc. Now I want to localize the same for "Russian" locale. But the captions displayed are not correct...
8 Mar 2012 by Bernhard Hiller
Strange. I opened a new WOrd document, selected your font, copied some text from the BBC's Russian web site into that Word document. The text did not change - but it looks really ugly, all characters have the same width except for space which is very narrow. If that's your problem, then the...
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
18 Jul 2012 by CGN007
How to programmatically localize the OK and Cancel buttons of the javascript confirm popup?
12 Jul 2012 by pritamk
try this function window.confirm(str) { execScript('n = msgbox("' + str + '","4132")', "vbscript"); return (n == 6); }
12 Jul 2012 by Vani Kulkarni
The OK/Cancel button in Internet Explorer will obey the Operating System UI language settings.The technical reason is that IE is using the MessageBox Win32 API call to display its Javascript dialog box. That API relies on the OS UI language and not the browser UI language, as it is owned by...
10 Oct 2012 by Oshtri Deka
GUI strings are easily changed, you can use .lang files with or you can store each string within project resources.Please read this and this.On the other hand I don't see why would you need to translate user input.And I cannot think of easily applied offline solution for such requirement.
28 Jan 2013 by _Amy
Hi,Refer the links for Similar Articles:Developing an ASP.NET page with MasterPage and Localization[^]C#.NET Localization With MasterPage[^]Similar ThreadsASP.NET master page meta:resourcekey[^]Tip/TrickLocalization and Master Pages[^]--Amit
12 Mar 2013 by Sergey Alexandrovich Kryukov
It depends on that EXE. If it uses hard-coded culture and does not provide any mechanism for changing culture, you hardly can do anything except… reverse-engineering it with modification of the code, which is, by the way, is not so hard to achieve.—SA
15 Jun 2013 by Ron Beyer
Ok, this may be a long question, but here it is:First, why I can't use built in localization:The built-in localization only works if #1, the control properties have the "Localizable" attribute applied to them, and #2 only if they are top level properties. Since I need to be able to...
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...
4 Jul 2013 by Rohit More
Got Answer...Simply make App_Resource in each folder to override this problem. like ----------------------Project Structure-------------------------Solution...
11 Sep 2013 by tasinsahin
Hi,I am working on a localization project and having problem.The problem is that, the resx file the user created is needed to be used at runtime.what i mean is that, the user creates a resx file on runtime and can use it at that time quickly. So the program will not be closed or compiled...
11 Sep 2013 by Sergey Alexandrovich Kryukov
tasinsahin wrote:My ultimate goal is to make an application which allows the end user to create custom resource file in his own language in accordence with keys used in code, and use it on runtime. By the way , there are already resource files in some languages in the project.Please see my...
19 Nov 2012 by thatraja
Hi, I'm planning to develop an application(windows) with localization(English, Arabic & Chinese). Which way you're recommending for localization? It's been long time I have worked on Windows applications.Herebefore I have used localization for an intranet website in my previous company....
19 Nov 2012 by Pete O'Hanlon
Unless you are describing your interface in none compiled code, then whenever you add a new key, you'll have to recompile your code anyway. If, however, you don't want to store your content in resource files, then you could do what we have done for a couple of our clients - store the data in a...
23 Oct 2013 by Captain Price
Try the ICU library:http://site.icu-project.org/[^]
30 Oct 2013 by dev C plus
i'm starting to create a application map on androidso, it's use only on highway.i don't know location(Longitude and latitude) which get by GPS on tablet with os android is on highway or normal street.i have a solution, at highway gateway. i have use a flag to know is highway. But, the area...
30 Oct 2013 by Ron Beyer
Highways are line segments with widths, or in other words, rectangles. If you know the position and size of the rectangle you can determine where the car is. You would need the geometry of the highway (which should be something like a number of points that form the line segments), you assign...
20 Jan 2014 by Adwaitam
Hi All,I have application which is developed in English language. However, I want to show it in French language as well. The application contains the resource files and all for french language. Can anyone suggest how can I deploy the language in two different language ? I need to change...
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[^]
19 Mar 2014 by Sergey Alexandrovich Kryukov
The question does not really make sense. There is no such concept "call a page from another page".The pages are independent and can use different unrelated resources. In this respect, you should take care about globalization and localization of each page using resources separately. The...
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...
11 Jun 2014 by katela
Good dayHow to create a multilingual windows form that can change the display language of open dialog box?I have a form application and would like the user to change the language of display. Here is my code, so far I can change the form controls including the menu item, I couldn't change the...
17 Dec 2014 by Joan M
Hello all,I'm porting an old 2005 VC++ 6 project into the new nice VC++ 2013.Each time I edit something into the resource editor, those lines appear into the PROJECT.rc file:#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP)#ifdef _WIN32LANGUAGE 10, 3#pragma...
17 Dec 2014 by KarstenK
In reading Jochens postings I think it is a bug. I would try these workarounds:1. change the template file which creates this text2. create an empty file "l.esp\afxres.rc" so the rc-compiler wont yell anymoreFor both solution you must search in the VC-Installdir for the file (2) or the...
17 Dec 2014 by Joan M
It looks like this can be solved by right clicking on the PROJECT.rc item in the Resource View and click on RESOURCE INCLUDES.After that in the window that appears, change the Compile-time directives.I've simply commented out what it was offensive and by now it has not appeared...
6 Jun 2015 by Member 8151951
PROBLEM:From a MVC web-app I want to localize ASP.NET Identity Resource.resx (x2) {name}Validator.cs ErrorMessages; see https://aspnetidentity.codeplex.com/SourceControl/latest#src/Microsoft.AspNet.Identity.Core/Resources.resx for keys/values requirements (fields). *****BACKGROUND:Here...
29 Jun 2015 by Andy Lanng
OK. gonna go down a different route.The tool suggested by Richard Deeming looks great:Quote:You might find this tool[^] useful for localization. :)With this I can include a page for admin or ourselves to add / improve translations.Sergey confirmed my fear. There are no free...
12 Aug 2015 by shreyaswonder1989
I got the solution :1.First keep the resourse files in some folder like C://abc/resource.resx2.Compile those file using visual studio command prompt: resgen resource.resx3.use the below code to acces the fileDim rm As ResourceManagerrm =...
27 Aug 2015 by Member 3889407
I am doing an enhancement on an application that uses a CDateTimeCtrl, CMonthCalCtrl and SysDateTimePick32.The new requirement is to localize the CDateTimeCtrl, CMonthCalCtrl, SysDateTimePick32 to the Brazilian Portuguese locale such that these controls should show the day and month names in...
28 Aug 2015 by Jochen Arndt
At least with older Windows versions this is not possible (uses always the Windows user locale). This cite from DTM_SETFORMAT[^] indicates that it might be possible with Vista and later when not using user defined formats:Quote:A DTP control tracks locale changes when it is using the default...
13 Oct 2015 by chandra sekhar
I am working on Localization in WPF.I have two resources files one for english and one for french.Through dropdownlist i am changing the language but the text is not changing according to the language private void cmb_Loaded_1(object sender, RoutedEventArgs e) { ...
17 Feb 2016 by Konstantin A. Magg
Why automated tools are the key to managing translation resources - discussed on the example of angular-translate and how to start with some basic tools
17 Feb 2016 by Member 11670657
Hi All, I have a problem regarding localizaiotn. i use asp.net mvc solution. i have use following code with localization part.@Ajax.ActionLink("@Html.Localize('caseAction_backToIssuedList')", "LoadDebtorInfoBack", new { ...
17 Feb 2016 by Member 11670657
finally i got the answer @Ajax.ActionLink(""+@Html.Localize("caseAction_backToIssuedList")+"", "LoadDebtorInfoBack",
24 Feb 2016 by Member 11670657
Hi,I have Asp.net mvc 4 solution. So, i have used to nuget localization package to localize my application. it is working fine on .cshtml file as below example.@Html.Localize("systemName")above "systemName" is the key. It may have different values according to language.And...
7 Mar 2016 by Meriem Sh
I am developing an Android application that would allow me to show on a map (NOT google map) some features (points and circles).All solutions in internet use GeoTools but it's not what i want.There is another solution???What I have tried:So i tried to use OpenGL but it help me just to...
7 Mar 2016 by Er. Puneet Goel
There are several options but google map is used due to Complete Support and flexibility. But you can go for following options as well.Android and Maps
12 Aug 2016 by Member 4530872
I am implementing i18n to my project in c++ using GNU xgettext, Xcode. The situation is as followsFileOne.cpp void somefunction() { string file = “fileName"; loggerClass.addlog(gettext_args(“some %s missing “, file)); }FileTwo.cpp void someOtherfunction() {...