Click here to Skip to main content
15,886,788 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 Updated

Localization 

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.
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.
25 Dec 2023 by Nick Polyak
New simple and flexible package for Theming and Localizing multiplatform Avalonia applications is described here with samples
21 Sep 2023 by Nikita Chauhan Atom Aviation
Geotagged Image Locator
20 Sep 2023 by Richard MacCutchan
Quote: Please provide me with an advanced and correct code snippet with full requirements. Sorry, that is not how this site works. You are expected to design and write your system. If you have problems with the code that you write, then people...
20 Sep 2023 by Nikita Chauhan Atom Aviation
I want to make a web page that contains a Mapbox and the system of uploading multiple images and then show their preview below the Mapbox. After the image upload, mark the location on the Mapbox, the image location will be shown on Mapbox (with...
16 Aug 2023 by Jani Giannoudis
Structured approach to ASP.NET Localization
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") { ...
5 Dec 2022 by Member 15855360
If you used same name in model than this conflict has to be come. Example: - if you used SupplierType and suppliertype in same model than it shows an error like that An item with the same key has already been added . Sujata Maurya reply on...
29 Nov 2022 by Rudi Breedenraedt
Maintain your localization data in SQL Server
7 Feb 2022 by Aram Tchekrekjian
How to localize in ASP.NET Core Web API 6
7 Dec 2021 by Sascha Manns
I deployed my new bilingual ASP.NET Core website as Azure WebApp. Currently i'm getting from time to time: {"An item with the same key has already been added. Key: Content-Language"} at...
7 Dec 2021 by raddevus
Last line of the error message states: C:\Users\Sasch\source\repos\saschamannsde\src\MannsBlog\Services\EmailExceptionMiddleware.cs:line 47 The error occurred on Line 47 of EmailExceptionMiddleware.cs. However, that line is not shown in your...
24 Jul 2021 by MS1995
i want to localize text in all my project depending on the User Chosen language example MessageBox.Show($"Hello {User.Name} ,thanks For Joining"); i already set the translation into the resource files but i don't know what to do with...
24 Jul 2021 by OriginalGriff
You cannot use string interpolation in that way: interpolated strings are a syntactic sugar for the older method using numbered parameters and are evaluated when thw interpolated string is constructed, not when it is used: using System; public...
25 May 2021 by Gita Padhihari
I have developed a test application for language localization. The application contain one comboBox and one label. The comboBox contain different languages. Based upon the selection of languages the label text culture should change. In the...
25 May 2021 by Richard Deeming
You need to bind the SelectedValue to a property in your view model. public class LanguageViewModel: ViewModelBase { ... private Model.Language _selectedLanguage; public Model.Language SelectedLanguage { get { return...
27 Feb 2021 by Stefan_Lang
In my excel worksheet I am using automation to insert formulas like this: worksheet.Cells[X_index][current_row_index].Formula = "=AC17+ABS(100*$Y$10* COS(((G17+J17+M17+Q17-180)*PI/180)))"; or worksheet.Cells[X_index][current_row_index].Formula =...
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...
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...
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).
23 Feb 2020 by Ziya Mollamahmut
How to create multi-cultural ASP.NET Core web application with simple steps
28 Oct 2019 by DotNettled
I have a Windows application and a Windows Service that both make calls to a common DLL. This common DLL spawns a process which generates my output. When run on a non-US Windows OS (zh-TW in this case) the Windows Application generates output as expected. When run as a Windows Service the output...
28 Oct 2019 by RickZeeland
Maybe it's a threading issue, see how to set DefaultThreadCurrentCulture here: Set Culture for all threads in C# apps » Romanian Coder[^]
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...
5 Sep 2018 by Adleano15
Hey, I have a Windows Forms Application with multiple projects within. One of the projects now is a WPF Project with a containing Window object. Now i want to establish a multi language support for the new integrated Window like this article: Simplest Way to Implement Multilingual WPF...
1 Aug 2018 by Member 13926859
i want to locate someone using a keyword that i will send him with an sms like the application of where is my phone i will give an example i have to personne that they have my app of location the first one will send an sms to the other one the content of the sms is a keyword ex ("get...
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...
16 Oct 2017 by Ahmad Abd-Elghany
hello , i want to make a multilingual site with master page . when i use the InitializeCulture() method in the master page it alwyas get wrong.i have alot of oages nested from that master page , so how can i do that ?
1 Oct 2017 by Jecho Jekov
Provides a solution for localization of WPF application both in XAML and in code-behind
13 Aug 2017 by Tomáš Růt
Explanation of features for localizations and formating by bobril-g11n library
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...
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...
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...
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.
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...
22 May 2017 by Richard James Moss
An article covering the basics of using Azure cognitive services to translate text via simple HTTP requests
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 ...
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#?[^]
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...
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
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.
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...
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.
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.
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.
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
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...
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",
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
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.
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...
21 Nov 2015 by Christopher John Paul
A solution to localizing a jQuery dialog box
18 Nov 2015 by Aravinth G
I am trying localisation in js file using i18n-js gem.in i18n-js.ymltranslations: - file: "app/assets/javascripts/i18n/%{locale}.js" only: ['cust_details', 'order_details']I am trying to load only 'cust_details' and 'order_details' into translation file and split them per...
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) { ...
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...
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...
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 =...
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...
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...
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 >_
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...
27 Apr 2015 by HiDensity
Localization of an application at runtime - "On the fly"
9 Apr 2015 by Parvathaneni Mamatha
How to use Razor Views as Email Templates and Localize them using sample WebAPI
8 Jan 2015 by littleGreenDude
Localization in Windows Universal Apps[^]
4 Jan 2015 by Sergey Alexandrovich Kryukov
This kind of globalization and localization is based on satellite assemblies and fallback. The basic idea is: you globalize the product starting with just one, base culture, using resources, make the UI fluid, so the change of the string lengths won't screw up the layout, take into account...
4 Jan 2015 by littleGreenDude
I'm struggling with localization. It seems the more I read the more confused I get. I started with a single resource file "strings.resx" in this file, I made my English string assignments.From inside of VS2012, I couldn't add another string resource file and have it appear in the editor...
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...
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
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...
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
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
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
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...
6 May 2014 by Member 10799577
i have downloaded Wireless Sensor Network Localization Simulator v2.1, but i dont know how to install it.hence guide me to install it.
6 May 2014 by Member 10799577
using System;using System.IO;using System.Text;using System.Drawing;using System.Collections;using System.Windows.Forms;using networkdll;using Mapack;namespace MCL{ public class MCL { public int counter, slot_duration, delimiter = 0; public DateTime...
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...
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...
19 Mar 2014 by AshLiGaLa
I have created Folder Structure (for example the test folder has a page TestPage where I have created a LocalReource.resx file for Russian language) for a Web page. When I call the page from another page say Login.aspx the resource keys are not bound to the controls. can any one help me...
20 Feb 2014 by RahulMGunjal
check http://stackoverflow.com/questions/1508570/read-string-from-resx-file-in-c-sharp[^]
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...
18 Feb 2014 by Shabra
How to use Resx files to internationalize your code
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...