1 Reply Latest reply on Sep 23, 2008 3:26 PM by wilczarz.wilczarz.gmail.com

    RESTful Localization

    stephanos

      Hi,


      my web site should support multiple languages. But I need URLs which define the desired language, like this:



      www.test.com/de/home  -> German Locale
      www.test.com/en/home  -> English Locale




      What would be the best approach?


      Cheers,
      Stephan

        • 1. Re: RESTful Localization
          wilczarz.wilczarz.gmail.com

          How about you write your own servlet filter (declare it in web.xml), where you check whether the url starts with www.test.com/de or www.test.com/en and set JSF default locale accordingly? Seam will automaticly look up for appropriate messages_XX.properties bundle.