locked
Multi language web forms... Please help!!! RRS feed

  • Question

  • User1668635887 posted

    I have a bunch of forms that I have all ready coded for a multi language web application. How can I make the forms multilanguage so that when the form page can be viewed in french and english by the web user. I have read a lot about locilization on the web, but I am very confused... Can someone please explain this to me???

    Thanks in advance!!

    Wednesday, August 16, 2006 4:52 PM

All replies

  • User-1936818034 posted

    If you use asp.net 2. The easiest way is to use resource files, two asp.net folder App_GlobalResources and App_LocalResources are to store .resx files of application scope or page specific. Different extension of .resx files stand for different culture, e.g: Default.aspx.fr.resx and Default.aspx.en-US.resx are both for the same page and you can let asp.net auto decide or explicitly pick up one to use.

    And if you already coded your pages, just go to the Design view of a page, then Tools -> Generate Local Resource and vs will gen a page specific .resx file for you~

    Wednesday, August 16, 2006 11:11 PM
  • User1668635887 posted

    Sorry... I forgot to mention that I am using 1.1 - that's what the client wants... :(

     

    Is there any way with 1.1 framework?

    Thanks in advance!

    Wednesday, August 16, 2006 11:34 PM
  • User-1936818034 posted
    Oh... So plz check out this article, the implementation there is quite good! [;)]
    Wednesday, August 16, 2006 11:51 PM
  • User1668635887 posted

    Thanks for the link, but I am still having trouble understanding how this works. Also it is in C# and I am coding in VB... I think that I am just really confused! Where should this code go?

     

    public LocalStringIndexer Strings
    {
        get
        {
            if (stringIndexer == null)
                stringIndexer = new LocalStringIndexer();
            return stringIndexer; 
        }
    }

     

    Thanks!!

    Thursday, August 17, 2006 1:04 AM
  • User-1936818034 posted

    This is it: he use a BasePage whith inherits from System.UI.Page and coded the property in BasePage, and then let all his pages inherit from it.

    The base page strategy is a very common but useful way to manipulate the whole site~

    Thursday, August 17, 2006 1:48 AM
  • User-1936818034 posted
    Excuse me.. It's System.Web.UI.Page. [;)]
    Thursday, August 17, 2006 1:50 AM
  • User1668635887 posted

    This just isn't working for me. I have created the new class and inherited the BasePage but I am confunsed about what to do after this... Is there another example out there? I have tried to find one, but to no avail...

     

    Thanks again!

    Thursday, August 17, 2006 1:18 PM
  • User-503940700 posted

    Hi,

    Try this link:

    http://msdn.microsoft.com/en-us/library/bz9tc508.aspx

    HTH,

    Vivek

    Thursday, August 17, 2006 4:30 PM
  • User1668635887 posted

    Hey guys, thanks for the help... I finally got it to work

     

    This is the link that did it for me. I downloaded the code and away I went.

     

    http://openmymind.net/index.aspx?documentId=3

     

    Thursday, August 17, 2006 5:01 PM