Click here to Skip to main content
15,884,177 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 Title

Localization 

11 Aug 2015 by shreyaswonder1989
currently I am having my resource file in my assembly only, so in Resourcemanager I am using it like ResourceManager(namespace.Login, GetType(LoginForm).Assembly)Suppose I have resource file Login.resx kept on path C:/login.resx, Now I want to use this file in function ResourceManager, but I...
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 =...
1 Oct 2017 by Jecho Jekov
Provides a solution for localization of WPF application both in XAML and in code-behind
16 Jun 2016 by Clifford Nelson
This is an alternative for "Advanced WPF Localization" that adds functionality for capitalizing and pluralizing the text to be display.
29 Jun 2015 by Andy Lanng
Hi,I have a website that should be available in every visitors own first language. This includes not only the entire EU, but any EU visitors (so pretty much every language >_
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...
19 Nov 2020 by Ram Kumar(Webunitech)
Hello All, I am having a few issues with setting globalization with the Chinese language with the asp.net website. We have a website in asp.net with VB.net and we have implemented the globalization English/French/Chinese language culture using a...
19 Nov 2020 by Gerry Schmitz
"Unsorted". How does anyone here know how they should be "sorted"? (Or not). Chinese uses double byte (and perhaps triple byte characters); English and French not so much. Maybe you need to consider those extra bytes, when "sorting" (or not).
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...
9 Apr 2015 by Parvathaneni Mamatha
How to use Razor Views as Email Templates and Localize them using sample WebAPI
6 Nov 2012 by Rui Jarimba
A collection of HTML helpers that generate DropDownLists for enums, with or without localization support.
30 Oct 2011 by Mario Majčica
Hi all,it's been a while since I for the last time "played" with asp.net. I have one simple question about the localization.I have a couple of pages containing some text in the page itself, properly formatted with different HTML tags.Example: MITA –...
30 Oct 2011 by Espen Harlinn
I haven't tried this for localization, but you will get a server side element MITA – ANTI SKID DEVICE FOR TYRESand you can use the info from this...
30 Oct 2011 by Sergey Alexandrovich Kryukov
Start from here: http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx[^].—SA
21 Aug 2012 by Chip VonBurg
Localizing your apps with Google Translate
24 Sep 2016 by Ankita Khanna
We are testing a standalone application that is developed in Java and uses ubuntu platform. We have to validate that there are not truncation issues when the application is tested in different languages. Do we have an tool that can do it or what could be the way to automate this...
24 Sep 2016 by David_Wimbley
It looks like in java you have a local method and it interacts with ResourceBundle which is a key value pair of your strings that are localized.Locale (Java Platform SE 6)[^]You should then be able to create unit tests where all you do is call the same class/method but pass in the...
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...
13 Aug 2017 by Tomáš Růt
Explanation of features for localizations and formating by bobril-g11n library
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
13 Feb 2016 by Konstantin A. Magg
Angular-translate is the number 1 module for providing localized texts in angular. This tip tries to give a short description of implemented async file loaders and a few recommendations, when to use them.
16 Apr 2019 by el_tot93
Does anyone have an idea why my code is not working? I get English strings everywhere. Note that is not an ASP.NET project but an actual WinForms project. I have set up a windows forms project to use localization so that it will support Arabic and English languages. ...
16 Apr 2019 by Mehdi Gholam
Winforms creates resource files for various languages you have changed your forms design for (changed the strings and layout etc.). If your application works in debug mode and you can switch languages, then check the "bin\debug" folder and copy/deploy the language folder "ar" or "ar-KW" along...
30 Jan 2012 by Keith Barrow
This artcle extends Part 1 to allow overriding of culture through the URL in a lightweight fashion.
7 Jun 2011 by Keith Barrow
This article provides a simple globalization mechanism for a bilingual website. Part I creates a simple bilingual website.
23 May 2013 by Marla Sukesh
In this article we will look in detail how to create a multi-lingual and multi-cultural applications using Asp.net.
23 Feb 2020 by Ziya Mollamahmut
How to create multi-cultural ASP.NET Core web application with simple steps
1 May 2011 by Ernest Poletaev
A Localized WPF Application template for easily localizing a WPF application
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 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...
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...
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...
16 Nov 2011 by Michael Hodel
Enigma Puzzle – a game as difficult as the Rubik's cube
4 Sep 2013 by Shweta Lodha
Issue with WPF app while performing localization
4 Feb 2021 by atulonweb@gmail.com
I am implementing globalization and localization in dot net core. I am following below link from microsoft. Globalization and localization in ASP.NET Core | Microsoft Docs[^] It is working perfectly fine. My website is has layered architecture...
7 Aug 2017 by UnStable Messi
hello guys i'm using globalization and localization in my application. i'm using 2 cultures english and arabic, all the things are working perfectly but i'm facing issue in Date in a list to records populated in JQuery Datatable when my application is in english then the date is showing...
6 Aug 2017 by Kornfeld Eliyahu Peter
That because the local for your Arabic culture displays dates according to the Islamic calendar (with a little bug)... The 21/08/2017 is the 29th of Hijja 1438... Hijja is the 12th month of the Islamic calendar (with zero based it comes to 11) and because of the bug of 1900-2000, 38 displayed as...
7 Aug 2017 by Jochen Arndt
Gregorian 21/08/2017 would be Hijri 29/11/1438. So you got a wrong year. This may be sourced by using a date format internally that is Gregorian and does not support "old" dates (and it might also print "invalid" when the conversion creates invalid Gregorian dates). A possible solution might...
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...
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.
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...
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...
13 Dec 2015 by أحمد بن حنبل
Hello as you can see in next picture I am working on plate localization , now I want to write vb.net or c# code to locate the blue regionsand then I will create list of images contains all blue regions but from original image , just i need from you to help me to locate the blue regions on...
18 Dec 2016 by Member 11319420
Is there any way to devise a multi language help system through C# for desktop application. How to implement it ? Thanks in advance.What I have tried:Though I've been through websites which discuss on creating chm files, or converting word document to a chm file through third party...
18 Dec 2016 by Richard MacCutchan
Simply stated: no there is no step by step process. However, what you want to create is no different from creating any other application:- Research- Design- Code- Test- Code ...
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",
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...
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() {...
12 Aug 2016 by KarstenK
You should read the documentation for gettext. Use msggrep for fetching a directory.
27 Dec 2022 by Sascha Manns
Currently i have two javascripts: (function ($) { $(".video-toggle").on("click", function () { let $btn = $(this); let $video = $("#video-" + $btn.attr("data-id")); if ($btn.text() == "Video ansehen") { ...
14 Jan 2018 by Stephen Dauda
I need to capture the floor plan of a building using the fingerprint method for indoor localization, to enable me locate a user in a building. The fingerprint map will be put on an X-Y co-ordinate graph, to make location easier. I plan on doing this with the C# programming language. And also...
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...
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 Ryan Zahra
Did you try to search before posting here?Check this great article: http://www.codeproject.com/KB/dotnet/Localization.aspx
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[^]
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');}
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...
11 Jun 2014 by Sergey Alexandrovich Kryukov
Nearly all the main ideas you will need to know are covered in my past answers on the topic:How to use a Single resx file for 3 languages[^],globalization in winforms[^],globalization/localization problem in winform .net[^].And also this one: Globalization of Checkboxes[^].The...
11 Jun 2014 by katela
Thank you for your message, but i am still struggling, I am not an expect in C#, could you provide me with just a simple code example on how to do this?Thanks
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...
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 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...
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...
27 Sep 2011 by Jörgen Andersson
Your database design needs another change. Use NVarchar instead of Varchar, as it allows the use of unicode for characters.
23 Oct 2013 by Member 10353656
hello all I am trying to convert the english language to any other local language @ run time. example in c++:- string name; cin >> name; cout
23 Oct 2013 by Captain Price
Try the ICU library:http://site.icu-project.org/[^]
10 Oct 2012 by sumans4324
Hi All,Hope all is well.We need to provide dynamic translation of names and other important fields like address etc(including the user input) in our product. We can use translators but it works only if we have internet connection. We need a solution to work during offline mode and for...
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.
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.
20 Sep 2016 by OriginalGriff
We are not a code to order service, we expect you to at least try to do your own work rather than just ask us to find it for you.I'd suggest that you start with Google and do some basic research.
1 Jun 2017 by PrafullaVedante
Please see the first column of the table on following link. I need the language culture name in that format. Table of Language Culture Names, Codes, and ISO Values Method [C++][^] Currently i am using GetLocaleInfo to get the information aboout language and country name (and then concatenate...
1 Jun 2017 by KarstenK
This job should do your GetLocaleInfo with the correct flags like LOCALE_USER_DEFAULT. Also check out GetLocaleInfoEx and its various flags. It may depend on the Windows version and may fail on older Windows like the retired XP. So test it on Windows 10. I wouldnt wonder if there is some bug in...
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
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...
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...
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 Apr 2012 by Doug Domeny
Text in an XSLT may be localized by reading translated strings from an XML document. Numbers may also be localized.
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...
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...
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[^]
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 &...