localizing web form without setting values programmatically

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

    #1

    localizing web form without setting values programmatically

    Hello

    I have to start an Asp.net project that involves i18n, so I was doing
    some reading on the subject. I'm not sure (and I *really* hope I'm
    wrong) but is it true, that there is no way to store localized values in
    resource files without assigning them programmaticall y? Which means: I
    can't just set a labels text as usual and change this value in a
    localized resource file which is being assigned dynamically regarding
    the regional settings?

    Having 50 pages with loads of controls that all have settings like
    <%=LocRM.GetStr ing("txtWelcome ")%>
    is a design- and administration-nightmare and a waste of the built-in
    i18n-support...


    :-(


    Thanks for your advice

    Philipp

  • Marc Hoeppner

    #2
    Re: localizing web form without setting values programmaticall y

    Hi,

    well, you can use the normal way (ie. <asp:label id="..." text="MyText"
    ..../> and then overwrite it with LabelName.Text =
    MyLocRM.GetStri ng("lblMyLabel" ). Still this is a lot of work. My approach
    was to build it as I normally would and then get a temp to do the RM
    plumbing :) - Worked pretty well and you still can use the WYSIWYG editor if
    you really have to. Other than that I wish that MS would do another version
    of this one here, which sounds very promising, but has it's own problems:

    http://msdn.microsoft.com/library/de...loctoolkit.asp

    Best regards,

    Marc Höppner
    NeoGeo

    "Philipp Sumi" <sumip@freesurf .spam.ch> wrote in message
    news:eG3PTuGUDH A.3188@tk2msftn gp13.phx.gbl...[color=blue]
    > Hello
    >
    > I have to start an Asp.net project that involves i18n, so I was doing
    > some reading on the subject. I'm not sure (and I *really* hope I'm
    > wrong) but is it true, that there is no way to store localized values in
    > resource files without assigning them programmaticall y? Which means: I
    > can't just set a labels text as usual and change this value in a
    > localized resource file which is being assigned dynamically regarding
    > the regional settings?
    >
    > Having 50 pages with loads of controls that all have settings like
    > <%=LocRM.GetStr ing("txtWelcome ")%>
    > is a design- and administration-nightmare and a waste of the built-in
    > i18n-support...
    >
    >
    > :-(
    >
    >
    > Thanks for your advice
    >
    > Philipp
    >[/color]


    Comment

    • Philipp Sumi

      #3
      Re: localizing web form without setting values programmaticall y

      Hello John, Karl and Marc

      Thanks for the fast reply! I'll evaluate the Localization Toolkit which
      sounds promising. Furthermore, I discovered a localization component
      that provides the functionality I was missing. Unfortunately, it's
      commercial but it's a fallback if the toolkit does not meet my requirements:



      Thank you very much for your inputs :-)

      Philipp

      Comment

      Working...