diff --git a/frontend/src/components/dialog/sysadmin-dialog/sysadmin-logs-export-excel-dialog.js b/frontend/src/components/dialog/sysadmin-dialog/sysadmin-logs-export-excel-dialog.js index 7c7a6e2896..9187d9fbb5 100644 --- a/frontend/src/components/dialog/sysadmin-dialog/sysadmin-logs-export-excel-dialog.js +++ b/frontend/src/components/dialog/sysadmin-dialog/sysadmin-logs-export-excel-dialog.js @@ -76,7 +76,7 @@ class LogsExportExcelDialog extends React.Component { if (error_msg && error_msg !== 'Internal Server Error') { toaster.danger(error_msg); } else { - toaster.danger(gettext('Internal Server Error.')); + toaster.danger(gettext('Internal Server Error')); } } else { let errMessage = Utils.getErrorMsg(error); diff --git a/frontend/src/components/subscription.js b/frontend/src/components/subscription.js index 98fcba86a6..bda1b995d5 100644 --- a/frontend/src/components/subscription.js +++ b/frontend/src/components/subscription.js @@ -57,7 +57,7 @@ class Plans extends Component { assetQuota = (assetQuotaUnitCount) * currentPlan.asset_quota_unit; totalAmount = assetQuotaUnitCount * currentPlan.price_per_asset_quota_unit; } else { - toaster.danger(gettext('Internal Server Error.')); + toaster.danger(gettext('Internal Server Error')); return; } @@ -264,7 +264,7 @@ class Plans extends Component { } else if (paymentType === 'buy_quota') { return this.renderBuyQuota(); } else { - toaster.danger(gettext('Internal Server Error.')); + toaster.danger(gettext('Internal Server Error')); return; } } diff --git a/frontend/src/pages/institution-admin/user-list/user-item.js b/frontend/src/pages/institution-admin/user-list/user-item.js index 3ce7bca793..8929b07152 100644 --- a/frontend/src/pages/institution-admin/user-list/user-item.js +++ b/frontend/src/pages/institution-admin/user-list/user-item.js @@ -9,13 +9,13 @@ import moment from 'moment'; const OPERATIONS = [ { value: 'active', - text: gettext('active'), + text: gettext('Active'), is_active: true, isSelected: false, }, { value: 'inactive', - text: gettext('inactive'), + text: gettext('Inactive'), is_active: false, isSelected: false, }, diff --git a/seahub/api2/endpoints/repo_auto_delete.py b/seahub/api2/endpoints/repo_auto_delete.py index 2eb1d34893..a30715ba85 100644 --- a/seahub/api2/endpoints/repo_auto_delete.py +++ b/seahub/api2/endpoints/repo_auto_delete.py @@ -83,6 +83,6 @@ class RepoAutoDeleteView(APIView): repo_auto_delete, _ = RepoAutoDelete.objects.update_or_create(repo_id=repo_id, defaults={'days':auto_delete_days}) except Exception as e: logger.error(e) - return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error.') + return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error') return Response({'auto_delete_days':repo_auto_delete.days}) \ No newline at end of file diff --git a/seahub/organizations/api/admin/saml_config.py b/seahub/organizations/api/admin/saml_config.py index 00fe2afd8b..c285a1ba7c 100644 --- a/seahub/organizations/api/admin/saml_config.py +++ b/seahub/organizations/api/admin/saml_config.py @@ -31,7 +31,7 @@ def query_dns_txt_record(domain): return True, api_error(status.HTTP_404_NOT_FOUND, '%s does not exist' % domain) except Exception as e: logger.exception(e) - return True, api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error.') + return True, api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error') class OrgSAMLConfigView(APIView):