Localizing Message boxes, strings, etc

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andre Nogueira

    Localizing Message boxes, strings, etc

    Hi there.
    I am developing an application using Visual Basic .Net 2003.
    So far I have localized my forms and their controls using the VS.net Ide
    (Setting localized to True, choosing a language and translating the text on
    all the controls).
    But now I have a problem. How can I do this with Message Boxes and text that
    is created dinamically?
    I searched MSDN and also used google but found nothing...

    Thank you in advance!

    André Nogueira


  • Herfried K. Wagner [MVP]

    #2
    Re: Localizing Message boxes, strings, etc

    * "Andre Nogueira" <anog@netcabo.p t.NOSPAM> scripsit:[color=blue]
    > But now I have a problem. How can I do this with Message Boxes and text that
    > is created dinamically?[/color]

    There is no direct way to localize them -- the captions will be taken
    from Windows and will contain text in the system's language.

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    • Andre Nogueira

      #3
      Re: Localizing Message boxes, strings, etc

      But I mean Message Boxes generated by my program using Msgbox and strings,
      such as
      Dim S as String
      S = "This is my string"
      Msgbox "this is another string"

      What is the best way to localize such resources? Any ideas?
      Thanks!

      Andre Nogueira


      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
      news:2jlssaF136 bkeU1@uni-berlin.de...[color=blue]
      > * "Andre Nogueira" <anog@netcabo.p t.NOSPAM> scripsit:[color=green]
      > > But now I have a problem. How can I do this with Message Boxes and text[/color][/color]
      that[color=blue][color=green]
      > > is created dinamically?[/color]
      >
      > There is no direct way to localize them -- the captions will be taken
      > from Windows and will contain text in the system's language.
      >
      > --
      > Herfried K. Wagner [MVP]
      > <URL:http://dotnet.mvps.org/>[/color]


      Comment

      • Cor Ligthert

        #4
        Re: Localizing Message boxes, strings, etc

        Hi Andre,

        Told is to use the resx, however mostly when this message is placed in this
        way there are a lot of reactions which tell that that is much to difficult
        to use for this situations.

        I agree that and I think that creating a language file for that by instance
        a XML dataset is much more handy. (You can change the language outside your
        program with that).

        I hope this helps?

        Cor
        [color=blue]
        > But I mean Message Boxes generated by my program using Msgbox and strings,
        > such as
        > Dim S as String
        > S = "This is my string"
        > Msgbox "this is another string"
        >
        > What is the best way to localize such resources? Any ideas?
        > Thanks!
        >
        > Andre Nogueira[/color]


        Comment

        Working...