parameters: (self)
return_statement: return langs
docstring: 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.
docstring_summary: 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:
docstring_tokens: 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 :
function: 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
function_tokens: 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