1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 01:44:13 +00:00

Update translations

This commit is contained in:
zhengxie
2018-06-14 18:30:17 +08:00
parent c925cb4e0e
commit 194a9555cf
3 changed files with 41 additions and 36 deletions

View File

@@ -2,6 +2,7 @@
""" """
Tools for i18n. Tools for i18n.
""" """
import os
from fabric.api import local, task from fabric.api import local, task
from fabric.colors import red, green from fabric.colors import red, green
@@ -9,7 +10,13 @@ from fabric.colors import red, green
def make(default=True, lang='en'): def make(default=True, lang='en'):
"""Update source language. """Update source language.
""" """
local('django-admin.py makemessages -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"' % lang) # 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"' % lang)
# remove 'organization' symlink to make codebase clean
os.remove('seahub/organizations')
# some version of makemessages will produce "%%" in the string, replace that # some version of makemessages will produce "%%" in the string, replace that
# to "%". # to "%".

View File

@@ -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-09 16:04+0800\n" "POT-Creation-Date: 2018-06-14 18:26+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"
@@ -70,8 +70,8 @@ msgstr ""
#: seahub/api2/endpoints/admin/default_library.py:31 #: seahub/api2/endpoints/admin/default_library.py:31
#: seahub/api2/endpoints/admin/default_library.py:32 #: seahub/api2/endpoints/admin/default_library.py:32
#: seahub/views/__init__.py:634 seahub/views/__init__.py:635 #: seahub/views/__init__.py:635 seahub/views/__init__.py:636
#: seahub/views/__init__.py:640 seahub/views/__init__.py:641 #: seahub/views/__init__.py:641 seahub/views/__init__.py:642
msgid "My Library" msgid "My Library"
msgstr "" msgstr ""
@@ -170,7 +170,7 @@ msgstr ""
#: seahub/api2/endpoints/wiki_pages.py:146 #: seahub/api2/endpoints/wiki_pages.py:146
#: seahub/api2/endpoints/wiki_pages.py:186 #: seahub/api2/endpoints/wiki_pages.py:186
#: seahub/api2/endpoints/wiki_pages.py:196 seahub/group/views.py:366 #: seahub/api2/endpoints/wiki_pages.py:196 seahub/group/views.py:366
#: seahub/views/__init__.py:943 seahub/views/ajax.py:1147 #: seahub/views/__init__.py:944 seahub/views/ajax.py:1147
#: seahub/views/ajax.py:1151 seahub/views/file.py:1149 #: seahub/views/ajax.py:1151 seahub/views/file.py:1149
#: seahub/views/sysadmin.py:1931 seahub/views/wiki.py:134 #: seahub/views/sysadmin.py:1931 seahub/views/wiki.py:134
msgid "Internal Server Error" msgid "Internal Server Error"
@@ -181,7 +181,7 @@ msgstr ""
#: seahub/api2/endpoints/wiki_pages.py:177 seahub/group/views.py:453 #: seahub/api2/endpoints/wiki_pages.py:177 seahub/group/views.py:453
#: seahub/templates/sysadmin/sys_useradmin_admins.html:92 #: seahub/templates/sysadmin/sys_useradmin_admins.html:92
#: seahub/thumbnail/views.py:51 seahub/thumbnail/views.py:163 #: seahub/thumbnail/views.py:51 seahub/thumbnail/views.py:163
#: seahub/views/__init__.py:778 seahub/views/ajax.py:222 #: seahub/views/__init__.py:779 seahub/views/ajax.py:222
#: seahub/views/ajax.py:872 seahub/views/wiki.py:201 #: seahub/views/ajax.py:872 seahub/views/wiki.py:201
msgid "Permission denied." msgid "Permission denied."
msgstr "" msgstr ""
@@ -302,7 +302,7 @@ msgid "An upload link is shared to you on %s"
msgstr "" msgstr ""
#: seahub/api2/endpoints/share_link_zip_task.py:100 #: seahub/api2/endpoints/share_link_zip_task.py:100
#: seahub/views/__init__.py:927 #: seahub/views/__init__.py:928
#, python-format #, python-format
msgid "Unable to download directory \"%s\": size is too large." msgid "Unable to download directory \"%s\": size is too large."
msgstr "" msgstr ""
@@ -1831,7 +1831,7 @@ msgid "Description is required."
msgstr "" msgstr ""
#: seahub/group/views.py:126 seahub/share/views.py:228 #: seahub/group/views.py:126 seahub/share/views.py:228
#: seahub/views/__init__.py:540 seahub/views/ajax.py:163 #: seahub/views/__init__.py:541 seahub/views/ajax.py:163
#: seahub/views/ajax.py:424 seahub/views/ajax.py:431 seahub/views/ajax.py:494 #: seahub/views/ajax.py:424 seahub/views/ajax.py:431 seahub/views/ajax.py:494
#: seahub/views/ajax.py:501 seahub/views/ajax.py:637 seahub/views/ajax.py:1131 #: seahub/views/ajax.py:501 seahub/views/ajax.py:637 seahub/views/ajax.py:1131
#: seahub/views/ajax.py:1173 seahub/views/file.py:832 seahub/views/file.py:970 #: seahub/views/ajax.py:1173 seahub/views/file.py:832 seahub/views/file.py:970
@@ -3353,17 +3353,19 @@ msgid ""
"create libraries." "create libraries."
msgstr "" msgstr ""
#: seahub/templates/choose_register.html:13 #: seahub/templates/choose_register.html:3
#: seahub/templates/choose_register.html:8
#: seahub/templates/registration/login.html:71 #: seahub/templates/registration/login.html:71
#: seahub/templates/registration/registration_form.html:11 #: seahub/templates/registration/registration_form.html:3
#: seahub/templates/registration/registration_form.html:12
msgid "Signup" msgid "Signup"
msgstr "" msgstr ""
#: seahub/templates/choose_register.html:14 #: seahub/templates/choose_register.html:9
msgid "Create a personal account" msgid "Create a personal account"
msgstr "" msgstr ""
#: seahub/templates/choose_register.html:15 #: seahub/templates/choose_register.html:10
msgid "Create an organization account" msgid "Create an organization account"
msgstr "" msgstr ""
@@ -5373,7 +5375,7 @@ msgstr ""
#: seahub/templates/registration/login.html:129 #: seahub/templates/registration/login.html:129
#: seahub/templates/registration/password_change_form.html:66 #: seahub/templates/registration/password_change_form.html:66
#: seahub/templates/registration/registration_form.html:88 #: seahub/templates/registration/registration_form.html:91
#: seahub/templates/sysadmin/sudo_mode.html:35 #: seahub/templates/sysadmin/sudo_mode.html:35
#: seahub/templates/sysadmin/sys_org_info_user.html:133 #: seahub/templates/sysadmin/sys_org_info_user.html:133
#: seahub/templates/sysadmin/sys_useradmin.html:153 #: seahub/templates/sysadmin/sys_useradmin.html:153
@@ -5425,7 +5427,7 @@ msgid "Confirm Password"
msgstr "" msgstr ""
#: seahub/templates/registration/password_change_form.html:37 #: seahub/templates/registration/password_change_form.html:37
#: seahub/templates/registration/registration_form.html:58 #: seahub/templates/registration/registration_form.html:61
#, python-format #, python-format
msgid "" msgid ""
"Passwords must have at least %(min_len)s characters and contain %(level)s of " "Passwords must have at least %(min_len)s characters and contain %(level)s of "
@@ -5437,7 +5439,7 @@ msgid "Current password cannot be blank"
msgstr "" msgstr ""
#: seahub/templates/registration/password_change_form.html:70 #: seahub/templates/registration/password_change_form.html:70
#: seahub/templates/registration/registration_form.html:92 #: seahub/templates/registration/registration_form.html:95
#: seahub/templates/snippets/repo_create_js.html:54 #: seahub/templates/snippets/repo_create_js.html:54
#: seahub/templates/snippets/shared_link_js.html:143 #: seahub/templates/snippets/shared_link_js.html:143
#: seahub/templates/sysadmin/sys_org_admin.html:94 #: seahub/templates/sysadmin/sys_org_admin.html:94
@@ -5447,7 +5449,7 @@ msgid "Please enter the password again"
msgstr "" msgstr ""
#: seahub/templates/registration/password_change_form.html:74 #: seahub/templates/registration/password_change_form.html:74
#: seahub/templates/registration/registration_form.html:96 #: seahub/templates/registration/registration_form.html:99
#: seahub/templates/snippets/repo_create_js.html:58 #: seahub/templates/snippets/repo_create_js.html:58
#: seahub/templates/snippets/shared_link_js.html:147 #: seahub/templates/snippets/shared_link_js.html:147
msgid "Passwords don't match" msgid "Passwords don't match"
@@ -5546,15 +5548,11 @@ msgstr ""
msgid "Signup function is not enabled." msgid "Signup function is not enabled."
msgstr "" msgstr ""
#: seahub/templates/registration/registration_form.html:3
msgid "Register"
msgstr ""
#: seahub/templates/registration/registration_form.html:14 #: seahub/templates/registration/registration_form.html:14
msgid "Welcome back, you are already signed in." msgid "Welcome back, you are already signed in."
msgstr "" msgstr ""
#: seahub/templates/registration/registration_form.html:84 #: seahub/templates/registration/registration_form.html:87
#: seahub/templates/sysadmin/sys_org_info_user.html:129 #: seahub/templates/sysadmin/sys_org_info_user.html:129
#: seahub/templates/sysadmin/sys_useradmin.html:149 #: seahub/templates/sysadmin/sys_useradmin.html:149
msgid "Email cannot be blank" msgid "Email cannot be blank"
@@ -7047,7 +7045,7 @@ msgid "Successfully edited the permission."
msgstr "" msgstr ""
#: seahub/thumbnail/views.py:45 seahub/thumbnail/views.py:169 #: seahub/thumbnail/views.py:45 seahub/thumbnail/views.py:169
#: seahub/views/__init__.py:572 seahub/views/file.py:1166 #: seahub/views/__init__.py:573 seahub/views/file.py:1166
msgid "Invalid arguments." msgid "Invalid arguments."
msgstr "" msgstr ""
@@ -7282,55 +7280,55 @@ msgstr ""
msgid "permission error" msgid "permission error"
msgstr "" msgstr ""
#: seahub/views/__init__.py:399 seahub/views/__init__.py:415 #: seahub/views/__init__.py:400 seahub/views/__init__.py:416
msgid "Unable to view recycle page" msgid "Unable to view recycle page"
msgstr "" msgstr ""
#: seahub/views/__init__.py:451 #: seahub/views/__init__.py:452
msgid "Unable to view library modification" msgid "Unable to view library modification"
msgstr "" msgstr ""
#: seahub/views/__init__.py:531 seahub/views/__init__.py:574 #: seahub/views/__init__.py:532 seahub/views/__init__.py:575
#: seahub/views/__init__.py:773 seahub/views/__init__.py:899 #: seahub/views/__init__.py:774 seahub/views/__init__.py:900
#: seahub/views/ajax.py:1126 seahub/views/file.py:1649 #: seahub/views/ajax.py:1126 seahub/views/file.py:1649
msgid "Library does not exist" msgid "Library does not exist"
msgstr "" msgstr ""
#: seahub/views/__init__.py:565 #: seahub/views/__init__.py:566
msgid "Please specify history ID" msgid "Please specify history ID"
msgstr "" msgstr ""
#: seahub/views/__init__.py:569 #: seahub/views/__init__.py:570
msgid "Successfully restored the library." msgid "Successfully restored the library."
msgstr "" msgstr ""
#: seahub/views/__init__.py:576 #: seahub/views/__init__.py:577
msgid "History you specified does not exist" msgid "History you specified does not exist"
msgstr "" msgstr ""
#: seahub/views/__init__.py:578 #: seahub/views/__init__.py:579
msgid "Unknown error" msgid "Unknown error"
msgstr "" msgstr ""
#: seahub/views/__init__.py:906 seahub/views/repo.py:191 #: seahub/views/__init__.py:907 seahub/views/repo.py:191
#, python-format #, python-format
msgid "\"%s\" does not exist." msgid "\"%s\" does not exist."
msgstr "" msgstr ""
#: seahub/views/__init__.py:924 seahub/views/file.py:1132 #: seahub/views/__init__.py:925 seahub/views/file.py:1132
msgid "Internal Error" msgid "Internal Error"
msgstr "" msgstr ""
#: seahub/views/__init__.py:946 #: seahub/views/__init__.py:947
#, python-format #, python-format
msgid "Unable to download \"%s\"" msgid "Unable to download \"%s\""
msgstr "" msgstr ""
#: seahub/views/__init__.py:1068 #: seahub/views/__init__.py:1069
msgid "Successfully enable \"Personal Wiki\"." msgid "Successfully enable \"Personal Wiki\"."
msgstr "" msgstr ""
#: seahub/views/__init__.py:1073 #: seahub/views/__init__.py:1074
msgid "Successfully disable \"Personal Wiki\"." msgid "Successfully disable \"Personal Wiki\"."
msgstr "" msgstr ""

View File

@@ -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-09 16:04+0800\n" "POT-Creation-Date: 2018-06-14 18:26+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"