assemblies / dll / resourcemanager

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

    #1

    assemblies / dll / resourcemanager

    Hi,

    I've created an assembly where are stores some strings.
    By using menu items, user can change language of application GUI (so using the strings in my assemblies)

    1. how can i compile my resx into dll ?
    2. how can i use a resourcemanager to manage the resources ?
    3. how can i do this (1. and 2.) without restarting application or form (due to initializecompo nent function present in sub new of my form) ?

    thanks a lot
    Maileen
  • Herfried K. Wagner [MVP]

    #2
    Re: assemblies / dll / resourcemanager

    Maileen,

    "Maileen" <noemail@nospam .com> schrieb:[color=blue]
    > I've created an assembly where are stores some strings.
    > By using menu items, user can change language of application GUI (so using
    > the strings in my assemblies)
    >
    > 1. how can i compile my resx into dll ?[/color]

    This can be done by creating localized satellite assemblies which contain
    the resources:

    Visual Basic and Visual C# Concepts -- Hierarchical Organization of
    Resources for Localization
    <URL:http://msdn.microsoft. com/library/en-us/vbcon/html/vbconhierarchic alorganizationo fresourcesforlo calization.asp>
    [color=blue]
    > 2. how can i use a resourcemanager to manage the resources ?[/color]

    Visual Basic and Visual C# Concepts -- Walkthrough: Localizing Windows Forms
    <URL:http://msdn.microsoft. com/library/en-us/vbcon/html/vbwlkWalkthroug hLocalizingWind owsForms.asp>
    [color=blue]
    > 3. how can i do this (1. and 2.) without restarting application
    > or form (due to initializecompo nent function present in sub new
    > of my form) ?[/color]

    Instantly Changing Language in the Form
    <URL:http://www.codeproject .com/csharp/FormLanguageSwi tch.asp>

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • Maileen

      #3
      Re: assemblies / dll / resourcemanager

      thanks a lot.

      Herfried K. Wagner [MVP] wrote:[color=blue]
      > Maileen,
      >
      > "Maileen" <noemail@nospam .com> schrieb:[color=green]
      >> I've created an assembly where are stores some strings.
      >> By using menu items, user can change language of application GUI (so
      >> using the strings in my assemblies)
      >>
      >> 1. how can i compile my resx into dll ?[/color]
      >
      > This can be done by creating localized satellite assemblies which
      > contain the resources:
      >
      > Visual Basic and Visual C# Concepts -- Hierarchical Organization of
      > Resources for Localization
      > <URL:http://msdn.microsoft. com/library/en-us/vbcon/html/vbconhierarchic alorganizationo fresourcesforlo calization.asp>
      >
      >[color=green]
      >> 2. how can i use a resourcemanager to manage the resources ?[/color]
      >
      > Visual Basic and Visual C# Concepts -- Walkthrough: Localizing Windows
      > Forms
      > <URL:http://msdn.microsoft. com/library/en-us/vbcon/html/vbwlkWalkthroug hLocalizingWind owsForms.asp>
      >
      >[color=green]
      >> 3. how can i do this (1. and 2.) without restarting application
      >> or form (due to initializecompo nent function present in sub new
      >> of my form) ?[/color]
      >
      > Instantly Changing Language in the Form
      > <URL:http://www.codeproject .com/csharp/FormLanguageSwi tch.asp>
      >[/color]

      Comment

      • Maileen

        #4
        Re: assemblies / dll / resourcemanager

        I have one additional question :

        in the example, the resource have the same name as the application. how can i give them another name ?
        and how to store them in another folder ?

        something like :
        application_pat h\lang_en.dll

        instead of application_pat h\en\applicatio nname.resources .dll

        thanks a lot,
        Maileen


        Herfried K. Wagner [MVP] wrote:[color=blue]
        > Maileen,
        >
        > "Maileen" <noemail@nospam .com> schrieb:[color=green]
        >> I've created an assembly where are stores some strings.
        >> By using menu items, user can change language of application GUI (so
        >> using the strings in my assemblies)
        >>
        >> 1. how can i compile my resx into dll ?[/color]
        >
        > This can be done by creating localized satellite assemblies which
        > contain the resources:
        >
        > Visual Basic and Visual C# Concepts -- Hierarchical Organization of
        > Resources for Localization
        > <URL:http://msdn.microsoft. com/library/en-us/vbcon/html/vbconhierarchic alorganizationo fresourcesforlo calization.asp>
        >
        >[color=green]
        >> 2. how can i use a resourcemanager to manage the resources ?[/color]
        >
        > Visual Basic and Visual C# Concepts -- Walkthrough: Localizing Windows
        > Forms
        > <URL:http://msdn.microsoft. com/library/en-us/vbcon/html/vbwlkWalkthroug hLocalizingWind owsForms.asp>
        >
        >[color=green]
        >> 3. how can i do this (1. and 2.) without restarting application
        >> or form (due to initializecompo nent function present in sub new
        >> of my form) ?[/color]
        >
        > Instantly Changing Language in the Form
        > <URL:http://www.codeproject .com/csharp/FormLanguageSwi tch.asp>
        >[/color]

        Comment

        Working...