(self)
return langs
Return a list of dictionaries, each dictionary has the language
        id, its title and a boolean value to indicate wether it's the
        user preferred language, for example:

          [{'id': 'en', 'title': 'English', 'selected': 1}]

        Used in changeLanguageForm.
Return a list of dictionaries, each dictionary has the language
        id, its title and a boolean value to indicate wether it's the
        user preferred language, for example:
Return a list of dictionaries each dictionary has the language id its title and a boolean value to indicate wether it s the user preferred language for example :
def get_languages_map(self):
        """
        Return a list of dictionaries, each dictionary has the language
        id, its title and a boolean value to indicate wether it's the
        user preferred language, for example:

          [{'id': 'en', 'title': 'English', 'selected': 1}]

        Used in changeLanguageForm.
        """
        # For now only LPM instances are considered to be containers of
        # multilingual data.
        try:
            ob = self.getLocalPropertyManager()
        except AttributeError:
            ob = self

        ob_language = ob.get_selected_language()
        ob_languages = ob.get_available_languages()

        langs = []
        for x in ob_languages:
            langs.append({'id': x, 'title': self.get_language_name(x),
                          'selected': x == ob_language})

        return langs
def get_languages_map ( self ) : # For now only LPM instances are considered to be containers of # multilingual data. try : ob = self . getLocalPropertyManager ( ) except AttributeError : ob = self ob_language = ob . get_selected_language ( ) ob_languages = ob . get_available_languages ( ) langs = [ ] for x in ob_languages : langs . append ( { 'id' : x , 'title' : self . get_language_name ( x ) , 'selected' : x == ob_language } ) return langs