Multilanguage url problem

Splash Forums PrettyFaces Users Multilanguage url problem

This topic contains 1 reply, has 2 voices, and was last updated by  Lincoln Baxter III 3 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24456

    Marcin Kapusta
    Participant

    I found this library and I wonder if I can use this for my scenario.

    Am I able to have such links with Pretty Faces

    mysite.com/en/category
    mysite.com/pl/kategoria
    mysite.com/de/kategorie

    All the above url are pointing to the same view (xhtml file). The first part of address define the locale language. What I want to achieve is to have different urls for different languages.

    When I enter to mysite.com/en/category then all links that are generated on this page should have english url’s with one exception for link to switch language. Can somebody tell me that Pretty Faces handle my scenario?

    Thanks.

    #24467

    Hi there. The latest version of prettyfaces does allow for this functionality, but it currently takes some amount of configuration on your part. Please see the following post which describes this pattern: http://ocpsoft.org/support/topic/yet-another-i18n-approach/

    Let us know how it goes! We would also like to add this as a feature directly to rewrite/prettyfaces, so after you set this up, if you have some ideas of what you would like the direct integration to look like, please let us know!

    Thanks,
    ~Lincoln

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.