Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortheresel
    • CommentTimeAug 28th 2008
     
    Is there a way to have a multilingual album using one of the translated package for Plogger. What I need is a way for visitors to choose their language from a drop down menu instead of having Plogger only in one language.
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 28th 2008 edited
     
    theresal,

    You should be able to set this up using session variables. Just have your language pulldown link back to the page and set a session variable from the pulldown form's values:
    if (isset($_REQUEST['plogger_language'])) {
    $_SESSION['plogger_language'] = $_REQUEST['plogger_language'];
    }

    Then in 'plog-globals.php', edit the code to look like so:
    if (defined('PLOGGER_LOCALE') && PLOGGER_LOCALE!=='' && strlen(PLOGGER_LOCALE) >= 2) {
    $locale = PLOGGER_LOCALE;
    } else {
    $locale = "en_US";
    }

    //START NEW CODE
    if (isset($_SESSION['plogger_language'])) {
    $locale = $_SESSION['plogger_language']
    }
    // END NEW CODE


    The above code is just loose code overviewing what you would need to do, so don't expect it to work if you copy + paste from my post. If you run into trouble, let us know and post what code you have tried so far and we can try to help you narrow it down to do what you need.

    p.s. I also just thought about this and captions / descriptions will not be translatable. I'm not really sure how to accomplish multiple descriptions for the same image / album / collection.