ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: 'locale language'   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

ven. 30 juillet 2010, 14h53
Nathalie Chacon
atoutfox.public.association

Re: 'locale language'

si cela peut vous aider
Sys(3004) pour avoir l'ID Locale
et pour avoir la liste des ID voir dans foxpro.h les constantes définies
pour "Language IDs"

A language ID is a 16 bit value which is the combination of a
* primary language ID and a secondary language ID.

#DEFINE LANG_NEUTRAL 0x00

#DEFINE LANG_AFRIKAANS 0x36
#DEFINE LANG_ALBANIAN 0x1c
#DEFINE LANG_ARABIC 0x01
#DEFINE LANG_BASQUE 0x2d
#DEFINE LANG_BELARUSIAN 0x23
#DEFINE LANG_BULGARIAN 0x02
#DEFINE LANG_CATALAN 0x03
#DEFINE LANG_CHINESE 0x04
#DEFINE LANG_CROATIAN 0x1a
#DEFINE LANG_CZECH 0x05
#DEFINE LANG_DANISH 0x06
#DEFINE LANG_DUTCH 0x13
#DEFINE LANG_ENGLISH 0x09
#DEFINE LANG_ESTONIAN 0x25
#DEFINE LANG_FAEROESE 0x38
#DEFINE LANG_FARSI 0x29
#DEFINE LANG_FINNISH 0x0b
#DEFINE LANG_FRENCH 0x0c
#DEFINE LANG_GERMAN 0x07
#DEFINE LANG_GREEK 0x08
#DEFINE LANG_HEBREW 0x0d
#DEFINE LANG_HUNGARIAN 0x0e
#DEFINE LANG_ICELANDIC 0x0f
#DEFINE LANG_INDONESIAN 0x21
#DEFINE LANG_ITALIAN 0x10
#DEFINE LANG_JAPANESE 0x11
#DEFINE LANG_KOREAN 0x12
#DEFINE LANG_LATVIAN 0x26
#DEFINE LANG_LITHUANIAN 0x27
#DEFINE LANG_NORWEGIAN 0x14
#DEFINE LANG_POLISH 0x15
#DEFINE LANG_PORTUGUESE 0x16
#DEFINE LANG_ROMANIAN 0x18
#DEFINE LANG_RUSSIAN 0x19
#DEFINE LANG_SERBIAN 0x1a
#DEFINE LANG_SLOVAK 0x1b
#DEFINE LANG_SLOVENIAN 0x24
#DEFINE LANG_SPANISH 0x0a
#DEFINE LANG_SWEDISH 0x1d
#DEFINE LANG_THAI 0x1e
#DEFINE LANG_TURKISH 0x1f
#DEFINE LANG_UKRAINIAN 0x22
#DEFINE LANG_VIETNAMESE 0x2a

*
* Sublanguage IDs.
*
* The name immediately following SUBLANG_ dictates which primary
* language ID that sublanguage ID can be combined with to form a
* valid language ID.
*

#DEFINE SUBLANG_NEUTRAL 0x0000 && language neutral
#DEFINE SUBLANG_DEFAULT 0x0400 && user default
#DEFINE SUBLANG_SYS_DEFAULT 0x0800 && system default

