private static function set_current_lang_from_post_id($postId)
    {
        if (WpCxense::instance()->settings->languagesIsEnabled()) {
            WpCxense::instance()->settings->setCurrentLocale(LanguageProvider::getPostLanguage($postId));
        }
    }
private static function set_current_lang_from_post_id($postId)
    {
        if (WpCxense::instance()->settings->languagesIsEnabled()) {
            WpCxense::instance()->settings->setCurrentLocale(LanguageProvider::getPostLanguage($postId));
        }
    }
private static function set_current_lang_from_post_id ( $ postId ) { if ( WpCxense :: instance ( ) -> settings -> languagesIsEnabled ( ) ) { WpCxense :: instance ( ) -> settings -> setCurrentLocale ( LanguageProvider :: getPostLanguage ( $ postId ) ) ; } }
Sets the locale on the settings page based upon to the locale of the post

@param $postId
Sets the locale on the settings page based upon to the locale of the post