(app, sheet_name, rows, names_map, lang=None)
return [(
        messages.error,
        _('Did not recognize "%s", skipping row.') % sheet_name
    )]
Processes the rows of a worksheet of translations.

    This is the complement of get_bulk_app_sheets_by_name() and
    get_bulk_app_single_sheet_by_name(), from
    corehq/apps/translations/app_translations/download.py, which creates
    these worksheets and rows.

    :param app: The application being translated
    :param sheet_name: The tab name of the sheet being processed.
                       e.g. "menu1", "menu1_form1", or "Menus_and_forms"
    :param rows: The rows in the worksheet
    :param names_map: A map of sheet_name to module/form unique_id, used
                      to fetch a module/form even if it has been moved
                      since the worksheet was created
    :param lang: The language that the app is being translated into
    :return: A list of error messages or an empty list
Processes the rows of a worksheet of translations.
Processes the rows of a worksheet of translations .
def _process_rows(app, sheet_name, rows, names_map, lang=None):
    """
    Processes the rows of a worksheet of translations.

    This is the complement of get_bulk_app_sheets_by_name() and
    get_bulk_app_single_sheet_by_name(), from
    corehq/apps/translations/app_translations/download.py, which creates
    these worksheets and rows.

    :param app: The application being translated
    :param sheet_name: The tab name of the sheet being processed.
                       e.g. "menu1", "menu1_form1", or "Menus_and_forms"
    :param rows: The rows in the worksheet
    :param names_map: A map of sheet_name to module/form unique_id, used
                      to fetch a module/form even if it has been moved
                      since the worksheet was created
    :param lang: The language that the app is being translated into
    :return: A list of error messages or an empty list
    """
    if not sheet_name or not rows:
        return []

    if is_modules_and_forms_sheet(sheet_name):
        updater = BulkAppTranslationModulesAndFormsUpdater(app, names_map, lang=lang)
        return updater.update(rows)

    if is_module_sheet(sheet_name):
        unique_id = names_map.get(sheet_name)
        try:
            updater = BulkAppTranslationModuleUpdater(app, sheet_name, unique_id, lang=lang)
        except ModuleNotFoundException:
            return [(
                messages.error,
                _('Invalid menu in row "%s", skipping row.') % sheet_name
            )]
        return updater.update(rows)

    if is_form_sheet(sheet_name):
        unique_id = names_map.get(sheet_name)
        try:
            updater = BulkAppTranslationFormUpdater(app, sheet_name, unique_id, lang=lang)
        except FormNotFoundException:
            return [(
                messages.error,
                _('Invalid form in row "%s", skipping row.') % sheet_name
            )]
        return updater.update(rows)

    return [(
        messages.error,
        _('Did not recognize "%s", skipping row.') % sheet_name
    )]
def _process_rows ( app , sheet_name , rows , names_map , lang = None ) : if not sheet_name or not rows : return [ ] if is_modules_and_forms_sheet ( sheet_name ) : updater = BulkAppTranslationModulesAndFormsUpdater ( app , names_map , lang = lang ) return updater . update ( rows ) if is_module_sheet ( sheet_name ) : unique_id = names_map . get ( sheet_name ) try : updater = BulkAppTranslationModuleUpdater ( app , sheet_name , unique_id , lang = lang ) except ModuleNotFoundException : return [ ( messages . error , _ ( 'Invalid menu in row "%s", skipping row.' ) % sheet_name ) ] return updater . update ( rows ) if is_form_sheet ( sheet_name ) : unique_id = names_map . get ( sheet_name ) try : updater = BulkAppTranslationFormUpdater ( app , sheet_name , unique_id , lang = lang ) except FormNotFoundException : return [ ( messages . error , _ ( 'Invalid form in row "%s", skipping row.' ) % sheet_name ) ] return updater . update ( rows ) return [ ( messages . error , _ ( 'Did not recognize "%s", skipping row.' ) % sheet_name ) ]