Support » Plugin: Bogo » Language selection saved as preference

  • Hello Takayuki,
    I wanted to ask you if you think there was a way I could get Bogo to save the language preference a user chooses. Do you know if this can be easily implemented? Is it something you’d be interested in adding to Bogo?
    I know it’s available in Polylang and WPML, both of which I also use in different settings/situations but I’m very interested in seeing this in Bogo. If you could point me in the right direction, I could take a crack at trying to implement it myself as I’m sure you’re quite busy yourself.

    Thanks buddy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Of course Bogo remembers each user’s language preference. It’s stored in the usermeta database table.

    Hey there and thanks for responding. I think I didn’t explain myself properly. I said user but I should have said visitor. I don’t plan on having registration open for my site so the usermeta db table wouldn’t be accessed for site visitors. I would just like to save the language choice so that when the visitor returns, the site would load previous selection. I wonder if this is only done by cookies.

    Thanks

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Bogo sets lang cookie that contains the locale code of the front page the visitor last accessed.

    Ok that’s pretty awesome! So in theory I can have a one-time popup as a language selector with a checkbox to remember preference? would that be difficult to implement? not that familiar with cookie control through a form or if doable either.

    edit: btw thanks a lot, I really appreciate the support!

    • This reply was modified 2 months, 1 week ago by orangeworx.
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    In theory, yes. Setting the cookie is done in bogo_init() in bogo/bogo.php, looking into the function will be a help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.