def outdated_langpacks():
 langpacks = get_installed_language_packs(force=True)
 for langpack in langpacks.itervalues():
  langpackversion = LooseVersion((langpack.get('software_version') or SHORTVERSION))
  current_software_version = LooseVersion(SHORTVERSION)
  if (current_software_version > langpackversion):
   (yield langpack)

def outdated_langpacks ( ) : langpacks = get_installed_language_packs ( force = True ) for langpack in langpacks . itervalues ( ) : langpackversion = LooseVersion ( ( langpack . get ( 'software_version' ) or SHORTVERSION ) ) current_software_version = LooseVersion ( SHORTVERSION ) if ( current_software_version > langpackversion ) : ( yield langpack )
function that returns a list of languages that needs to be upgraded to the latest version .