1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

[i18n] fixed some text (#6023)

This commit is contained in:
llj
2024-04-15 19:31:56 +08:00
committed by GitHub
parent fe46947d73
commit 494a933fd6
3 changed files with 3 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ class LinkCreation extends React.Component {
let resp_data = error.response.data;
let errMessage = resp_data && resp_data['error_msg'];
if (errMessage === 'Folder permission denied.') {
this.setState({errorInfo: gettext('Share links cannot be generated because there are invisible or online r/rw folder permissions in the library.')});
this.setState({errorInfo: gettext('Share links cannot be generated because "Invisible", "Online Read-Write" or "Online Read-Only" is set for you on some folder(s) in the library.')});
} else {
let errMessage = Utils.getErrorMsg(error);
toaster.danger(errMessage);

View File

@@ -96,7 +96,7 @@ class AuthenticationForm(forms.Form):
)
if adfs_user.exists():
self.errors['disable_pwd_login'] = _('You cannot login with email and password.')
raise forms.ValidationError(_('You cannot login with email and password. '))
raise forms.ValidationError(_('You cannot login with email and password.'))
# TODO: determine whether this should move to its own method.
if self.request:

View File

@@ -59,7 +59,7 @@ html, body, #wrapper { height:100%; }
{% elif form.errors.not_found %}
<p class="error mt-2">{{ form.errors.not_found }}</p>
{% elif form.errors.disable_pwd_login %}
<p class="error mt-2">{% trans "You cannot login with email and password. " %}</p>
<p class="error mt-2">{% trans "You cannot login with email and password." %}</p>
{% else %}
<p class="error mt-2">{% trans "Incorrect email or password" %}</p>
{% endif %}