Hi,
I need to localize my asp.net application and I would like to populate drop
down box from a resource file
I see that ms localization tool kit can save lists in a resource file
but I don't want to use it

How would you save a collection in a resource file?



Thanks in advance.

Re: How would you save a collection in a resource file? by Lloyd

Lloyd
Sun Jun 26 17:55:07 CDT 2005

serialization?

"Julia" <codewizard@012.net.il> wrote in message
news:e6Y$xsmeFHA.2584@tk2msftngp13.phx.gbl...
> Hi,
> I need to localize my asp.net application and I would like to populate
> drop
> down box from a resource file
> I see that ms localization tool kit can save lists in a resource file
> but I don't want to use it
>
> How would you save a collection in a resource file?
>
>
>
> Thanks in advance.
>
>
>
>



Re: How would you save a collection in a resource file? by Julia

Julia
Mon Jun 27 03:24:56 CDT 2005

Yes of course,it can be done like this
but doesn't VS.NET studio support editing resource file which contains a
list?
I only found samples which show how to store string and simple types
i dont want to write code which alter my resource file.

Thanks

"Lloyd Dupont" <net.galador@ld> wrote in message
news:OnjCdIqeFHA.3880@tk2msftngp13.phx.gbl...
> serialization?
>
> "Julia" <codewizard@012.net.il> wrote in message
> news:e6Y$xsmeFHA.2584@tk2msftngp13.phx.gbl...
> > Hi,
> > I need to localize my asp.net application and I would like to populate
> > drop
> > down box from a resource file
> > I see that ms localization tool kit can save lists in a resource file
> > but I don't want to use it
> >
> > How would you save a collection in a resource file?
> >
> >
> >
> > Thanks in advance.
> >
> >
> >
> >
>
>



Re: How would you save a collection in a resource file? by Lloyd

Lloyd
Mon Jun 27 06:11:12 CDT 2005

mmhh.....
I guess it's related to designers...

If you find a tutorial which explain you how to add a custom designer for
your component (one which edit collection) you could then a set of attribute
to your collection type and then use it in the resource editor.


I know there is some tutorial about that,...

"Julia" <codewizard@012.net.il> wrote in message
news:edEJAHveFHA.412@tk2msftngp13.phx.gbl...
> Yes of course,it can be done like this
> but doesn't VS.NET studio support editing resource file which contains a
> list?
> I only found samples which show how to store string and simple types
> i dont want to write code which alter my resource file.
>
> Thanks
>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:OnjCdIqeFHA.3880@tk2msftngp13.phx.gbl...
>> serialization?
>>
>> "Julia" <codewizard@012.net.il> wrote in message
>> news:e6Y$xsmeFHA.2584@tk2msftngp13.phx.gbl...
>> > Hi,
>> > I need to localize my asp.net application and I would like to populate
>> > drop
>> > down box from a resource file
>> > I see that ms localization tool kit can save lists in a resource file
>> > but I don't want to use it
>> >
>> > How would you save a collection in a resource file?
>> >
>> >
>> >
>> > Thanks in advance.
>> >
>> >
>> >
>> >
>>
>>
>
>



Re: How would you save a collection in a resource file? by Julia

Julia
Mon Jun 27 07:23:05 CDT 2005

What about editiong the XML file?!?!
I am just looking for the format that's all!!

Thanks in advance.


"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:%231DJtjweFHA.220@TK2MSFTNGP12.phx.gbl...
> mmhh.....
> I guess it's related to designers...
>
> If you find a tutorial which explain you how to add a custom designer for
> your component (one which edit collection) you could then a set of
attribute
> to your collection type and then use it in the resource editor.
>
>
> I know there is some tutorial about that,...
>
> "Julia" <codewizard@012.net.il> wrote in message
> news:edEJAHveFHA.412@tk2msftngp13.phx.gbl...
> > Yes of course,it can be done like this
> > but doesn't VS.NET studio support editing resource file which contains a
> > list?
> > I only found samples which show how to store string and simple types
> > i dont want to write code which alter my resource file.
> >
> > Thanks
> >
> > "Lloyd Dupont" <net.galador@ld> wrote in message
> > news:OnjCdIqeFHA.3880@tk2msftngp13.phx.gbl...
> >> serialization?
> >>
> >> "Julia" <codewizard@012.net.il> wrote in message
> >> news:e6Y$xsmeFHA.2584@tk2msftngp13.phx.gbl...
> >> > Hi,
> >> > I need to localize my asp.net application and I would like to
populate
> >> > drop
> >> > down box from a resource file
> >> > I see that ms localization tool kit can save lists in a resource file
> >> > but I don't want to use it
> >> >
> >> > How would you save a collection in a resource file?
> >> >
> >> >
> >> >
> >> > Thanks in advance.
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Re: How would you save a collection in a resource file? by Lloyd

Lloyd
Mon Jun 27 08:45:26 CDT 2005

oh then!......

now that you ask, I think..... that's an excellent question!

uh..... in fact I can't remember what a resource file looks like in 1.x.....

In 2.0 the .resx designer lets you embed a text file! (and you could
separate your your value by a line return)
I knwo in 1.x you've got both .resources & .resx, try .resx.....

otherwise, in the worst case.......
you could embed them in the file type of your choice as an embeded resource
(think assembly.GetManifestResourceStream())
and write your ownn res manager implementing the same fallback
mechanism.....


"Julia" <codewizard@012.net.il> wrote in message
news:%23Jc9EMxeFHA.1288@tk2msftngp13.phx.gbl...
> What about editiong the XML file?!?!
> I am just looking for the format that's all!!
>
> Thanks in advance.
>
>
> "Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
> news:%231DJtjweFHA.220@TK2MSFTNGP12.phx.gbl...
>> mmhh.....
>> I guess it's related to designers...
>>
>> If you find a tutorial which explain you how to add a custom designer for
>> your component (one which edit collection) you could then a set of
> attribute
>> to your collection type and then use it in the resource editor.
>>
>>
>> I know there is some tutorial about that,...
>>
>> "Julia" <codewizard@012.net.il> wrote in message
>> news:edEJAHveFHA.412@tk2msftngp13.phx.gbl...
>> > Yes of course,it can be done like this
>> > but doesn't VS.NET studio support editing resource file which contains
>> > a
>> > list?
>> > I only found samples which show how to store string and simple types
>> > i dont want to write code which alter my resource file.
>> >
>> > Thanks
>> >
>> > "Lloyd Dupont" <net.galador@ld> wrote in message
>> > news:OnjCdIqeFHA.3880@tk2msftngp13.phx.gbl...
>> >> serialization?
>> >>
>> >> "Julia" <codewizard@012.net.il> wrote in message
>> >> news:e6Y$xsmeFHA.2584@tk2msftngp13.phx.gbl...
>> >> > Hi,
>> >> > I need to localize my asp.net application and I would like to
> populate
>> >> > drop
>> >> > down box from a resource file
>> >> > I see that ms localization tool kit can save lists in a resource
>> >> > file
>> >> > but I don't want to use it
>> >> >
>> >> > How would you save a collection in a resource file?
>> >> >
>> >> >
>> >> >
>> >> > Thanks in advance.
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>