• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A problem with localization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A problem with localization


  • Subject: Re: A problem with localization
  • From: Amedeo Mantica <email@hidden>
  • Date: Sat, 8 Oct 2005 19:30:59 +0200

Thanks, the method works, but there is another problem (maybe the main problem)

The three hyperlinks that invoke the actions that set language anre in a WOSwitchComponent...

Then using "return pageWithName(name());" returns only the WOSwitchComponent page.

Any suggestion?
Thanks

On 08/ott/05, at 19:03, Chuck Hill wrote:

return pageWithName(name());

Chuck


On Oct 8, 2005, at 9:59 AM, Amedeo Mantica wrote:


I have a small problem...

My web App is localized in three languages: Italian, German, and English...
I choosed the apple standard way to localize the app, so i have localized my components, i hace created a component containing these three actions:


    public WOComponent setLangITA()
    {
        Object[] tempArray = new Object[]{"Italian"};
        NSArray languages = new NSArray(tempArray);
        session().setLanguages(languages);
        WOComponent nextPage = context().page();
        return nextPage;
    }

    public WOComponent setLangENG()
    {
        Object[] tempArray = new Object[]{"English"};
        NSArray languages = new NSArray(tempArray);
        session().setLanguages(languages);
        WOComponent nextPage = context().page();
        return nextPage;
    }

    public WOComponent setLangGER()
    {
        Object[] tempArray = new Object[]{"German"};
        NSArray languages = new NSArray(tempArray);
        session().setLanguages(languages);
        WOComponent nextPage = context().page();
        return nextPage;
    }

these methods change the language in the session but there is a trouble... When I click an HyperLink bount to one of these actions the page reloads unchanged, to get the localized page i must navigate to another page. There is a way to force the component reloading?

Thanks
Amedeo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects






_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: A problem with localization
      • From: Chuck Hill <email@hidden>
References: 
 >A problem with localization (From: Amedeo Mantica <email@hidden>)
 >Re: A problem with localization (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: A problem with localization
  • Next by Date: Re: A problem with localization
  • Previous by thread: Re: A problem with localization
  • Next by thread: Re: A problem with localization
  • Index(es):
    • Date
    • Thread