original_string: public function getLanguagesSelector()
      {
          $view = new View("@LanguagesManager/getLanguagesSelector");
          $view->languages = API::getInstance()->getAvailableLanguageNames();
          $view->currentLanguageCode = self::getLanguageCodeForCurrentUser();
          $view->currentLanguageName = self::getLanguageNameForCurrentUser();
          return $view->render();
      }
code: public function getLanguagesSelector()
      {
          $view = new View("@LanguagesManager/getLanguagesSelector");
          $view->languages = API::getInstance()->getAvailableLanguageNames();
          $view->currentLanguageCode = self::getLanguageCodeForCurrentUser();
          $view->currentLanguageName = self::getLanguageNameForCurrentUser();
          return $view->render();
      }
code_tokens: public function getLanguagesSelector ( ) { $ view = new View ( "@LanguagesManager/getLanguagesSelector" ) ; $ view -> languages = API :: getInstance ( ) -> getAvailableLanguageNames ( ) ; $ view -> currentLanguageCode = self :: getLanguageCodeForCurrentUser ( ) ; $ view -> currentLanguageName = self :: getLanguageNameForCurrentUser ( ) ; return $ view -> render ( ) ; }
docstring: Renders and returns the language selector HTML.
  
  @return string
docstring_tokens: Renders and returns the language selector HTML .