Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multilingual Support - MessageBox Problem

Multilingual Support - MessageBox Problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studioquestionlearning
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dungpapai
    wrote on last edited by
    #1

    Hi all, I have a problem. Please help me soon I am coding for multilingual support project - English-French. I use resource dll to load language interface. But, All MessageBox or AfxMessageBox, any buttons Cancel, Yes, No, I can not switch language (English is default) (Using IDOKCANCEL, IDYESNO ..). If I compile my project in the French of Visual Studio, Can I receive true language? Please help me if you have more solves. Thank you very much

    Software Engineer

    W C 2 Replies Last reply
    0
    • D dungpapai

      Hi all, I have a problem. Please help me soon I am coding for multilingual support project - English-French. I use resource dll to load language interface. But, All MessageBox or AfxMessageBox, any buttons Cancel, Yes, No, I can not switch language (English is default) (Using IDOKCANCEL, IDYESNO ..). If I compile my project in the French of Visual Studio, Can I receive true language? Please help me if you have more solves. Thank you very much

      Software Engineer

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      The text on the MessageBox buttons is dependant on the OS systems language. You cannot easily change this within your code. You might want to take a look at this[^] and implement your own message boxes.

      D 1 Reply Last reply
      0
      • D dungpapai

        Hi all, I have a problem. Please help me soon I am coding for multilingual support project - English-French. I use resource dll to load language interface. But, All MessageBox or AfxMessageBox, any buttons Cancel, Yes, No, I can not switch language (English is default) (Using IDOKCANCEL, IDYESNO ..). If I compile my project in the French of Visual Studio, Can I receive true language? Please help me if you have more solves. Thank you very much

        Software Engineer

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        as stated by WalderMort

        WalderMort wrote:

        The text on the MessageBox buttons is dependant on the OS systems language. So you cannot change it unless you don't make your own version of the message box window. By the way OS dependance it is usually not a problem, since who wants the French release of your program probably has French OS on his PC (and so on...).

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        D 1 Reply Last reply
        0
        • C CPallini

          as stated by WalderMort

          WalderMort wrote:

          The text on the MessageBox buttons is dependant on the OS systems language. So you cannot change it unless you don't make your own version of the message box window. By the way OS dependance it is usually not a problem, since who wants the French release of your program probably has French OS on his PC (and so on...).

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          D Offline
          D Offline
          dungpapai
          wrote on last edited by
          #4

          cpallini wrote:

          French release of your program probably has French OS on his PC

          But When I use French OS, I compile my proje ct, create a setup of this, When I install my setup in other computer which use English OS, My message' buttons are French Language or English??. Please send to me if you has many good ideas Thank you very much.

          Software Engineer

          C 1 Reply Last reply
          0
          • W Waldermort

            The text on the MessageBox buttons is dependant on the OS systems language. You cannot easily change this within your code. You might want to take a look at this[^] and implement your own message boxes.

            D Offline
            D Offline
            dungpapai
            wrote on last edited by
            #5

            Thank you for your idea. I will try coding with it. Please send to me if you have any good ideas. Thank you very much!

            Software Engineer

            1 Reply Last reply
            0
            • D dungpapai

              cpallini wrote:

              French release of your program probably has French OS on his PC

              But When I use French OS, I compile my proje ct, create a setup of this, When I install my setup in other computer which use English OS, My message' buttons are French Language or English??. Please send to me if you has many good ideas Thank you very much.

              Software Engineer

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              dungpapai wrote:

              But When I use French OS, I compile my proje ct, create a setup of this, When I install my setup in other computer which use English OS, My message' buttons are French Language or English??.

              English language. But, as I said, usually the user knows that and does not complain about. Anyway if you want to fix this behaviour, you can write you own version of the MessageBox, it is not that difficult (or you can take a look to the article suggested by WalderMort).

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups