Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Bilingual Site Module

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 4445 Views
  • Nivanka
    Avatar
    Community Member
    395 Posts

    Bilingual Site Module Link to this post

    Hi,

    With reference to the Menu customization thread I posted, I said that I will put the codes somewhere on the forum, here you can find them ;)

    A little Documentation for that

    HOW IT WORKS:
    - This module stores a page in two languages and manage a session to switch the site between those two, The menus, Content, Titles, change according to the selected language

    INSTALLATION:
    - Extract this folder to the root of your website and run a /db/build?flush=1
    - Open the backend you will find a new page type called bilingual page.
    - Currently I have added the flags of the UK and Spain you can replace them with any other.

    HOW TO USE:
    - There is nothing to worry about, all are clear fill in the inputs with the relevant language and then view your site. You will see the language selector on the top right hand corner. Select them and see

    Would like to hear your comments about this..

  • Stan
    Avatar
    Community Member
    1 Post

    Re: Bilingual Site Module Link to this post

    Hi
    That's very handy! Just what I was looking for, really.

    However, the Breadcrumbs I have in my template don't get translated from one language to the other. Please, help.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Bilingual Site Module Link to this post

    I will be do that fix to the next version of this, it is not done yet.

  • itlinux
    Avatar
    Community Member
    40 Posts

    Re: Bilingual Site Module Link to this post

    well I installed this but I do not see it in the pull down menu. Any suggestions? Thanks. What files should I modify to make it in italian.

    Remo

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Bilingual Site Module Link to this post

    Try to refresh the admin panel and see.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Bilingual Site Module Link to this post

    I finished my website project in which I used this code. I thought of posting the URL here as you can get an idea of the codes, and how it works.

    http://sitestudio.es

  • itlinux
    Avatar
    Community Member
    40 Posts

    Re: Bilingual Site Module Link to this post

    nice my question is how can you link it to a page? example if in main page when I click on the other language it will show the main page info or does it change everything into the other lang? Thanks

    remo

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Bilingual Site Module Link to this post

    on the bilingual page there are two htmleditor fields, two text fields for title and the menu titie.

    Once a user selects a language then the BilingualPage creates a session, after that eash time when it retrieved the bilingual pages check what language is choosed and returns the relevant content in the relevant fields.

    thats how it works.

    4445 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.