multi languages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Johansson

    #1

    multi languages

    Hello!

    Assume I have a windows forms application for people that can read English.

    Now to my question assume that this windows form application should also
    support the swedish language.What is the best way to do this?

    In the GUI there are two kinds of text that is either displayed in english
    or swedish.
    The first kind of text is the text that is written on buttons for example.
    The other kind of text is the text in kolumn in a listBox for example.

    If MFC was used only the *.rc file is switched between the two languages.

    But how is this best done in .NET(C++).

    //Tony


  • Mark

    #2
    RE: multi languages

    Look at MSDN for System.Globaliz ation.CultureIn fo class.

    Hope this helps,
    Mark.

    "Tony Johansson" wrote:
    [color=blue]
    > Hello!
    >
    > Assume I have a windows forms application for people that can read English.
    >
    > Now to my question assume that this windows form application should also
    > support the swedish language.What is the best way to do this?
    >
    > In the GUI there are two kinds of text that is either displayed in english
    > or swedish.
    > The first kind of text is the text that is written on buttons for example.
    > The other kind of text is the text in kolumn in a listBox for example.
    >
    > If MFC was used only the *.rc file is switched between the two languages.
    >
    > But how is this best done in .NET(C++).
    >
    > //Tony
    >
    >
    >[/color]

    Comment

    • Peter Oliphant

      #3
      Re: multi languages

      Off topic, but related....sort of....hehe

      Out of pure curiosity, are computer languages ever written in other foreign
      languages? For example, in ENGLISH we have the 'switch-case' command
      structure. But, is there another 'version' of VC++.NET that uses, say, the
      FRENCH words for 'switch' and 'case' instead?

      [==P==]

      "Mark" <Mark@discussio ns.microsoft.co m> wrote in message
      news:CF8E4263-A1AB-457C-97A8-A4BF3CC84702@mi crosoft.com...[color=blue]
      > Look at MSDN for System.Globaliz ation.CultureIn fo class.
      >
      > Hope this helps,
      > Mark.
      >
      > "Tony Johansson" wrote:
      >[color=green]
      >> Hello!
      >>
      >> Assume I have a windows forms application for people that can read
      >> English.
      >>
      >> Now to my question assume that this windows form application should also
      >> support the swedish language.What is the best way to do this?
      >>
      >> In the GUI there are two kinds of text that is either displayed in
      >> english
      >> or swedish.
      >> The first kind of text is the text that is written on buttons for
      >> example.
      >> The other kind of text is the text in kolumn in a listBox for example.
      >>
      >> If MFC was used only the *.rc file is switched between the two languages.
      >>
      >> But how is this best done in .NET(C++).
      >>
      >> //Tony
      >>
      >>
      >>[/color][/color]


      Comment

      • Mark

        #4
        Re: multi languages

        I'm American but have traveled long and far, I've seen nothing but English
        code.

        Mark.

        "Peter Oliphant" wrote:
        [color=blue]
        > Off topic, but related....sort of....hehe
        >
        > Out of pure curiosity, are computer languages ever written in other foreign
        > languages? For example, in ENGLISH we have the 'switch-case' command
        > structure. But, is there another 'version' of VC++.NET that uses, say, the
        > FRENCH words for 'switch' and 'case' instead?
        >
        > [==P==]
        >
        > "Mark" <Mark@discussio ns.microsoft.co m> wrote in message
        > news:CF8E4263-A1AB-457C-97A8-A4BF3CC84702@mi crosoft.com...[color=green]
        > > Look at MSDN for System.Globaliz ation.CultureIn fo class.
        > >
        > > Hope this helps,
        > > Mark.
        > >
        > > "Tony Johansson" wrote:
        > >[color=darkred]
        > >> Hello!
        > >>
        > >> Assume I have a windows forms application for people that can read
        > >> English.
        > >>
        > >> Now to my question assume that this windows form application should also
        > >> support the swedish language.What is the best way to do this?
        > >>
        > >> In the GUI there are two kinds of text that is either displayed in
        > >> english
        > >> or swedish.
        > >> The first kind of text is the text that is written on buttons for
        > >> example.
        > >> The other kind of text is the text in kolumn in a listBox for example.
        > >>
        > >> If MFC was used only the *.rc file is switched between the two languages.
        > >>
        > >> But how is this best done in .NET(C++).
        > >>
        > >> //Tony
        > >>
        > >>
        > >>[/color][/color]
        >
        >
        >[/color]

        Comment

        • Ronald Laeremans [MSFT]

          #5
          Re: multi languages

          Mark wrote:[color=blue]
          > I'm American but have traveled long and far, I've seen nothing but English
          > code.
          >
          > Mark.
          >
          > "Peter Oliphant" wrote:
          >
          >[color=green]
          >>Off topic, but related....sort of....hehe
          >>
          >>Out of pure curiosity, are computer languages ever written in other foreign
          >>languages? For example, in ENGLISH we have the 'switch-case' command
          >>structure. But, is there another 'version' of VC++.NET that uses, say, the
          >>FRENCH words for 'switch' and 'case' instead?
          >>
          >>[==P==]
          >>
          >>"Mark" <Mark@discussio ns.microsoft.co m> wrote in message
          >>news:CF8E42 63-A1AB-457C-97A8-A4BF3CC84702@mi crosoft.com...
          >>[color=darkred]
          >>>Look at MSDN for System.Globaliz ation.CultureIn fo class.
          >>>
          >>>Hope this helps,
          >>>Mark.
          >>>
          >>>"Tony Johansson" wrote:
          >>>
          >>>
          >>>>Hello!
          >>>>
          >>>>Assume I have a windows forms application for people that can read
          >>>>English.
          >>>>
          >>>>Now to my question assume that this windows form application should also
          >>>>support the swedish language.What is the best way to do this?
          >>>>
          >>>>In the GUI there are two kinds of text that is either displayed in
          >>>>english
          >>>>or swedish.
          >>>>The first kind of text is the text that is written on buttons for
          >>>>example.
          >>>>The other kind of text is the text in kolumn in a listBox for example.
          >>>>
          >>>>If MFC was used only the *.rc file is switched between the two languages.
          >>>>
          >>>>But how is this best done in .NET(C++).
          >>>>
          >>>>//Tony[/color][/color][/color]

          (Very) early versions of the macro language in the office applications
          localized the macro code. Since that was an absolute nightmare, the
          design was changed.

          Ronald Laeremans
          Visual C++ team

          Comment

          • Arnaud Debaene

            #6
            Re: multi languages

            Peter Oliphant wrote:[color=blue]
            > Off topic, but related....sort of....hehe
            >
            > Out of pure curiosity, are computer languages ever written in other
            > foreign languages? For example, in ENGLISH we have the 'switch-case'
            > command structure. But, is there another 'version' of VC++.NET that
            > uses, say, the FRENCH words for 'switch' and 'case' instead?[/color]

            Actually there has been an attempt about 10 years ago in the French
            education system to teach a limited "langage" that was written in French
            (ie, keywords where in French). Useless to say that this teaching-only
            language, that had been written only for and by the education system, was a
            complete failure (I cannot even remember it's name right now...).

            Beside that point, I must say that I find English much more usable for
            technical discussions that many other languages, including my nativen
            French. I am speaking about international, technical, English here mind you,
            not Shakespeare!
            Anyway, when trying to express complex, abstract ideas (for example in the
            conception drafts for a soft), I often found it easier to express myself in
            English where I can use small, short and readable sentences. By opposition,
            in French - which I master of course better than English - I often end up
            with complicated, tortuous grammar constructs that I found less readable.
            Don't know if other languages give people the same feeling though.
            For that reason, I am quite happy with English being the Esperanto and
            Lingua Franca of computer science. Of course I prefer French for other
            domains ;-)

            Arnaud
            MVP - VC


            Comment

            Working...