def get_server_messages(app):
 messages = []
 for (basepath, folders, files) in os.walk(frappe.get_pymodule_path(app)):
  for dontwalk in (u'.git', u'public', u'locale'):
   if (dontwalk in folders):
    folders.remove(dontwalk)
  for f in files:
   if (f.endswith(u'.py') or f.endswith(u'.html') or f.endswith(u'.js')):
    messages.extend(get_messages_from_file(os.path.join(basepath, f)))
 return messages

def get_server_messages ( app ) : messages = [ ] for ( basepath , folders , files ) in os . walk ( frappe . get_pymodule_path ( app ) ) : for dontwalk in ( u'.git' , u'public' , u'locale' ) : if ( dontwalk in folders ) : folders . remove ( dontwalk ) for f in files : if ( f . endswith ( u'.py' ) or f . endswith ( u'.html' ) or f . endswith ( u'.js' ) ) : messages . extend ( get_messages_from_file ( os . path . join ( basepath , f ) ) ) return messages
extracts all translatable strings from python modules inside an app .