fair enough. what ever gets the job done! :-)
--
TDAVISJR
aka - Tampa.NET Koder
"Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
news:ekgvyLaSFHA.204@TK2MSFTNGP15.phx.gbl...[color=blue]
> That's simpler ? ( Only half-kidding... )
>
> If you're going to go that way, you don't even have to
> store the language preference to get the job done.
>
> Just redirecting to the appropiate language directory
> will suffice, if you use relative URLs in the app.
>
> I think the idea is to *avoid* having a duplicated directory
> for each and every language you use, since that becomes
> quite unmanageable, fast, as you add languages.
>
> A slightly different approach would be to use XML files,
> or database tables, for the different language contents.
>
> It would be like creating a different "skin" for each language.
>
> That's much easier to manage, from a data storage point of view.
>
> I'd rather have a different XML file with all the localized strings,
> or a different database column with all the localized strings,
> than having different files, ascx controls, etc. for each language.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
>
http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> Ven, y hablemos de ASP.NET...
> ======================
>
> "TDAVISJR" <anonymous@microsoft.com> wrote in message
> news:O5OO58ZSFHA.748@TK2MSFTNGP10.phx.gbl...[color=green]
>> There is another method that seems to be much simpler. Doing it all with
>> user controls and dynamically loading them at runtime. This is the baisc
>> concept. You have 2 languages say english and french. You will have the
>> directory structure of:
>>
>> MyWebsite
>> en (text in english)
>> header.ascx
>> |_ header.ascx.vb
>> content.ascx
>> |_ content.ascx.vb
>> footer.ascx
>> |_ footer.ascx.vb
>>
>> fr (text in french)
>> header.ascx
>> content.ascx
>> footer.ascx
>>
>> default.aspx
>> contentpage1.aspx
>>
>> So, in the default.aspx you can ask the user which language they want.
>> Then store their language either in a persistant cookie or in a session
>> variable. Depending on what language they choose, dynamically load the
>> user controls from the folders that has the english or french in the
>> contentpage1.aspx page. One thing to note. Only the en foder will have
>> the ascx file and the ascx.vb codebehind file all the other languages
>> will just have the ascx file. The idea is that each of the usercontrols
>> under each language folder will have the EXACT same server contols or
>> controls with the EXACT same name in the ascx file. So, in the @Control
>> directive at the top of the usercontrol in source view you can tell it
>> that it inherits from the ascx.vb files located under the english folder.
>> I guess its more to it than that but this is a very easy way to get going
>> if you need a more simpler approach.
>>
>> --
>> TDAVISJR
>> aka - Tampa.NET Koder
>>
>>
>> "Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
>> news:OJGUSjZSFHA.2680@TK2MSFTNGP09.phx.gbl...[color=darkred]
>>> Read Karl Seguin's excellent tutorial at :
>>>
>>>
http://www.openmymind.net/MyArticles.aspx?documentId=3
>>>
http://www.openmymind.net/MyArticles.aspx?documentId=4
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>>
http://asp.net.do/foros/
>>> Foros de ASP.NET en Espaņol
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "Shapper" <mdmoura*NOSPAM*@gmail.*DELETE2SEND*com> wrote in message
>>> news:OLcVZGZSFHA.3096@TK2MSFTNGP12.phx.gbl...
>>>> Hello,
>>>>
>>>> I am working on an ASP.NET / VB web site and I need to have 2 versions:
>>>> In English and French.
>>>>
>>>> I could create two versions of the web site by duplicating all the
>>>> pages. Is that the right way?
>>>>
>>>> All my contents come from a database so I can duplicate the the fields
>>>> so I can have 2 language content.
>>>>
>>>> I also have a "French Version" or an "English Version" button in my
>>>> page. It should show only one.
>>>>
>>>> Thank You,
>>>> Miguel
>>>>
>>>
>>>[/color]
>>
>>[/color]
>
>[/color]