Announcement

Collapse
No announcement yet.

Wrong language combination

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wrong language combination

    Guys,

    I encounter a very strange phenomenon regarding Regional Settings on NT4. An application of mine uses
    Code:
    GetLocaleInfo %LOCALE_SYSTEM_DEFAULT, %LOCALE_ILANGUAGE, szLangID, SIZEOF(szLangID)
    to decide for language specific screen output. Although Regional Settings are "Dutch (Standard)", my program obviously does'nt 'see' them and outputs English text as defined by the application. But at the same time the system provides Dutch month names for a 'long date'.
    Does anyone know how this is possible? After I've changed %LOCALE_SYSTEM_DEFAULT into %LOCALE_USER_DEFAULT, everything appears, as intended, in Dutch.
    Obviously on NT4 LOCALE_SYSTEM_DEFAULT and LOCALE_USER_DEFAULT are not necessarily the same thing, due to different user profiles, but I can't figure out why Windows should mix-up things in this way.

    ------------------
    mailto:[email protected][email protected]</A>
    www.basicguru.com/zijlema/

    Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
    http://zijlema.basicguru.eu
    *** Opinions expressed here are not necessarily untrue ***

  • #2
    Hi folks,
    To get my question on top again (and to make myself somewhat more clear):
    On my NT4 workstation LOCALE_SYSTEM_DEFAULT returns "English US", while LOCALE_USER_DEFAULT is "Dutch (standard)". Is the latter pre-dominant over the first? Because I always see Dutch month and day names in a long date.

    ------------------
    mailto:[email protected][email protected]</A>
    www.basicguru.com/zijlema/

    Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
    http://zijlema.basicguru.eu
    *** Opinions expressed here are not necessarily untrue ***

    Comment


    • #3
      Egbert --
      From MSDN

      System locale
      Determines which bitmap fonts, and OEM, ANSI, and MAC code pages are defaults for the system. This only affects applications that are not fully Unicode.

      How to change: Regional Options (CP) (only administrator)

      User locale
      Determines which settings are used for formatting dates, times, currency, and numbers as a default for each user. Also determines the sort order for sorting text.

      How to change: Regional Options (CP)

      So, dates according user locale; code page for console (for example) - system locale.

      ------------------
      E-MAIL: [email protected]

      Comment

      Working...
      X