def string_to_translatedfield_value(text):
 guess = guess_language(text)
 if guess:
  lang = find_language(guess).lower()
  if lang:
   return {lang: text}
 return {settings.SHORTER_LANGUAGES['en'].lower(): text}

def string_to_translatedfield_value ( text ) : guess = guess_language ( text ) if guess : lang = find_language ( guess ) . lower ( ) if lang : return { lang : text } return { settings . SHORTER_LANGUAGES [ 'en' ] . lower ( ) : text }
passed a string .