#DEFINE SUBLANG_ARABIC_SAUDI_ARABIA 0x0400 && Arabic (Saudi Arabia)
#DEFINE SUBLANG_ARABIC_IRAQ 0x0800 && Arabic (Iraq)
#DEFINE SUBLANG_ARABIC_EGYPT 0x0C00 && Arabic (Egypt)
#DEFINE SUBLANG_ARABIC_LIBYA 0x1000 && Arabic (Libya)
#DEFINE SUBLANG_ARABIC_ALGERIA 0x1400 && Arabic (Algeria)
#DEFINE SUBLANG_ARABIC_MOROCCO 0x1800 && Arabic (Morocco)
#DEFINE SUBLANG_ARABIC_TUNISIA 0x1C00 && Arabic (Tunisia)
#DEFINE SUBLANG_ARABIC_OMAN 0x2000 && Arabic (Oman)
#DEFINE SUBLANG_ARABIC_YEMEN 0x2400 && Arabic (Yemen)
#DEFINE SUBLANG_ARABIC_SYRIA 0x2800 && Arabic (Syria)
#DEFINE SUBLANG_ARABIC_JORDAN 0x2C00 && Arabic (Jordan)
#DEFINE SUBLANG_ARABIC_LEBANON 0x3000 && Arabic (Lebanon)
#DEFINE SUBLANG_ARABIC_KUWAIT 0x3400 && Arabic (Kuwait)
#DEFINE SUBLANG_ARABIC_UAE 0x3800 && Arabic (U.A.E)
#DEFINE SUBLANG_ARABIC_BAHRAIN 0x3C00 && Arabic (Bahrain)
#DEFINE SUBLANG_ARABIC_QATAR 0x4000 && Arabic (Qatar)
#DEFINE SUBLANG_CHINESE_TRADITIONAL 0x0400 && Chinese (Taiwan)
#DEFINE SUBLANG_CHINESE_SIMPLIFIED 0x0800 && Chinese (PR China)
#DEFINE SUBLANG_CHINESE_HONGKONG 0x0C00 && Chinese (Hong Kong
S.A.R)
#DEFINE SUBLANG_CHINESE_SINGAPORE 0x1000 && Chinese (Singapore)
#DEFINE SUBLANG_DUTCH 0x0400 && Dutch
#DEFINE SUBLANG_DUTCH_BELGIAN 0x0800 && Dutch (Belgian)
#DEFINE SUBLANG_ENGLISH_US 0x0400 && English (USA)
#DEFINE SUBLANG_ENGLISH_UK 0x0800 && English (UK)
#DEFINE SUBLANG_ENGLISH_AUS 0x0C00 && English (Australian)
#DEFINE SUBLANG_ENGLISH_CAN 0x1000 && English (Canadian)
#DEFINE SUBLANG_ENGLISH_NZ 0x1400 && English (New Zealand)
#DEFINE SUBLANG_ENGLISH_EIRE 0x1800 && English (Irish)
#DEFINE SUBLANG_ENGLISH_SOUTH_AFRICA 0x1C00 && English (South Africa)
#DEFINE SUBLANG_ENGLISH_JAMAICA 0x2000 && English (Jamaica)
#DEFINE SUBLANG_ENGLISH_CARIBBEAN 0x2400 && English (Caribbean)
#DEFINE SUBLANG_ENGLISH_BELIZE 0x2800 && English (Belize)
#DEFINE SUBLANG_ENGLISH_TRINIDAD 0x2C00 && English (Trinidad)
#DEFINE SUBLANG_FRENCH 0x0400 && French
#DEFINE SUBLANG_FRENCH_BELGIAN 0x0800 && French (Belgian)
#DEFINE SUBLANG_FRENCH_CANADIAN 0x0C00 && French (Canadian)
#DEFINE SUBLANG_FRENCH_SWISS 0x1000 && French (Swiss)
#DEFINE SUBLANG_FRENCH_LUXEMBOURG 0x1400 && French (Luxembourg)
#DEFINE SUBLANG_GERMAN 0x0400 && German
#DEFINE SUBLANG_GERMAN_SWISS 0x0800 && German (Swiss)
#DEFINE SUBLANG_GERMAN_AUSTRIAN 0x0C00 && German (Austrian)
#DEFINE SUBLANG_GERMAN_LUXEMBOURG 0x1000 && German (Luxembourg)
#DEFINE SUBLANG_GERMAN_LIECHTENSTEIN 0x1400 && German (Liechtenstein)
#DEFINE SUBLANG_ITALIAN 0x0400 && Italian
#DEFINE SUBLANG_ITALIAN_SWISS 0x0800 && Italian (Swiss)
#DEFINE SUBLANG_KOREAN 0x0400 && Korean (Extended
Wansung)
#DEFINE SUBLANG_KOREAN_JOHAB 0x0800 && Korean (Johab)
#DEFINE SUBLANG_NORWEGIAN_BOKMAL 0x0400 && Norwegian (Bokmal)
#DEFINE SUBLANG_NORWEGIAN_NYNORSK 0x0800 && Norwegian (Nynorsk)
#DEFINE SUBLANG_PORTUGUESE 0x0800 && Portuguese
#DEFINE SUBLANG_PORTUGUESE_BRAZILIAN 0x0400 && Portuguese (Brazilian)
#DEFINE SUBLANG_SERBIAN_LATIN 0x0800 && Serbian (Latin)
#DEFINE SUBLANG_SERBIAN_CYRILLIC 0x0C00 && Serbian (Cyrillic)
#DEFINE SUBLANG_SPANISH 0x0400 && Spanish (Castilian)
#DEFINE SUBLANG_SPANISH_MEXICAN 0x0800 && Spanish (Mexican)
#DEFINE SUBLANG_SPANISH_MODERN 0x0C00 && Spanish (Modern)
#DEFINE SUBLANG_SPANISH_GUATEMALA 0x1000 && Spanish (Guatemala)
#DEFINE SUBLANG_SPANISH_COSTA_RICA 0x1400 && Spanish (Costa Rica)
#DEFINE SUBLANG_SPANISH_PANAMA 0x1800 && Spanish (Panama)
#DEFINE SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x1C00 && Spanish (Dominican
Republic)
#DEFINE SUBLANG_SPANISH_VENEZUELA 0x2000 && Spanish (Venezuela)
#DEFINE SUBLANG_SPANISH_COLOMBIA 0x2400 && Spanish (Colombia)
#DEFINE SUBLANG_SPANISH_PERU 0x2800 && Spanish (Peru)
#DEFINE SUBLANG_SPANISH_ARGENTINA 0x2C00 && Spanish (Argentina)
#DEFINE SUBLANG_SPANISH_ECUADOR 0x3000 && Spanish (Ecuador)
#DEFINE SUBLANG_SPANISH_CHILE 0x3400 && Spanish (Chile)
#DEFINE SUBLANG_SPANISH_URUGUAY 0x3800 && Spanish (Uruguay)
#DEFINE SUBLANG_SPANISH_PARAGUAY 0x3C00 && Spanish (Paraguay)
#DEFINE SUBLANG_SPANISH_BOLIVIA 0x4000 && Spanish (Bolivia)
#DEFINE SUBLANG_SPANISH_EL_SALVADOR 0x4400 && Spanish (El Salvador)
#DEFINE SUBLANG_SPANISH_HONDURAS 0x4800 && Spanish (Honduras)
#DEFINE SUBLANG_SPANISH_NICARAGUA 0x4C00 && Spanish (Nicaragua)
#DEFINE SUBLANG_SPANISH_PUERTO_RICO 0x5000 && Spanish (Puerto Rico)
#DEFINE SUBLANG_SWEDISH 0x0400 && Swedish
#DEFINE SUBLANG_SWEDISH_FINLAND 0x0800 && Swedish (Finland)

Cordialement
Nathalie

"Thierry N" <none@zenbuyer.com> a écrit dans le message de news:
i2ubdv$1u0r$1@news.niouzes.net...
> Bonjour à tous
>
> Comment, avec l'API windows, trouver le code de langue courant dans un
> format compatible web (genre 'fr-fr', 'en-us', etc.) ?
>
> GetUserDefaultUILanguage() donne le 'language ID', genre 1036, 1033, etc.
>
> J'ai bien trouvé ça mais je n'y comprends que goutte ...
> http://nibuthomas.wordpress.com/2007/12/06/how-to-convert-language-ids-like-1033-to-english-united-states-form/
>
> merci
> thn
>
>
>

Permalink : http://www.atoutfox.org/nntp.asp?ID=0000003741
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3