Click here to Skip to main content
15,890,995 members
Everything / Locale

Locale

locale

Great Reads

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 WernfriedD
How to set NLS_LANG value for Oracle to support all special characters you need in your language/application.
by ASP.NET Community
IntroductionWhen and how to use sql formatting functions to format datetime values when it is being used by the application that is target to be run
by Jay Guiang
How to retrieve the current user's Regional Settings using SharePoint Designer

Latest Articles

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 WernfriedD
How to set NLS_LANG value for Oracle to support all special characters you need in your language/application.
by Jay Guiang
How to retrieve the current user's Regional Settings using SharePoint Designer
by ASP.NET Community
IntroductionWhen and how to use sql formatting functions to format datetime values when it is being used by the application that is target to be run

All Articles

Sort by Score

Locale 

1 Feb 2014 by Sergey Alexandrovich Kryukov
First of all, I would not talk about locale. This is old, obsolete notion created before Unicode and the notion of system and thread culture, which is kept for backward compatibility reasons. I would try to avoid dealing with locales at all. Instead, you should only look at the...
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.
25 Nov 2016 by Jochen Arndt
There is a really good answer about string comparison at this SO thread:c++ - How to compare a "basic_string" using an arbitary locale - Stack Overflow[^].Regarding your SQL examples, both should return false for the example strings when using AS (Accent Sensitive). But I'm not quite sure...
2 Feb 2014 by Sergey Alexandrovich Kryukov
I don't see where did you try to set the locale. Perhaps you don't really need to respond to the change of locale. You can apply the locate you need to the current thread. To related functions...
2 Feb 2014 by Jochen Arndt
From within your WM_SETTINGCHANGE handler you are calling _wsetlocale( LC_ALL, L"" );This will set the locale to the default, which is the user-default ANSI code page obtained from the operating system, but not the current LCID when it has been changed in the control panel.To set the...
16 Feb 2014 by nv3
(a) Consider doing the GetLocaleInfo calls only once and store the result in a member variable.(b) The while loop in HasDecimalSeparator is almost unreadable. How about writing it like this: for (size_t i = 0; i
16 Feb 2014 by PJ Arends
I solved this problem in my article CGridCellNumeric - A numeric cell class for the MFC Grid[^]. While this edit control is designed to work with Chris Maunders MFC grid control, the logic is identical. The key to making it work is to do your validating/checking in the EN_UPDATE message handler....
19 Feb 2014 by enhzflep
Further to my comment earlier, I've assembled a rough implementation of a flexible validation system. You could easily add a handler for a custom message that would allow you to change the required separator at run-time, in response to a WM_SETTINGCHANGE message being received by the main...
10 Jan 2016 by WernfriedD
How to set NLS_LANG value for Oracle to support all special characters you need in your language/application.
10 Mar 2024 by Pete O'Hanlon
I'm making an assumption here that you are talking about converting the two SYSTEMTIME structures in the DYNAMIC_TIME_ZONE_INFORMATION object. To accomplish this, I believe that you are going to start by converting the SYSTEMTIME structure to a...
12 Dec 2010 by thedude9
How do you localize validation messages?Assume business layer validation.I am thinking of "error codes + target name", that could be translated to some localized message in the presentation layer. A good idea?Can someone please share good practices?
9 Feb 2011 by Abhinav S
As you can see here[^] .Net 3.0 and above have bidirectional support. Thus if you are using 3.0 or above, you should be ok.
11 Feb 2011 by Anubhava Dimri
Localized Files information are saved in XML format in resources or etc location.So you can retrive the data from xml file and Easily to use and share it.You should manually write code for getting resources files from one project to another.
2 Feb 2014 by chaau
Easy. You need to convert the text to double and then insert it in the database. You have not specify what you are using for data insert, so I assume you build the INSERT query dynamically, like this (assuming you are using MFC):CString text1, text2, sql;GetDialogItemText(IDC_EDIT1,...
2 Feb 2014 by AlwaysLearningNewStuff
EDIT:Question is reduced and optimized in response to community's comments. The deleted part of the question will be posted as separate question.QUESTION:Is there any WM_SOMETHING or NM_SOMETHING message in Win32 API that can inform me about user changing the locale?You see, I...
11 Mar 2024 by Andre Oosthuizen
you can make use of the 'SystemTimeToTzSpecificLocalTime' function to achieve what you are trying - MS Learn | SystemTimeToTzSpecificLocalTime function (timezoneapi.h)[^] Your code will look like - #include #include void...
27 Mar 2010 by djechelon
Hello,I'm building a "language select" ASP.NET control that I would like to automate the most. Since ASP.NET localization is performed by deploying satellite assemblies, it is possible to deploy a new language in a different time.So I would like an ASP.NET control to dynamically scan the...
1 Oct 2010 by tieudoan208
I complate my application, i have 2 button, when i click a buttion then program translation to this language i choosecould you tell me how do it
2 Oct 2010 by tieudoan208
Thank you so much, but my application is winform, if i have one file xml, i dont know how to load this file to my application
18 Oct 2010 by Catoblepa80
Good morning,Is it possible to localize the search? I need to do searches in our country on www.google.it, but the domain google api is only .comthank you.
14 Dec 2010 by yfrechette
HI,I'm working on the implementation of a multiple dlls project and I need to add localization to all of this.My biggest problem is : there is a lot of custom controls create in these dlls, almost all the user interface are from custom controls that are shown in tab control or forms....
1 Feb 2011 by Gerry Logrosa
Hi All,Any one can help me doing my project?I have a resources created from separate projects which supports "zh-CN","vi-VN","ja-JP" and "en-GB". The .dll was already created after building the Resources project but my question is; how can I use the .dll resources from my main...
9 Feb 2011 by murshidalamkhan
Hi All,I am developing an asp.net application which is an online article collection application which allows the users to upload and search for articles. The website should support two langauges, Arabic and English. I have developed websites which supports multiple languages but all...
20 Feb 2011 by abhishek.singh.valeteck
Visual Studio does not properly generate the resource file when using the 'Generate Local Resource' tool. I'm using devex controls without any dynamic ID's.The error 'Error HRESULT E_FAIL has been returned from a call to a COM component.' is displayed in the output window and the related...
18 Sep 2011 by Gerry Logrosa
Thank you for your answers, now I solved the problem by setting the resource files access modifier to public, I can now acces any resource file from the created dll.
5 Jul 2012 by ryan cepeda
Why is it not possible to make a single build of my WIX project to create multiple msi for different locales?..Why do i need to create a separate installer for each localized version of my application?..
27 Dec 2012 by satrio_budidharmawan
Hi code-maniacsThis is about android locale, why on several devices(phones) the method Locale.getCountry() will return "" value ?I've read android developer about this locale. But there're some point that made me confused :This class' constructors do no error checking. You can create...
27 Dec 2012 by OriginalGriff
Probably, it is becasue you need to get teh actual information first. Have a look here: http://stackoverflow.com/questions/3659809/where-am-i-get-country[^]
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
11 Oct 2013 by ASP.NET Community
IntroductionWhen and how to use sql formatting functions to format datetime values when it is being used by the application that is target to be run
16 Jan 2014 by Jay Guiang
How to retrieve the current user's Regional Settings using SharePoint Designer
27 Jan 2014 by AlwaysLearningNewStuff
INTRODUCTION AND RELEVANT INFORMATION:I have an MS Access 2007 database with a table that has string field and numerical one. The numerical field is of type double and can be negative or positive.I use ADO to connect to the database and load its data into edit controls with...
2 Feb 2014 by AlwaysLearningNewStuff
INTRODUCTION AND RELEVANT INFORMATION:I have MS Access 2007 database which I fill using ADO.Among other data types ( string, integer...) I also have a double.Since I work on Windows XP and use pure Win32 API to create GUI, I collect data from edit controls with GetDlgItemText API and...
16 Feb 2014 by AlwaysLearningNewStuff
INTRODUCTION AND RELEVANT INFORMATION:I have an edit control that should accept only signed decimal numbers-something like -123.456. Also, it should be locale aware, since decimal separator is not the same for every country-in US dot is used, while in Europe it is comma and so on.MY...
2 Feb 2015 by AlwaysLearningNewStuff
I have dialog box made in resource editor that behaves as a child control of the main window.In normal mode, when behaving as a popup, dialog can receive WM_SETTINGCHANGE[^] message that notifies dialog box about user changing locale settings, but as a child it does not seem to receive this...
11 Feb 2015 by KarstenK
You must forward the message in your app. Post it with the same parameters to your actual window and handle it in a message handler.
12 Apr 2015 by kubibay
I'm using nancy as embedded http server, I need to play and jump on local mp4 videos from this server. I can do this from web server applciation using mp4 handler but I need to find a way to do this from embedded server.
17 Apr 2015 by kubibay
I have implemented mp4handler for nancyfx and it worked.
17 Dec 2015 by Menci Lucio
Hi all!I have to use a MessageFormat without knowing the elements (the pattern comes from a user input), but I want that all the numbers would be without the thousand separator.I tried to search in all available locales, but all of them have the thousand separator.I tried to create a...
18 Dec 2015 by Roland 57
Have you tried to clone your Locale, get the Numberformat from this and set the GroupingUsed(false) there?An inelegant solution would also to format the numbers outside the Messageformat if there are Numbers:Object parm = ...NumberFormat nf =...
22 Dec 2015 by Menci Lucio
Hi,Thank you for your reply.In a first moment I thought that it was a good solution, but I have also a lot of already existing patterns where is specified the number of decimals (and it is not the same for all pattern) in this way: {0,number,0.00}If I adopt your solution, it throws...
25 Nov 2016 by BadJerry
In SQL, you can compare successfully two strings depending on the collationWith Latin1_General_CI_AS, fussballmanager and fußballmanager are considered equal. They are different with SQL_Latin1_General_CP1_CI_AS.I am trying to replicate the same behaviour in C++. I understand it's...
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...
6 Feb 2018 by Jochen Arndt
The error message is quite clear: You have to install the MySQL extension. See PHP: Installation - Manual[^]. But note the comment on top of that page that the MySQL extension is deprecated. If possible you should use one of the new extensions. If MySQL is installed and you still got the...
12 Jul 2021 by shiva_yn
hi, I want to download the azure storage pdf/tif file in local. In pdf having many pages. I need to download only the first page. I no need other pages. What I have tried: Dim size = CloudFile.Properties.Length Dim buffer(size) As [Byte] Dim...
12 Jul 2021 by Chris Copeland
While I've not used it, just checking the documentation for CloudFile indicates to me that it is agnostic of the type of file it's downloading: it doesn't know whether the file is a text document, PDF, image, or spreadsheet. All it knows is that...
9 Feb 2022 by OriginalGriff
We can't help you - you need to look at the whole query, and count the number of fields in the query, the number of parameters you are supplying, and the number of columns in the table: and with a redacted query like you show, we can't help you...
11 Feb 2022 by ronschuster
There was absolutely nothing wrong the insert statement. The presence of the commas was totally a red herring. The problem was buried in an insert trigger that called another insert trigger, triggers that the customer had but we did not, which is...
10 Jan 2023 by OriginalGriff
No. Web apps run in a sandbox in the browser and have no direct access to the client computer filesystem for security reasons. And your server has even less access! You would have to write a client native application, which could access the...
10 Jan 2023 by Richard Deeming
If every user of the site will have their own completely separate database, then you may be able to use the IndexDB API: IndexedDB API - Web APIs | MDN[^] However, this will be tied to a specific browser. For example, a user who uses your site...
10 Mar 2024 by samtoad
n using the GetDynamicTimeZoneInformation(&dtzi) function, and within the 'dtzi' structure, it tells you whether you're in the Daylight Savings time or not and when they will start, via these two dates. The return value of this function also...
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.
11 Dec 2010 by Abhinav S
A good discussion here[^].
30 Sep 2010 by JF2015
Hi,if you want to support several languages, you need multiple resource files (one for each language). The following article may help you getting started:.NET - Localization using Resource file[^]There is also a tool that does the work for you, but I think it't not...
12 Mar 2013 by Kumar, Ravikant
I have an exe which read CultureInfo from xml file and sets current thread CultureInfo (developed on some specific requirements). If nothing is defined in xml file then it always sets locale as en-US. I dont have the source code, only the exe. Is there any way to run this exe with different...
30 Sep 2010 by souidi abderrahman
try this :)http://www.aspnettutorials.com/tutorials/controls/globalization-calendar-csharp.aspx
8 Oct 2012 by Member 3522345
For Automatic translation Youcan use The Free project multidll
6 Feb 2018 by Member 9983063
Hello Guys am working on php project on localhost but when i open localhost:80/script so am getting this error Your PHP installation appears to be missing the "MySQL" extension which is required by Sngine. Back to your server admin or hosting provider to enable it for you i am confused how...
11 Feb 2022 by ronschuster
One of our clients in Russia is reporting this error: "Column name or number of supplied values does not match table definition." This is happening on an INSERT command being sent to SQL Server. When we look at the command in SQL Server Profiler...
10 Jan 2023 by alessandro salvi
customers who want this application do not want their databases to be online and therefore would prefer to have them locally. What I have tried: ho cercato per parecchio tempo ma nessuno ha una risposta