mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-14 13:13:22 +00:00
[locale] Update source code
This commit is contained in:
parent
20b00f8300
commit
bd3be00cfe
@ -10,6 +10,18 @@ from fabric.colors import red, green
|
|||||||
def make(default=True, lang='en'):
|
def make(default=True, lang='en'):
|
||||||
"""Update source language.
|
"""Update source language.
|
||||||
"""
|
"""
|
||||||
|
# check branch name
|
||||||
|
with open('.git/HEAD') as f:
|
||||||
|
b1 = f.readline()
|
||||||
|
|
||||||
|
with open('../seahub-extra/.git/HEAD') as f:
|
||||||
|
b2 = f.readline()
|
||||||
|
|
||||||
|
if b1 != b2:
|
||||||
|
print 'Error: inconsistent Git branch names.'
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
# add strings in 'organization'
|
# add strings in 'organization'
|
||||||
os.symlink('../../seahub-extra/seahub_extra/organizations', 'seahub/organizations')
|
os.symlink('../../seahub-extra/seahub_extra/organizations', 'seahub/organizations')
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-06-15 14:46+0800\n"
|
"POT-Creation-Date: 2018-07-20 11:07+0800\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -18,23 +18,23 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: static/scripts/app/models/deleted-repo.js:19
|
#: static/scripts/app/models/deleted-repo.js:19
|
||||||
#: static/scripts/app/models/repo.js:59 static/scripts/common.js:332
|
#: static/scripts/app/models/repo.js:59 static/scripts/common.js:333
|
||||||
msgid "Encrypted library"
|
msgid "Encrypted library"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/models/deleted-repo.js:21
|
#: static/scripts/app/models/deleted-repo.js:21
|
||||||
#: static/scripts/app/models/repo.js:61 static/scripts/common.js:336
|
#: static/scripts/app/models/repo.js:61 static/scripts/common.js:337
|
||||||
#: static/scripts/sysadmin-app/models/trash-repo.js:14
|
#: static/scripts/sysadmin-app/models/trash-repo.js:14
|
||||||
msgid "Read-Write library"
|
msgid "Read-Write library"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/models/dirent.js:113 static/scripts/app/views/dir.js:676
|
#: static/scripts/app/models/dirent.js:113 static/scripts/app/views/dir.js:681
|
||||||
#: static/scripts/app/views/dir.js:746
|
#: static/scripts/app/views/dir.js:751
|
||||||
#: static/scripts/app/views/fileupload.js:392
|
#: static/scripts/app/views/fileupload.js:392
|
||||||
#: static/scripts/app/views/fileupload.js:406
|
#: static/scripts/app/views/fileupload.js:406
|
||||||
#: static/scripts/app/views/fileupload.js:418
|
#: static/scripts/app/views/fileupload.js:418
|
||||||
#: static/scripts/app/views/fileupload.js:430
|
#: static/scripts/app/views/fileupload.js:430
|
||||||
#: static/scripts/app/views/group.js:63 static/scripts/common.js:610
|
#: static/scripts/app/views/group.js:63 static/scripts/common.js:611
|
||||||
msgid "Just now"
|
msgid "Just now"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -44,8 +44,8 @@ msgstr ""
|
|||||||
|
|
||||||
#: static/scripts/app/models/repo.js:37
|
#: static/scripts/app/models/repo.js:37
|
||||||
#: static/scripts/app/views/dialogs/dirent-rename.js:65
|
#: static/scripts/app/views/dialogs/dirent-rename.js:65
|
||||||
#: static/scripts/app/views/dir.js:661 static/scripts/app/views/dir.js:721
|
#: static/scripts/app/views/dir.js:666 static/scripts/app/views/dir.js:726
|
||||||
#: static/scripts/app/views/dirent.js:492
|
#: static/scripts/app/views/dirent.js:501
|
||||||
#: static/scripts/app/views/group-repo.js:133
|
#: static/scripts/app/views/group-repo.js:133
|
||||||
#: static/scripts/app/views/repo.js:181
|
#: static/scripts/app/views/repo.js:181
|
||||||
msgid "Name should not include '/'."
|
msgid "Name should not include '/'."
|
||||||
@ -67,7 +67,7 @@ msgstr ""
|
|||||||
msgid "Passwords don't match"
|
msgid "Passwords don't match"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/models/repo.js:63 static/scripts/common.js:334
|
#: static/scripts/app/models/repo.js:63 static/scripts/common.js:335
|
||||||
msgid "Read-Only library"
|
msgid "Read-Only library"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -84,8 +84,8 @@ msgstr ""
|
|||||||
#: static/scripts/app/views/account.js:58
|
#: static/scripts/app/views/account.js:58
|
||||||
#: static/scripts/app/views/dialogs/repo-folder-perm-admin.js:135
|
#: static/scripts/app/views/dialogs/repo-folder-perm-admin.js:135
|
||||||
#: static/scripts/app/views/dialogs/repo-share-link-admin.js:97
|
#: static/scripts/app/views/dialogs/repo-share-link-admin.js:97
|
||||||
#: static/scripts/app/views/dir.js:471 static/scripts/app/views/dir.js:505
|
#: static/scripts/app/views/dir.js:476 static/scripts/app/views/dir.js:510
|
||||||
#: static/scripts/app/views/dirent.js:295
|
#: static/scripts/app/views/dirent.js:301
|
||||||
#: static/scripts/app/views/file-comments.js:120
|
#: static/scripts/app/views/file-comments.js:120
|
||||||
#: static/scripts/app/views/group-discussions.js:119
|
#: static/scripts/app/views/group-discussions.js:119
|
||||||
#: static/scripts/app/views/group-discussions.js:199
|
#: static/scripts/app/views/group-discussions.js:199
|
||||||
@ -109,7 +109,7 @@ msgstr ""
|
|||||||
#: static/scripts/app/views/share-admin-share-links.js:147
|
#: static/scripts/app/views/share-admin-share-links.js:147
|
||||||
#: static/scripts/app/views/share-admin-upload-links.js:61
|
#: static/scripts/app/views/share-admin-upload-links.js:61
|
||||||
#: static/scripts/app/views/share.js:225 static/scripts/app/views/share.js:531
|
#: static/scripts/app/views/share.js:225 static/scripts/app/views/share.js:531
|
||||||
#: static/scripts/app/views/share.js:680 static/scripts/app/views/share.js:853
|
#: static/scripts/app/views/share.js:680 static/scripts/app/views/share.js:847
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:143
|
#: static/scripts/sysadmin-app/views/address-book-group.js:143
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:215
|
#: static/scripts/sysadmin-app/views/address-book-group.js:215
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:269
|
#: static/scripts/sysadmin-app/views/address-book-group.js:269
|
||||||
@ -165,14 +165,14 @@ msgstr ""
|
|||||||
#: static/scripts/app/views/dialogs/repo-folder-perm-admin.js:303
|
#: static/scripts/app/views/dialogs/repo-folder-perm-admin.js:303
|
||||||
#: static/scripts/app/views/dialogs/repo-history-settings.js:83
|
#: static/scripts/app/views/dialogs/repo-history-settings.js:83
|
||||||
#: static/scripts/app/views/dialogs/repo-history-settings.js:142
|
#: static/scripts/app/views/dialogs/repo-history-settings.js:142
|
||||||
#: static/scripts/app/views/dir.js:1327 static/scripts/app/views/dir.js:1361
|
#: static/scripts/app/views/dir.js:1332 static/scripts/app/views/dir.js:1366
|
||||||
#: static/scripts/app/views/dir.js:1430
|
#: static/scripts/app/views/dir.js:1435
|
||||||
#: static/scripts/app/views/dirent-details.js:160
|
#: static/scripts/app/views/dirent-details.js:160
|
||||||
#: static/scripts/app/views/dirent-grid.js:354
|
#: static/scripts/app/views/dirent-grid.js:354
|
||||||
#: static/scripts/app/views/dirent-grid.js:395
|
#: static/scripts/app/views/dirent-grid.js:395
|
||||||
#: static/scripts/app/views/dirent.js:510
|
#: static/scripts/app/views/dirent.js:519
|
||||||
#: static/scripts/app/views/dirent.js:640
|
#: static/scripts/app/views/dirent.js:649
|
||||||
#: static/scripts/app/views/dirent.js:681
|
#: static/scripts/app/views/dirent.js:690
|
||||||
#: static/scripts/app/views/file-comment.js:52
|
#: static/scripts/app/views/file-comment.js:52
|
||||||
#: static/scripts/app/views/file-comments.js:163
|
#: static/scripts/app/views/file-comments.js:163
|
||||||
#: static/scripts/app/views/folder-perm.js:266
|
#: static/scripts/app/views/folder-perm.js:266
|
||||||
@ -195,9 +195,9 @@ msgstr ""
|
|||||||
#: static/scripts/app/views/repo-folder-perm-item.js:147
|
#: static/scripts/app/views/repo-folder-perm-item.js:147
|
||||||
#: static/scripts/app/views/repo.js:206 static/scripts/app/views/repo.js:281
|
#: static/scripts/app/views/repo.js:206 static/scripts/app/views/repo.js:281
|
||||||
#: static/scripts/app/views/repo.js:398 static/scripts/app/views/repo.js:440
|
#: static/scripts/app/views/repo.js:398 static/scripts/app/views/repo.js:440
|
||||||
#: static/scripts/app/views/share.js:448 static/scripts/app/views/share.js:950
|
#: static/scripts/app/views/share.js:448 static/scripts/app/views/share.js:944
|
||||||
#: static/scripts/app/views/share.js:1043 static/scripts/common.js:431
|
#: static/scripts/app/views/share.js:1037 static/scripts/common.js:432
|
||||||
#: static/scripts/common.js:520
|
#: static/scripts/common.js:521
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group-item.js:104
|
#: static/scripts/sysadmin-app/views/address-book-group-item.js:104
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:314
|
#: static/scripts/sysadmin-app/views/address-book-group.js:314
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:339
|
#: static/scripts/sysadmin-app/views/address-book-group.js:339
|
||||||
@ -276,17 +276,17 @@ msgstr ""
|
|||||||
|
|
||||||
#: static/scripts/app/views/dialogs/dirent-mvcp.js:133
|
#: static/scripts/app/views/dialogs/dirent-mvcp.js:133
|
||||||
#: static/scripts/app/views/dialogs/dirent-mvcp.js:164
|
#: static/scripts/app/views/dialogs/dirent-mvcp.js:164
|
||||||
#: static/scripts/app/views/dir.js:1421
|
#: static/scripts/app/views/dir.js:1426
|
||||||
msgid "Canceled."
|
msgid "Canceled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dialogs/dirent-mvcp.js:196
|
#: static/scripts/app/views/dialogs/dirent-mvcp.js:196
|
||||||
#: static/scripts/app/views/dir.js:1166
|
#: static/scripts/app/views/dir.js:1171
|
||||||
msgid "Invalid destination path"
|
msgid "Invalid destination path"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dialogs/dirent-mvcp.js:215
|
#: static/scripts/app/views/dialogs/dirent-mvcp.js:215
|
||||||
#: static/scripts/app/views/dirent.js:286
|
#: static/scripts/app/views/dirent.js:292
|
||||||
msgid "Successfully moved %(name)s"
|
msgid "Successfully moved %(name)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -303,8 +303,8 @@ msgid "Rename File"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dialogs/dirent-rename.js:59
|
#: static/scripts/app/views/dialogs/dirent-rename.js:59
|
||||||
#: static/scripts/app/views/dir.js:656 static/scripts/app/views/dir.js:716
|
#: static/scripts/app/views/dir.js:661 static/scripts/app/views/dir.js:721
|
||||||
#: static/scripts/app/views/dirent.js:486
|
#: static/scripts/app/views/dirent.js:495
|
||||||
#: static/scripts/app/views/group-repo.js:127
|
#: static/scripts/app/views/group-repo.js:127
|
||||||
#: static/scripts/app/views/groups.js:127
|
#: static/scripts/app/views/groups.js:127
|
||||||
#: static/scripts/app/views/invitations.js:65
|
#: static/scripts/app/views/invitations.js:65
|
||||||
@ -318,6 +318,10 @@ msgstr ""
|
|||||||
msgid "It is required."
|
msgid "It is required."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: static/scripts/app/views/dialogs/dirent-smart-link.js:50
|
||||||
|
msgid "Smart link copied to clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dialogs/repo-change-password.js:26
|
#: static/scripts/app/views/dialogs/repo-change-password.js:26
|
||||||
msgid "Change Password of Library {placeholder}"
|
msgid "Change Password of Library {placeholder}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -386,7 +390,7 @@ msgstr ""
|
|||||||
#: static/scripts/app/views/share-admin-share-links.js:142
|
#: static/scripts/app/views/share-admin-share-links.js:142
|
||||||
#: static/scripts/app/views/share-admin-upload-links.js:56
|
#: static/scripts/app/views/share-admin-upload-links.js:56
|
||||||
#: static/scripts/app/views/share.js:220 static/scripts/app/views/share.js:526
|
#: static/scripts/app/views/share.js:220 static/scripts/app/views/share.js:526
|
||||||
#: static/scripts/app/views/share.js:675 static/scripts/app/views/share.js:848
|
#: static/scripts/app/views/share.js:675 static/scripts/app/views/share.js:842
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:309
|
#: static/scripts/sysadmin-app/views/address-book-group.js:309
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:334
|
#: static/scripts/sysadmin-app/views/address-book-group.js:334
|
||||||
#: static/scripts/sysadmin-app/views/address-book.js:124
|
#: static/scripts/sysadmin-app/views/address-book.js:124
|
||||||
@ -464,132 +468,132 @@ msgstr ""
|
|||||||
msgid "Password is required."
|
msgid "Password is required."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:727
|
#: static/scripts/app/views/dir.js:732
|
||||||
msgid "Only an extension there, please input a name."
|
msgid "Only an extension there, please input a name."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:765
|
#: static/scripts/app/views/dir.js:770
|
||||||
msgid "New File"
|
msgid "New File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:773
|
#: static/scripts/app/views/dir.js:778
|
||||||
msgid "New Markdown File"
|
msgid "New Markdown File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:781
|
#: static/scripts/app/views/dir.js:786
|
||||||
msgid "New Excel File"
|
msgid "New Excel File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:789
|
#: static/scripts/app/views/dir.js:794
|
||||||
msgid "New PowerPoint File"
|
msgid "New PowerPoint File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:797
|
#: static/scripts/app/views/dir.js:802
|
||||||
msgid "New Word File"
|
msgid "New Word File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1029 static/scripts/app/views/dir.js:1171
|
#: static/scripts/app/views/dir.js:1034 static/scripts/app/views/dir.js:1176
|
||||||
msgid "Processing..."
|
msgid "Processing..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1066
|
#: static/scripts/app/views/dir.js:1071
|
||||||
msgid "Successfully deleted %(name)s."
|
msgid "Successfully deleted %(name)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1068
|
#: static/scripts/app/views/dir.js:1073
|
||||||
msgid "Successfully deleted %(name)s and 1 other item."
|
msgid "Successfully deleted %(name)s and 1 other item."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1070
|
#: static/scripts/app/views/dir.js:1075
|
||||||
msgid "Successfully deleted %(name)s and %(amount)s other items."
|
msgid "Successfully deleted %(name)s and %(amount)s other items."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1079
|
#: static/scripts/app/views/dir.js:1084
|
||||||
msgid "Failed to delete %(name)s."
|
msgid "Failed to delete %(name)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1081
|
#: static/scripts/app/views/dir.js:1086
|
||||||
msgid "Failed to delete %(name)s and 1 other item."
|
msgid "Failed to delete %(name)s and 1 other item."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1083
|
#: static/scripts/app/views/dir.js:1088
|
||||||
msgid "Failed to delete %(name)s and %(amount)s other items."
|
msgid "Failed to delete %(name)s and %(amount)s other items."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1096
|
#: static/scripts/app/views/dir.js:1101
|
||||||
msgid "Delete Items"
|
msgid "Delete Items"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1097
|
#: static/scripts/app/views/dir.js:1102
|
||||||
msgid "Are you sure you want to delete these selected items?"
|
msgid "Are you sure you want to delete these selected items?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1111
|
#: static/scripts/app/views/dir.js:1116
|
||||||
msgid "Move selected item(s) to:"
|
msgid "Move selected item(s) to:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1111
|
#: static/scripts/app/views/dir.js:1116
|
||||||
msgid "Copy selected item(s) to:"
|
msgid "Copy selected item(s) to:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1215 static/scripts/app/views/dir.js:1382
|
#: static/scripts/app/views/dir.js:1220 static/scripts/app/views/dir.js:1387
|
||||||
msgid "Successfully moved %(name)s."
|
msgid "Successfully moved %(name)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1217 static/scripts/app/views/dir.js:1384
|
#: static/scripts/app/views/dir.js:1222 static/scripts/app/views/dir.js:1389
|
||||||
msgid "Successfully moved %(name)s and 1 other item."
|
msgid "Successfully moved %(name)s and 1 other item."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1219 static/scripts/app/views/dir.js:1386
|
#: static/scripts/app/views/dir.js:1224 static/scripts/app/views/dir.js:1391
|
||||||
msgid "Successfully moved %(name)s and %(amount)s other items."
|
msgid "Successfully moved %(name)s and %(amount)s other items."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1224 static/scripts/app/views/dir.js:1390
|
#: static/scripts/app/views/dir.js:1229 static/scripts/app/views/dir.js:1395
|
||||||
msgid "Successfully copied %(name)s."
|
msgid "Successfully copied %(name)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1226 static/scripts/app/views/dir.js:1392
|
#: static/scripts/app/views/dir.js:1231 static/scripts/app/views/dir.js:1397
|
||||||
msgid "Successfully copied %(name)s and 1 other item."
|
msgid "Successfully copied %(name)s and 1 other item."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1228 static/scripts/app/views/dir.js:1394
|
#: static/scripts/app/views/dir.js:1233 static/scripts/app/views/dir.js:1399
|
||||||
msgid "Successfully copied %(name)s and %(amount)s other items."
|
msgid "Successfully copied %(name)s and %(amount)s other items."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1239
|
#: static/scripts/app/views/dir.js:1244
|
||||||
msgid "Internal error. Failed to move %(name)s and %(amount)s other item(s)."
|
msgid "Internal error. Failed to move %(name)s and %(amount)s other item(s)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1241
|
#: static/scripts/app/views/dir.js:1246
|
||||||
msgid "Internal error. Failed to move %(name)s."
|
msgid "Internal error. Failed to move %(name)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1245
|
#: static/scripts/app/views/dir.js:1250
|
||||||
msgid "Internal error. Failed to copy %(name)s and %(amount)s other item(s)."
|
msgid "Internal error. Failed to copy %(name)s and %(amount)s other item(s)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1247
|
#: static/scripts/app/views/dir.js:1252
|
||||||
msgid "Internal error. Failed to copy %(name)s."
|
msgid "Internal error. Failed to copy %(name)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1289
|
#: static/scripts/app/views/dir.js:1294
|
||||||
msgid "Moving file %(index)s of %(total)s"
|
msgid "Moving file %(index)s of %(total)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1289
|
#: static/scripts/app/views/dir.js:1294
|
||||||
msgid "Copying file %(index)s of %(total)s"
|
msgid "Copying file %(index)s of %(total)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1315
|
#: static/scripts/app/views/dir.js:1320
|
||||||
msgid "Failed to move %(name)s"
|
msgid "Failed to move %(name)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dir.js:1315
|
#: static/scripts/app/views/dir.js:1320
|
||||||
msgid "Failed to copy %(name)s"
|
msgid "Failed to copy %(name)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dirent-details.js:95 static/scripts/common.js:661
|
#: static/scripts/app/views/dirent-details.js:95 static/scripts/common.js:662
|
||||||
#: static/scripts/common.js:732
|
#: static/scripts/common.js:733
|
||||||
msgid "No matches"
|
msgid "No matches"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -598,12 +602,12 @@ msgid "Tag should not include ','."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dirent-grid.js:59
|
#: static/scripts/app/views/dirent-grid.js:59
|
||||||
#: static/scripts/app/views/dirent.js:77
|
#: static/scripts/app/views/dirent.js:78
|
||||||
msgid "locked by {placeholder}"
|
msgid "locked by {placeholder}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/dirent-grid.js:186
|
#: static/scripts/app/views/dirent-grid.js:186
|
||||||
#: static/scripts/app/views/dirent.js:397
|
#: static/scripts/app/views/dirent.js:403
|
||||||
msgid "Successfully deleted %(name)s"
|
msgid "Successfully deleted %(name)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -650,7 +654,7 @@ msgstr ""
|
|||||||
#: static/scripts/app/views/share-admin-share-links.js:144
|
#: static/scripts/app/views/share-admin-share-links.js:144
|
||||||
#: static/scripts/app/views/share-admin-upload-links.js:58
|
#: static/scripts/app/views/share-admin-upload-links.js:58
|
||||||
#: static/scripts/app/views/share.js:222 static/scripts/app/views/share.js:528
|
#: static/scripts/app/views/share.js:222 static/scripts/app/views/share.js:528
|
||||||
#: static/scripts/app/views/share.js:677 static/scripts/app/views/share.js:850
|
#: static/scripts/app/views/share.js:677 static/scripts/app/views/share.js:844
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group-item.js:128
|
#: static/scripts/sysadmin-app/views/address-book-group-item.js:128
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group-item.js:135
|
#: static/scripts/sysadmin-app/views/address-book-group-item.js:135
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
@ -706,7 +710,7 @@ msgid "Set {placeholder}'s permission"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/app/views/folder-perm.js:134
|
#: static/scripts/app/views/folder-perm.js:134
|
||||||
#: static/scripts/app/views/share.js:833
|
#: static/scripts/app/views/share.js:827
|
||||||
msgid "Select groups"
|
msgid "Select groups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -898,29 +902,29 @@ msgstr ""
|
|||||||
msgid "Successfully unstared {placeholder}"
|
msgid "Successfully unstared {placeholder}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/common.js:652
|
#: static/scripts/common.js:653
|
||||||
#: static/scripts/sysadmin-app/views/address-book-group.js:165
|
#: static/scripts/sysadmin-app/views/address-book-group.js:165
|
||||||
#: static/scripts/sysadmin-app/views/group-members.js:41
|
#: static/scripts/sysadmin-app/views/group-members.js:41
|
||||||
msgid "Search users or enter emails and press Enter"
|
msgid "Search users or enter emails and press Enter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/common.js:660 static/scripts/common.js:731
|
#: static/scripts/common.js:661 static/scripts/common.js:732
|
||||||
msgid "Please enter 1 or more character"
|
msgid "Please enter 1 or more character"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/common.js:662 static/scripts/common.js:733
|
#: static/scripts/common.js:663 static/scripts/common.js:734
|
||||||
msgid "Searching..."
|
msgid "Searching..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/common.js:663 static/scripts/common.js:734
|
#: static/scripts/common.js:664 static/scripts/common.js:735
|
||||||
msgid "Loading failed"
|
msgid "Loading failed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/common.js:723
|
#: static/scripts/common.js:724
|
||||||
msgid "Search groups"
|
msgid "Search groups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: static/scripts/common.js:1058
|
#: static/scripts/common.js:1059
|
||||||
msgid "Packaging..."
|
msgid "Packaging..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class DeviceValidationForm(forms.Form):
|
|||||||
token = forms.IntegerField(label=_("Token"), min_value=1, max_value=int('9' * totp_digits()))
|
token = forms.IntegerField(label=_("Token"), min_value=1, max_value=int('9' * totp_digits()))
|
||||||
|
|
||||||
error_messages = {
|
error_messages = {
|
||||||
'invalid_token': _('Entered token is not valid.'),
|
'invalid_token': 'Entered token is not valid.',
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, device, **args):
|
def __init__(self, device, **args):
|
||||||
@ -63,7 +63,7 @@ class TOTPDeviceForm(forms.Form):
|
|||||||
token = forms.IntegerField(label=_("Token"), min_value=0, max_value=int('9' * totp_digits()))
|
token = forms.IntegerField(label=_("Token"), min_value=0, max_value=int('9' * totp_digits()))
|
||||||
|
|
||||||
error_messages = {
|
error_messages = {
|
||||||
'invalid_token': _('Entered token is not valid.'),
|
'invalid_token': 'Entered token is not valid.',
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, key, user, metadata=None, **kwargs):
|
def __init__(self, key, user, metadata=None, **kwargs):
|
||||||
@ -147,7 +147,7 @@ class BaseOTPAuthenticationForm(Form):
|
|||||||
if token:
|
if token:
|
||||||
user.otp_device = self._verify_token(user, token)
|
user.otp_device = self._verify_token(user, token)
|
||||||
if user.otp_device is None:
|
if user.otp_device is None:
|
||||||
raise forms.ValidationError(_('Please enter your OTP token'))
|
raise forms.ValidationError('Please enter your OTP token')
|
||||||
|
|
||||||
def _verify_token(self, user, token):
|
def _verify_token(self, user, token):
|
||||||
device = self.device_model.objects.device_for_user(user.username)
|
device = self.device_model.objects.device_for_user(user.username)
|
||||||
@ -236,7 +236,7 @@ class OTPAuthenticationFormMixin(object):
|
|||||||
self._update_form(user)
|
self._update_form(user)
|
||||||
|
|
||||||
if error is None:
|
if error is None:
|
||||||
error = forms.ValidationError(_('Please enter your OTP token'))
|
error = forms.ValidationError('Please enter your OTP token')
|
||||||
|
|
||||||
raise error
|
raise error
|
||||||
|
|
||||||
@ -261,12 +261,12 @@ class OTPAuthenticationFormMixin(object):
|
|||||||
try:
|
try:
|
||||||
challenge = device.generate_challenge() if (device is not None) else None
|
challenge = device.generate_challenge() if (device is not None) else None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error = forms.ValidationError(_('Error generating challenge: {0}'.format(e)))
|
error = forms.ValidationError('Error generating challenge: {0}'.format(e))
|
||||||
else:
|
else:
|
||||||
if challenge is None:
|
if challenge is None:
|
||||||
error = forms.ValidationError(_('The selected OTP device is not interactive'))
|
error = forms.ValidationError('The selected OTP device is not interactive')
|
||||||
else:
|
else:
|
||||||
error = forms.ValidationError(_('OTP Challenge: {0}').format(challenge))
|
error = forms.ValidationError('OTP Challenge: {0}'.format(challenge))
|
||||||
|
|
||||||
return error
|
return error
|
||||||
|
|
||||||
|
@ -35,11 +35,11 @@
|
|||||||
sent.{% endblocktrans %}</p>
|
sent.{% endblocktrans %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="alert alert-warning" role="alert">{% blocktrans %}We've
|
<p class="alert alert-warning" role="alert">We've
|
||||||
encountered an issue with the selected authentication method. Please
|
encountered an issue with the selected authentication method. Please
|
||||||
go back and verify that you entered your information correctly, try
|
go back and verify that you entered your information correctly, try
|
||||||
again, or use a different authentication method instead. If the issue
|
again, or use a different authentication method instead. If the issue
|
||||||
persists, contact the site administrator.{% endblocktrans %}</p>
|
persists, contact the site administrator.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif wizard.steps.current == 'yubikey' %}
|
{% elif wizard.steps.current == 'yubikey' %}
|
||||||
<p>{% blocktrans %}To identify and verify your YubiKey, please insert a
|
<p>{% blocktrans %}To identify and verify your YubiKey, please insert a
|
||||||
|
Loading…
Reference in New Issue
Block a user