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. Converting the language of an application to any other language

Converting the language of an application to any other language

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
7 Posts 6 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.
  • M Offline
    M Offline
    manoharbalu
    wrote on last edited by
    #1

    I have a MFC based window application developed in VC6.0. We have developed it in English language. Hence all the menu, windows, messages and other text of the application are displayed in English. I want it to be displayed in other languages also. Is there any quick way to do the conversion of the language? What is the way to do the conversion? Please suggest me with all the possible ways to convert the langugage. Thanks in advance, Mohan

    P _ C N 4 Replies Last reply
    0
    • M manoharbalu

      I have a MFC based window application developed in VC6.0. We have developed it in English language. Hence all the menu, windows, messages and other text of the application are displayed in English. I want it to be displayed in other languages also. Is there any quick way to do the conversion of the language? What is the way to do the conversion? Please suggest me with all the possible ways to convert the langugage. Thanks in advance, Mohan

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      This [^]should be a good place to start.

      I am a HUMAN. I have that keyword (??? too much) in my name........ ;-)_AnsHUMAN_b>

      1 Reply Last reply
      0
      • M manoharbalu

        I have a MFC based window application developed in VC6.0. We have developed it in English language. Hence all the menu, windows, messages and other text of the application are displayed in English. I want it to be displayed in other languages also. Is there any quick way to do the conversion of the language? What is the way to do the conversion? Please suggest me with all the possible ways to convert the langugage. Thanks in advance, Mohan

        P Offline
        P Offline
        Paresh Chitte
        wrote on last edited by
        #3

        Can following links helps you? Multiple language support for MFC applications with extension DLL[^] Multilingual support for applications[^] Regards, Paresh.

        1 Reply Last reply
        0
        • M manoharbalu

          I have a MFC based window application developed in VC6.0. We have developed it in English language. Hence all the menu, windows, messages and other text of the application are displayed in English. I want it to be displayed in other languages also. Is there any quick way to do the conversion of the language? What is the way to do the conversion? Please suggest me with all the possible ways to convert the langugage. Thanks in advance, Mohan

          C Offline
          C Offline
          Cool_Dev
          wrote on last edited by
          #4

          change project settings from MBCS to _UNICODE first. You have to use widechar TCHAR (which is WCHAR as unicode is defined). Remove all hard-coded strings and load them at run time by using any of the following options. 1. Use resource dlls for various languages you need to include, use LoadLibrary() and LoadString() APIs to load and show them. How To Create Localized Resource DLLs for MFC Application
          LoadString Function 2. Use XMLs. You can make use of MSXml sdk for easiness. MSXML SDK 3. Ini files. GetPrivateProfileString Function

          A 1 Reply Last reply
          0
          • C Cool_Dev

            change project settings from MBCS to _UNICODE first. You have to use widechar TCHAR (which is WCHAR as unicode is defined). Remove all hard-coded strings and load them at run time by using any of the following options. 1. Use resource dlls for various languages you need to include, use LoadLibrary() and LoadString() APIs to load and show them. How To Create Localized Resource DLLs for MFC Application
            LoadString Function 2. Use XMLs. You can make use of MSXml sdk for easiness. MSXML SDK 3. Ini files. GetPrivateProfileString Function

            A Offline
            A Offline
            Anand Todkar
            wrote on last edited by
            #5

            Do we really require to change the project settings to UNICODE? I dont think so, we can very well support all languages (including east asian languages) in MBCS also. Please correct me if I am wrong.

            Thanks, Anand.

            C 1 Reply Last reply
            0
            • A Anand Todkar

              Do we really require to change the project settings to UNICODE? I dont think so, we can very well support all languages (including east asian languages) in MBCS also. Please correct me if I am wrong.

              Thanks, Anand.

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

              it may be possible if intense effort is taken to replace required char type variables with wchar_t types, CRT function calls like strlen() with wcslen() and APIS calls such as CreateWindow() with its currespondng wide char version CreateWindowW(). Classes like CString internally handles string data depending on the _UNICODE preprocessor definition. So in _MBCS it will treat the given widechar string as multibyte text only. Definitions of LPCTSTR, LPTSTR etc also changes according to _MBCS and _UNICODE defintions.

              1 Reply Last reply
              0
              • M manoharbalu

                I have a MFC based window application developed in VC6.0. We have developed it in English language. Hence all the menu, windows, messages and other text of the application are displayed in English. I want it to be displayed in other languages also. Is there any quick way to do the conversion of the language? What is the way to do the conversion? Please suggest me with all the possible ways to convert the langugage. Thanks in advance, Mohan

                N Offline
                N Offline
                Nemanja Trifunovic
                wrote on last edited by
                #7

                manoharbalu wrote:

                Is there any quick way to do the conversion of the language?

                No.

                manoharbalu wrote:

                What is the way to do the conversion?

                First you need to make sure that no user-visible text is hard-coded in the cpp files. You need to extract all strings to a string table[^]. Than you can send your string table to localization companies to translate it for you to different languages. Also, be aware that translating text is only one part of making software global. You'll need to take care of different calendars, currencies, etc, etc.

                utf8-cpp

                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