(self, ws, po_entries)
:param ws: workbook sheet object
        :param po_entries: list of POEntry Objects to read translations from
:param ws: workbook sheet object
        :param po_entries: list of POEntry Objects to read translations from
: param ws : workbook sheet object : param po_entries : list of POEntry Objects to read translations from
def _add_sheet(self, ws, po_entries):
        """
        :param ws: workbook sheet object
        :param po_entries: list of POEntry Objects to read translations from
        """
        sheet_name = ws.title
        if sheet_name == MODULES_AND_FORMS_SHEET_NAME:
            self._add_module_and_form_sheet(ws, po_entries)
        elif 'menu' in sheet_name and 'form' not in sheet_name:
            self._add_module_sheet(ws, po_entries)
        elif 'menu' in sheet_name and 'form' in sheet_name:
            self._add_form_sheet(ws, po_entries)
        else:
            raise Exception("Got unexpected sheet name %s" % sheet_name)
def _add_sheet ( self , ws , po_entries ) : sheet_name = ws . title if sheet_name == MODULES_AND_FORMS_SHEET_NAME : self . _add_module_and_form_sheet ( ws , po_entries ) elif 'menu' in sheet_name and 'form' not in sheet_name : self . _add_module_sheet ( ws , po_entries ) elif 'menu' in sheet_name and 'form' in sheet_name : self . _add_form_sheet ( ws , po_entries ) else : raise Exception ( "Got unexpected sheet name %s" % sheet_name )