CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Only the end user chooses which language version of the resource dll he/she will use. Period.
    Victor Nijegorodov

  2. #17
    Join Date
    Feb 2009
    Location
    Portland, OR
    Posts
    1,488

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Oh, so you don't detect it at the app's start-up and present the language appropriate for a user locale? I've seen it done a million times...

  3. #18
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: [RESOLVED] Learn which language CString::LoadString() used

    No! Never!
    I never trust "a user locale".
    User select the UI language either from the options combobox or/and pass the preferable language id (usually the abbreviation like "ENU"," DEU", "ESP" ,...) as a command line option.
    Victor Nijegorodov

  4. #19
    Join Date
    Feb 2009
    Location
    Portland, OR
    Posts
    1,488

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Quote Originally Posted by VictorN View Post
    No! Never!
    I never trust "a user locale".
    Just curious, why so?

  5. #20
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Because some German users prefer using German UI for my applications also in English-US Windows
    Victor Nijegorodov

  6. #21
    Join Date
    Feb 2009
    Location
    Portland, OR
    Posts
    1,488

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Quote Originally Posted by VictorN View Post
    Because some German users prefer using German UI for my applications also in English-US Windows
    So let me get it right -- your software defaults to English, and then someone can change it manually to German, right?

    If so, what if some of your German users don't speak a word in English and you load the UI in it?

  7. #22
    Join Date
    Apr 1999
    Posts
    27,449

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Quote Originally Posted by ahmd View Post
    So let me get it right -- your software defaults to English, and then someone can change it manually to German, right?

    If so, what if some of your German users don't speak a word in English and you load the UI in it?
    Then they shouldn't have chosen "English" as the language to use on installation, or they shouldn't have downloaded (or ordered) the "English version" of the installer program.

    Look how many authors accomplish this -- they have different installation versions for the various languages, and in the installation, the user has the option of choosing the installation language or another language as the default language for the app. After that, it is a user error if the language of the application doesn't show up in something they understand.

    IMO, trying to be too smart in what language the user may be using is a losing game. What would you do if the person is running the program in Switzerland? There are 3 official languages there -- which one do you choose to give to the user? This is where you let the user decide, and that is usually done on installation and/or menu choice, INI or registry setting, etc.

    Regards,

    Paul McKenzie

  8. #23
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: [RESOLVED] Learn which language CString::LoadString() used

    Quote Originally Posted by ahmd View Post
    So let me get it right -- your software defaults to English, and then someone can change it manually to German, right?

    If so, what if some of your German users don't speak a word in English and you load the UI in it?
    The primary language choice has an Admin who installs that software.
    But there is no problem to edit the app shortcuts later to change the language if someone would like to use another one...
    Victor Nijegorodov

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured