From 33f6426539d73ae7436e0f524d42c531a7d78145 Mon Sep 17 00:00:00 2001 From: llj Date: Wed, 24 Jan 2024 18:22:50 +0800 Subject: [PATCH] [i18n] fixup --- frontend/src/components/search/ai-search.js | 2 +- frontend/src/pages/sys-admin/orgs/org-repos.js | 2 +- frontend/src/pages/sys-admin/orgs/org-users.js | 2 +- frontend/src/utils/text-translation.js | 2 +- seahub/notifications/templates/notifications/notice_email.html | 2 +- seahub/templates/client_login_confirm.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/search/ai-search.js b/frontend/src/components/search/ai-search.js index 4b78af022a5..78e231bcf09 100644 --- a/frontend/src/components/search/ai-search.js +++ b/frontend/src/components/search/ai-search.js @@ -532,7 +532,7 @@ export default class AISearch extends Component { onDeleteIndex = () => { seafileAPI.deleteLibraryIndex(this.props.repoID).then(res => { - toaster.notify(gettext('Successfully turned off')); + toaster.notify(gettext('Successfully turned it off')); this.setState({ indexState: INDEX_STATE.UNCREATED }); }).catch(error => { const errorMsg = Utils.getErrorMsg(error); diff --git a/frontend/src/pages/sys-admin/orgs/org-repos.js b/frontend/src/pages/sys-admin/orgs/org-repos.js index be9d7a83bc9..911c4a7ecd4 100644 --- a/frontend/src/pages/sys-admin/orgs/org-repos.js +++ b/frontend/src/pages/sys-admin/orgs/org-repos.js @@ -31,7 +31,7 @@ class Content extends Component { {gettext('Name')} - {gettext('ID')} + {'ID'} {gettext('Owner')} {/* Operations */} diff --git a/frontend/src/pages/sys-admin/orgs/org-users.js b/frontend/src/pages/sys-admin/orgs/org-users.js index aecf5dc8405..b9ca94a92ad 100644 --- a/frontend/src/pages/sys-admin/orgs/org-users.js +++ b/frontend/src/pages/sys-admin/orgs/org-users.js @@ -56,7 +56,7 @@ class Content extends Component { {gettext('Name')} {gettext('Status')} - {gettext('Membership')} + {gettext('Role')} {gettext('Space Used')} {gettext('Created At')}{' / '}{gettext('Last Login')} {/* Operations */} diff --git a/frontend/src/utils/text-translation.js b/frontend/src/utils/text-translation.js index 5ad34fbdc1e..8e41cc66b73 100644 --- a/frontend/src/utils/text-translation.js +++ b/frontend/src/utils/text-translation.js @@ -26,7 +26,7 @@ const TextTranslation = { 'CONVERT_TO_MARKDOWN' : {key : 'Convert to Markdown', value : gettext('Convert to Markdown')}, 'CONVERT_TO_SDOC' : {key : 'Convert to sdoc', value : gettext('Convert to sdoc')}, 'CONVERT_TO_DOCX' : {key : 'Convert to docx', value : gettext('Convert to docx')}, - 'EXPORT_DOCX' : {key : 'Export docx', value : gettext('Export docx')}, + 'EXPORT_DOCX' : {key : 'Export docx', value : gettext('Export as docx')}, 'MARK_AS_DRAFT' : {key : 'Mark as draft', value : gettext('Mark as draft')}, 'UNMARK_AS_DRAFT' : {key : 'Unmark as draft', value : gettext('Unmark as draft')}, 'HISTORY' : {key : 'History', value : gettext('History')}, diff --git a/seahub/notifications/templates/notifications/notice_email.html b/seahub/notifications/templates/notifications/notice_email.html index 16468b49533..62907be9967 100644 --- a/seahub/notifications/templates/notifications/notice_email.html +++ b/seahub/notifications/templates/notifications/notice_email.html @@ -66,7 +66,7 @@

{% blocktrans with repo_url=notice.repo_url repo_name=notice.repo_name %}A large number of files in your library {{ repo_name }} has been deleted recently.{% endblocktrans %}

{% elif notice.is_saml_sso_error_msg %} -

{% blocktrans %}{{notice.error_msg}}{% endblocktrans %}

+

{{notice.error_msg}}

{% elif notice.is_repo_monitor_msg %}

diff --git a/seahub/templates/client_login_confirm.html b/seahub/templates/client_login_confirm.html index 041dc2eb2a9..38e2cb06463 100644 --- a/seahub/templates/client_login_confirm.html +++ b/seahub/templates/client_login_confirm.html @@ -7,7 +7,7 @@ {% block main_content %}

-

{% trans "Client Login Confirm" %}

+

{% trans "Desktop Client Login Confirm" %}

{% csrf_token %}