mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-28 03:10:45 +00:00
update translation
This commit is contained in:
parent
47fbbc622f
commit
be46d47d48
@ -10,26 +10,8 @@ from fabric.colors import red, green
|
||||
def make(default=True, lang='en'):
|
||||
"""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'
|
||||
os.symlink('../../seahub-extra/seahub_extra/organizations', 'seahub/organizations')
|
||||
|
||||
local('django-admin.py makemessages -s -l %s -e py,html -i "thirdpart*" -i "docs*" -i "seahub/two_factor/gateways" -i "seahub/two_factor/templates/two_factor/core/otp_required.html" -i "seahub/two_factor/templates/two_factor/core/phone_register.html" -i "seahub/two_factor/templates/two_factor/profile/profile.html" -i "seahub/two_factor/models/phone.py" -i "seahub/two_factor/models/base.py" -i "seahub/two_factor/templates/two_factor/core/setup_complete.html"' % lang)
|
||||
|
||||
# remove 'organization' symlink to make codebase clean
|
||||
os.remove('seahub/organizations')
|
||||
|
||||
# some version of makemessages will produce "%%" in the string, replace that
|
||||
# to "%".
|
||||
_inplace_change('locale/%s/LC_MESSAGES/django.po' % lang, '%%s', '%s')
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
40
seahub/django_cas_ng/locale/en/LC_MESSAGES/django.po
Normal file
40
seahub/django_cas_ng/locale/en/LC_MESSAGES/django.po
Normal file
@ -0,0 +1,40 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-09-17 11:21+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
#: seahub/django_cas_ng/__init__.py:25
|
||||
#, python-format
|
||||
msgid "Login succeeded. Welcome, %s."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/django_cas_ng/__init__.py:26
|
||||
#, python-format
|
||||
msgid "You are logged in as %s."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/django_cas_ng/middleware.py:74
|
||||
msgid "You do not have staff privileges."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/django_cas_ng/views.py:123
|
||||
msgid "Login failed."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/django_cas_ng/views.py:172 seahub/django_cas_ng/views.py:182
|
||||
msgid "ok"
|
||||
msgstr ""
|
112
seahub/search/locale/en/LC_MESSAGES/django.po
Normal file
112
seahub/search/locale/en/LC_MESSAGES/django.po
Normal file
@ -0,0 +1,112 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-09-17 11:21+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: seahub/search/templates/search_results.html:25
|
||||
msgid "Search Files"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:26
|
||||
#: seahub/search/templates/search_results.html:47
|
||||
msgid "Submit"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:28
|
||||
msgid "advanced"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:31
|
||||
msgid "Last Update"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:39
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:56
|
||||
msgid "No result found"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:58
|
||||
#, python-format
|
||||
msgid "%(total)s result"
|
||||
msgid_plural "%(total)s results"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:63
|
||||
msgid "Directory icon"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:67
|
||||
msgid "File"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:98
|
||||
msgid "Previous"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:101
|
||||
msgid "Next"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:168
|
||||
msgid "Invalid start date, should be yyyy-mm-dd"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:172
|
||||
msgid "Invalid end date, should be yyyy-mm-dd"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/templates/search_results.html:176
|
||||
msgid "Start date should be earlier than end date."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:33
|
||||
msgid "Invalid argument."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:81 seahub/search/views.py:89
|
||||
msgid "Invalid date."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:97 seahub/search/views.py:105
|
||||
msgid "Invalid file size."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:112
|
||||
msgid "Invalid file size range."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:117
|
||||
msgid "Invalid date range."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:166
|
||||
#, python-format
|
||||
msgid "Library %s not found."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:174
|
||||
msgid "Permission denied."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/search/views.py:200
|
||||
msgid "Internal Server Error"
|
||||
msgstr ""
|
164
seahub/sysadmin_extra/locale/en/LC_MESSAGES/django.po
Normal file
164
seahub/sysadmin_extra/locale/en/LC_MESSAGES/django.po
Normal file
@ -0,0 +1,164 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-09-17 11:21+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
#: seahub/sysadmin_extra/views.py:42 seahub/sysadmin_extra/views.py:53
|
||||
#: seahub/sysadmin_extra/views.py:91 seahub/sysadmin_extra/views.py:148
|
||||
#: seahub/sysadmin_extra/views.py:203
|
||||
msgid "Failed to export excel, invalid start or end date"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:57
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:57 seahub/sysadmin_extra/views.py:96
|
||||
msgid "IP"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:57
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:57
|
||||
msgid "Time"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:61
|
||||
msgid "Success"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:61
|
||||
msgid "Failed"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:65
|
||||
msgid "login-logs"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:67 seahub/sysadmin_extra/views.py:124
|
||||
#: seahub/sysadmin_extra/views.py:179 seahub/sysadmin_extra/views.py:256
|
||||
msgid "Failed to export excel"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:85 seahub/sysadmin_extra/views.py:142
|
||||
#: seahub/sysadmin_extra/views.py:197
|
||||
msgid "Failed to export excel, this feature is only in professional version."
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:96 seahub/sysadmin_extra/views.py:153
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:96
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:96
|
||||
msgid "Device"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:96 seahub/sysadmin_extra/views.py:153
|
||||
#: seahub/sysadmin_extra/views.py:209
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:97 seahub/sysadmin_extra/views.py:153
|
||||
msgid "Library Name"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:97 seahub/sysadmin_extra/views.py:153
|
||||
msgid "Library ID"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:97 seahub/sysadmin_extra/views.py:154
|
||||
msgid "Library Owner"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:97
|
||||
msgid "File Path"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:111 seahub/sysadmin_extra/views.py:167
|
||||
#: seahub/sysadmin_extra/views.py:215 seahub/sysadmin_extra/views.py:221
|
||||
msgid "Deleted"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:114 seahub/sysadmin_extra/views.py:170
|
||||
msgid "Anonymous User"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:122
|
||||
msgid "file-access-logs"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:154 seahub/sysadmin_extra/views.py:208
|
||||
msgid "Action"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:177
|
||||
msgid "file-update-logs"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:208
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:208
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:208
|
||||
msgid "Permission"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:208
|
||||
msgid "Library"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:209
|
||||
msgid "Folder Path"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:223
|
||||
msgid "Organization"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:228
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:230
|
||||
msgid "Modify"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:232
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:237
|
||||
msgid "Read-Write"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:239
|
||||
msgid "Read-Only"
|
||||
msgstr ""
|
||||
|
||||
#: seahub/sysadmin_extra/views.py:250
|
||||
msgid "perm-audit-logs"
|
||||
msgstr ""
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-30 11:01+0800\n"
|
||||
"POT-Creation-Date: 2021-09-17 11:21+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user