Questions tagged [lcid]

LCID's are locale ID's that represent a language and country in the form of a numeric ID.

29 questions
1
vote
1 answer

How to covert currency as per locale ID

I am using locale Id(LCID) in classic ASP. I have currency in 7177 locale Id(South Africa). I want to convert it to the currency with locale id 3081(Australia). For example, if input is 13,10 then output should be 13.10. I try this : function…
SandipIntrop
  • 25
  • 1
  • 4
1
vote
1 answer

Why LCID is not unique?

Why LCID is not unique? My code: var data = CultureInfo.GetCultures(CultureTypes.AllCultures) .OrderBy(n=>n.LCID).ToArray().GroupBy(s => s.LCID) .Where(n=>n.Count() > 1).SelectMany(m => m); I see two LCID is not unique: 4 and 31748. Therefore…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
1
vote
1 answer

How can I check the validation of the LCID without try\catch block?

Some types has the TryParse method, for example it is Int32, Int64, Boolean, etc. It allows check the string value without try\catch block. It very much influences on productivity when many incorrect values are processing in a cycle. I need to do…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
1
vote
1 answer

how to convert SAPI's MS LANG ID to BCP 47 language tag?

The call to SAPI's get language method returns an MS LangID, but for my purpose, it needs to be converted to a BCP 47 language tag (eg. en-GB) . how do we do it? I am not able to do it using LCIDToLocalName, as to use this function, I need to…
Yash
  • 11
  • 2
1
vote
0 answers

Get 2G and 3G Network details with CellID in iPhone SDK

I need to get CellID,LAC etc using iPhone SDK. I have used CoreTelephony as mentioned in this given link : Get CellID, MCC, MNC, LAC, and Network in iOS 5.1 But i am getting the cell count of 0 and unable to get the CellID,LAC. I am getting MCC and…
Himz
  • 137
  • 7
1
vote
1 answer

Disallow subdirectory in robots.txt with language code

We have a website translated to about 15 languages, with more comming in regulary from our editors. Our URL is built up as follows: SiteName.Company.com/{LCID}/Folder1/Folder2/ Our company want's to hide a subfolder/page from the search…
mfriis
  • 217
  • 3
  • 17
0
votes
0 answers

Windows locale to string from decimal

Today I review some code and saw this! Any thoughts about this way? Maybe you know best way? I think it's veeery slow method :) string GetLocale(int cp) { if (cp == 1078) { return "Afrikaans(af,af)"; } if (cp == 1052) { return…
Dima Vegas
  • 11
  • 1
  • 2
0
votes
0 answers

How to update the Windows Language Code Identifier in Windows Server?

I recently started having a problem with CultureInfo in my web application. The code in question: public static CultureInfo ConvertToCultureInfo(this string input) { try { return new CultureInfo(input); } …
C Bauer
  • 5,003
  • 4
  • 33
  • 62
0
votes
0 answers

How to validate is LCID proper?

I need to check that I get the int value which is the valid LCID of CultureInfo. Unfortunately, CultureInfo doesn't contain something like bool TryGetCultureInfo(int, out CultureInfo) method. Also I see that some CultureInfo items have the same…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
0
votes
1 answer

LCID of Standard Moroccan Tamazight

I have tried to find the LCID (for example, US English has the LCID 1033) for the relatively new language "Standard Moroccan Tamazight". It uses phoenizian letters. For some reason, I just did not find the LCID. Can somebody help? Thank you. In…
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
1 answer

ASP.NET MVC LCID and Sessions

i have to short questions on ASP MVC. Where is the best place for setting on Session.LCID ? Thanks
csharpnoob
  • 505
  • 1
  • 9
  • 24
0
votes
1 answer

Windows XP The specified locale is not supported on this operating system. [ LCID = 16393 ]

I Use the Sql Server Compact edition 4.0 and have installed on my System (windows 7). From my Solution when i run this works fine basically the line of code SqlCeConnection.Open() with the connection string as "DataSource='E://S.sdf';" There is No…
user581157
  • 1,327
  • 4
  • 26
  • 64
0
votes
1 answer

Windows LOCALE_SABBREVLANGNAME on Mac OS X

Our application needs to talk to a server component, which (stupidly) takes a Windows language abbreviation (SABBREVLANGNAME) as a parameter. On Mac OS X you can get LCID pretty easily from an NSLocale, but there's no way that I can tell to get the…
Ryan
  • 11
  • 2
-1
votes
1 answer

Create an array from a long list of LCIDs

I have a long list of LCIDs which I want to assign to each other. Here is an extract: 1031 1033 1034 1061 1062 1026 I want to end up having an array or a list which looks like this: 1031 => 1033 1031 => 1034 1031 => 1061 1031 => 1062 1031 =>…
Mitch0204
  • 21
  • 4
1
2