Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Locales. How to get "natural" names



Permlink Replies: 0 Threads: [ Previous | Next ]
John Pearson

Posts: 42
Registered: 8/23/05
Locales. How to get "natural" names
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 4:06 AM
Locales. I've searched the embarcadero documentation\web & conclude
that to list all the country locales available on windows by their "natural"
language names (eg the list below) I need to generate a lookup file to
convert the LOCALE_SNAMEs generated by EnumSystemLocalesEx()
to "natural" names.

Is this correct or have I missed something ?

Best John

PS locale loc("") ; //yields the local locale only eg

LC_MONETARY=English_United Kingdom.850
LC_TIME=English_United Kingdom.850
LC_NUMERIC=English_United Kingdom.850
LC_COLLATE=English_United Kingdom.850
LC_CTYPE=English_United Kingdom.850
or -
LC_MONETARY=French_Principality of Monaco.850
LC_TIME=French_Principality of Monaco.850
LC_NUMERIC=French_Principality of Monaco.850
LC_COLLATE=French_Principality of Monaco.850
LC_CTYPE=French_Principality of Monaco.850
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02