Browse Source

Merge pull request 'dev-improve' (#79) from dev-improve into develop

Reviewed-by: palytoxin <sxty32@126.com>
master
palytoxin 4 years ago
parent
commit
7779b3ea29
6 changed files with 92 additions and 102 deletions
  1. +33
    -44
      options/locale/locale_en-US.ini
  2. +32
    -42
      options/locale/locale_zh-CN.ini
  3. BIN
      public/img/404.png
  4. BIN
      public/img/500.png
  5. +13
    -7
      templates/status/404.tmpl
  6. +14
    -9
      templates/status/500.tmpl

+ 33
- 44
options/locale/locale_en-US.ini View File

@@ -89,24 +89,13 @@ error404 = The page you are trying to reach either <strong>does not exist</stron

[error]
occurred = An error has occurred
report_message = If you are sure this is a Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.

[startpage]
app_desc = A painless, self-hosted Git service
install = Easy to install
install_desc = Simply <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/install-from-binary/">run the binary</a> for your platform, ship it with <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, or get it <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/install-from-package/">packaged</a>.
platform = Cross-platform
platform_desc = Gitea runs anywhere <a target="_blank" rel="noopener noreferrer" href="http://golang.org/">Go</a> can compile for: Windows, macOS, Linux, ARM, etc. Choose the one you love!
lightweight = Lightweight
lightweight_desc = Gitea has low minimal requirements and can run on an inexpensive Raspberry Pi. Save your machine energy!
license = Open Source
license_desc = Go get <a target="_blank" rel="noopener noreferrer" href="https://code.gitea.io/gitea">code.gitea.io/gitea</a>! Join us by <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea">contributing</a> to make this project even better. Don't be shy to be a contributor!
report_message = An error has occurred

[install]
install = Installation
title = Initial Configuration
docker_helper = If you run Gitea inside Docker, please read the <a target="_blank" rel="noopener noreferrer" href="%s">documentation</a> before changing any settings.
requite_db_desc = Gitea requires MySQL, PostgreSQL, MSSQL or SQLite3.
docker_helper = If you run openi inside Docker, please read the <a target="_blank" rel="noopener noreferrer" href="%s">documentation</a> before changing any settings.
requite_db_desc = openi requires MySQL, PostgreSQL, MSSQL or SQLite3.
db_title = Database Settings
db_type = Database Type
host = Host
@@ -119,7 +108,7 @@ db_schema_helper = Leave blank for database default ("public").
ssl_mode = SSL
charset = Charset
path = Path
sqlite_helper = File path for the SQLite3 database.<br>Enter an absolute path if you run Gitea as a service.
sqlite_helper = File path for the SQLite3 database.<br>Enter an absolute path if you run openi as a service.
err_empty_db_path = The SQLite3 database path cannot be empty.
no_admin_and_disable_registration = You cannot disable user self-registration without creating an administrator account.
err_empty_admin_password = The administrator password cannot be empty.
@@ -136,14 +125,14 @@ repo_path_helper = Remote Git repositories will be saved to this directory.
lfs_path = Git LFS Root Path
lfs_path_helper = Files tracked by Git LFS will be stored in this directory. Leave empty to disable.
run_user = Run As Username
run_user_helper = Enter the operating system username that Gitea runs as. Note that this user must have access to the repository root path.
run_user_helper = Enter the operating system username that openi runs as. Note that this user must have access to the repository root path.
domain = SSH Server Domain
domain_helper = Domain or host address for SSH clone URLs.
ssh_port = SSH Server Port
ssh_port_helper = Port number your SSH server listens on. Leave empty to disable.
http_port = Gitea HTTP Listen Port
http_port_helper = Port number the Giteas web server will listen on.
app_url = Gitea Base URL
http_port = openi HTTP Listen Port
http_port_helper = Port number the openis web server will listen on.
app_url = openi Base URL
app_url_helper = Base address for HTTP(S) clone URLs and email notifications.
log_root_path = Log Path
log_root_path_helper = Log files will be written to this directory.
@@ -152,7 +141,7 @@ optional_title = Optional Settings
email_title = Email Settings
smtp_host = SMTP Host
smtp_from = Send Email As
smtp_from_helper = Email address Gitea will use. Enter a plain email address or use the "Name" <email@example.com> format.
smtp_from_helper = Email address openi will use. Enter a plain email address or use the "Name" <email@example.com> format.
mailer_user = SMTP Username
mailer_password = SMTP Password
register_confirm = Require Email Confirmation to Register
@@ -181,15 +170,15 @@ admin_name = Administrator Username
admin_password = Password
confirm_password = Confirm Password
admin_email = Email Address
install_btn_confirm = Install Gitea
install_btn_confirm = Install openi
test_git_failed = Could not test 'git' command: %v
sqlite3_not_available = This Gitea version does not support SQLite3. Please download the official binary version from %s (not the 'gobuild' version).
sqlite3_not_available = This openi version does not support SQLite3. Please download the official binary version from %s (not the 'gobuild' version).
invalid_db_setting = The database settings are invalid: %v
invalid_repo_path = The repository root path is invalid: %v
run_user_not_match = The 'run as' username is not the current username: %s -> %s
save_config_failed = Failed to save configuration: %v
invalid_admin_setting = Administrator account setting is invalid: %v
install_success = Welcome! Thank you for choosing Gitea. Have fun and take care!
install_success = Welcome! Thank you for choosing openi. Have fun and take care!
invalid_log_root_path = The log path is invalid: %v
default_keep_email_private = Hide Email Addresses by Default
default_keep_email_private_popup = Hide email addresses of new user accounts by default.
@@ -268,7 +257,7 @@ invalid_code = Your confirmation code is invalid or has expired.
reset_password_helper = Recover Account
reset_password_wrong_user = You are signed in as %s, but the account recovery link is for %s
password_too_short = Password length cannot be less than %d characters.
non_local_account = Non-local users can not update their password through the Gitea web interface.
non_local_account = Non-local users can not update their password through the openi web interface.
verify = Verify
scratch_code = Scratch code
use_scratch_code = Use a scratch code
@@ -306,7 +295,7 @@ activate_account = Please activate your account
activate_email = Verify your email address
reset_password = Recover your account
register_success = Registration successful
register_notify = Welcome to Gitea
register_notify = Welcome to openi

[modal]
yes = Yes
@@ -454,7 +443,7 @@ new_password = New Password
retype_new_password = Re-Type New Password
password_incorrect = The current password is incorrect.
change_password_success = Your password has been updated. Sign in using your new password from now on.
password_change_disabled = Non-local users can not update their password through the Gitea web interface.
password_change_disabled = Non-local users can not update their password through the openi web interface.

emails = Email Addresses
manage_emails = Manage Email Addresses
@@ -529,13 +518,13 @@ hide_openid = Hide from profile
ssh_disabled = SSH Disabled

manage_social = Manage Associated Social Accounts
social_desc = These social accounts are linked to your Gitea account. Make sure you recognize all of them as they can be used to sign in to your Gitea account.
social_desc = These social accounts are linked to your openi account. Make sure you recognize all of them as they can be used to sign in to your openi account.
unbind = Unlink
unbind_success = The social account has been unlinked from your Gitea account.
unbind_success = The social account has been unlinked from your openi account.

manage_access_token = Manage Access Tokens
generate_new_token = Generate New Token
tokens_desc = These tokens grant access to your account using the Gitea API.
tokens_desc = These tokens grant access to your account using the openi API.
new_token_desc = Applications using a token have full access to your account.
token_name = Token Name
generate_token = Generate Token
@@ -548,7 +537,7 @@ delete_token_success = The token has been deleted. Applications using it no long

manage_oauth2_applications = Manage OAuth2 Applications
edit_oauth2_application = Edit OAuth2 Application
oauth2_applications_desc = OAuth2 applications enables your third-party application to securely authenticate users at this Gitea instance.
oauth2_applications_desc = OAuth2 applications enables your third-party application to securely authenticate users at this openi instance.
remove_oauth2_application = Remove OAuth2 Application
remove_oauth2_application_desc = Removing an OAuth2 application will revoke access to all signed access tokens. Continue?
remove_oauth2_application_success = The application has been deleted.
@@ -572,7 +561,7 @@ oauth2_application_create_description = OAuth2 applications gives your third-par
oauth2_application_remove_description = Removing an OAuth2 application will prevent it to access authorized user accounts on this instance. Continue?

authorized_oauth2_applications = Authorized OAuth2 Applications
authorized_oauth2_applications_description = You've granted access to your personal Gitea account to these third party applications. Please revoke access for applications no longer needed.
authorized_oauth2_applications_description = You've granted access to your personal openi account to these third party applications. Please revoke access for applications no longer needed.
revoke_key = Revoke
revoke_oauth2_grant = Revoke Access
revoke_oauth2_grant_description = Revoking access for this third party application will prevent this application from accessing your data. Are you sure?
@@ -604,10 +593,10 @@ u2f_delete_key = Remove Security Key
u2f_delete_key_desc = If you remove a security key you can no longer sign in with it. Continue?

manage_account_links = Manage Linked Accounts
manage_account_links_desc = These external accounts are linked to your Gitea account.
account_links_not_available = There are currently no external accounts linked to your Gitea account.
manage_account_links_desc = These external accounts are linked to your openi account.
account_links_not_available = There are currently no external accounts linked to your openi account.
remove_account_link = Remove Linked Account
remove_account_link_desc = Removing a linked account will revoke its access to your Gitea account. Continue?
remove_account_link_desc = Removing a linked account will revoke its access to your openi account. Continue?
remove_account_link_success = The linked account has been removed.

orgs_none = You are not a member of any organizations.
@@ -1501,7 +1490,7 @@ settings.delete_team_tip = This team has access to all repositories and can't be
settings.remove_team_success = The team's access to the repository has been removed.
settings.add_webhook = Add Webhook
settings.add_webhook.invalid_channel_name = Webhook channel name cannot be empty and cannot contain only a # character.
settings.hooks_desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Read more in the <a target="_blank" rel="noopener noreferrer" href="%s">webhooks guide</a>.
settings.hooks_desc = Webhooks automatically make HTTP POST requests to a server when certain openi events trigger. Read more in the <a target="_blank" rel="noopener noreferrer" href="%s">webhooks guide</a>.
settings.webhook_deletion = Remove Webhook
settings.webhook_deletion_desc = Removing a webhook deletes its settings and delivery history. Continue?
settings.webhook_deletion_success = The webhook has been removed.
@@ -1518,7 +1507,7 @@ settings.githook_edit_desc = If the hook is inactive, sample content will be pre
settings.githook_name = Hook Name
settings.githook_content = Hook Content
settings.update_githook = Update Hook
settings.add_webhook_desc = Gitea will send <code>POST</code> requests with a specified content type to the target URL. Read more in the <a target="_blank" rel="noopener noreferrer" href="%s">webhooks guide</a>.
settings.add_webhook_desc = openi will send <code>POST</code> requests with a specified content type to the target URL. Read more in the <a target="_blank" rel="noopener noreferrer" href="%s">webhooks guide</a>.
settings.payload_url = Target URL
settings.http_method = HTTP Method
settings.content_type = POST Content Type
@@ -1931,7 +1920,7 @@ total = Total: %d
dashboard.statistic = Summary
dashboard.operations = Maintenance Operations
dashboard.system_status = System Status
dashboard.statistic_info = The Gitea database holds <b>%d</b> users, <b>%d</b> organizations, <b>%d</b> public keys, <b>%d</b> repositories, <b>%d</b> watches, <b>%d</b> stars, <b>%d</b> actions, <b>%d</b> accesses, <b>%d</b> issues, <b>%d</b> comments, <b>%d</b> social accounts, <b>%d</b> follows, <b>%d</b> mirrors, <b>%d</b> releases, <b>%d</b> authentication sources, <b>%d</b> webhooks, <b>%d</b> milestones, <b>%d</b> labels, <b>%d</b> hook tasks, <b>%d</b> teams, <b>%d</b> update tasks, <b>%d</b> attachments.
dashboard.statistic_info = The openi database holds <b>%d</b> users, <b>%d</b> organizations, <b>%d</b> public keys, <b>%d</b> repositories, <b>%d</b> watches, <b>%d</b> stars, <b>%d</b> actions, <b>%d</b> accesses, <b>%d</b> issues, <b>%d</b> comments, <b>%d</b> social accounts, <b>%d</b> follows, <b>%d</b> mirrors, <b>%d</b> releases, <b>%d</b> authentication sources, <b>%d</b> webhooks, <b>%d</b> milestones, <b>%d</b> labels, <b>%d</b> hook tasks, <b>%d</b> teams, <b>%d</b> update tasks, <b>%d</b> attachments.
dashboard.operation_name = Operation Name
dashboard.operation_switch = Switch
dashboard.operation_run = Run
@@ -1962,7 +1951,7 @@ dashboard.archive_cleanup = Delete old repository archives
dashboard.deleted_branches_cleanup = Clean-up deleted branches
dashboard.update_migration_poster_id = Update migration poster IDs
dashboard.git_gc_repos = Garbage collect all repositories
dashboard.resync_all_sshkeys = Update the '.ssh/authorized_keys' file with Gitea SSH keys.
dashboard.resync_all_sshkeys = Update the '.ssh/authorized_keys' file with openi SSH keys.
dashboard.resync_all_sshkeys.desc = (Not needed for the built-in SSH server.)
dashboard.resync_all_hooks = Resynchronize pre-receive, update and post-receive hooks of all repositories.
dashboard.reinit_missing_repos = Reinitialize all missing Git repositories for which records exist
@@ -2024,7 +2013,7 @@ users.prohibit_login = Disable Sign-In
users.is_admin = Is Administrator
users.is_restricted = Is Restricted
users.allow_git_hook = May Create Git Hooks
users.allow_git_hook_tooltip = Git Hooks are executed as the OS user running Gitea and will have the same level of host access
users.allow_git_hook_tooltip = Git Hooks are executed as the OS user running openi and will have the same level of host access
users.allow_import_local = May Import Local Repositories
users.allow_create_organization = May Create Organizations
users.update_profile = Update User Account
@@ -2067,11 +2056,11 @@ datasets.owner=Owner
datasets.name=name
datasets.private=Private

hooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here are defaults and will be copied into all new repositories. Read more in the <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/webhooks/">webhooks guide</a>.
hooks.desc = Webhooks automatically make HTTP POST requests to a server when certain openi events trigger. Webhooks defined here are defaults and will be copied into all new repositories. Read more in the <a target="_blank" rel="noopener" href="https://docs.openi.io/en-us/webhooks/">webhooks guide</a>.
hooks.add_webhook = Add Default Webhook
hooks.update_webhook = Update Default Webhook

systemhooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined will act on all repositories on the system, so please consider any performance implications this may have. Read more in the <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/webhooks/">webhooks guide</a>.
systemhooks.desc = Webhooks automatically make HTTP POST requests to a server when certain openi events trigger. Webhooks defined will act on all repositories on the system, so please consider any performance implications this may have. Read more in the <a target="_blank" rel="noopener" href="https://docs.openi.io/en-us/webhooks/">webhooks guide</a>.
systemhooks.add_webhook = Add System Webhook
systemhooks.update_webhook = Update System Webhook

@@ -2094,7 +2083,7 @@ auths.bind_password_helper = Warning: This password is stored in plain text. Use
auths.user_base = User Search Base
auths.user_dn = User DN
auths.attribute_username = Username Attribute
auths.attribute_username_placeholder = Leave empty to use the username entered in Gitea.
auths.attribute_username_placeholder = Leave empty to use the username entered in openi.
auths.attribute_name = First Name Attribute
auths.attribute_surname = Surname Attribute
auths.attribute_mail = Email Attribute
@@ -2167,8 +2156,8 @@ auths.login_source_of_type_exist = An authentication source of this type already

config.server_config = Server Configuration
config.app_name = Site Title
config.app_ver = Gitea Version
config.app_url = Gitea Base URL
config.app_ver = openi Version
config.app_url = openi Base URL
config.custom_conf = Configuration File Path
config.custom_file_root_path = "Custom File Root Path"
config.domain = SSH Server Domain


+ 32
- 42
options/locale/locale_zh-CN.ini View File

@@ -89,24 +89,14 @@ error404=您正尝试访问的页面 <strong>不存在</strong> 或 <strong>您

[error]
occurred=发生错误
report_message=如果您确定这是一个 Gitea bug,请在 <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> 上搜索问题,并在必要时打开新问题。

[startpage]
app_desc=一款极易搭建的自助 Git 服务
install=易安装
install_desc=您除了可以根据操作系统平台通过 <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/zh-cn/install-from-binary/">二进制运行</a>,还可以通过 <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> 或 <a target="_blank" rel="noopener noreferrer" href="https://github.com/alvaroaleman/ansible-gitea/blob/master/Vagrantfile">Vagrant</a>,以及 <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/zh-cn/install-from-package/">包管理</a> 安装。
platform=跨平台
platform_desc=任何 <a target="_blank" rel="noopener noreferrer" href="http://golang.org/">Go 语言</a> 支持的平台都可以运行 Gitea,包括 Windows、Mac、Linux 以及 ARM。挑一个您喜欢的就行!
lightweight=轻量级
lightweight_desc=一个廉价的树莓派的配置足以满足 Gitea 的最低系统硬件要求。最大程度上节省您的服务器资源!
license=开源化
license_desc=所有的代码都开源在 <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea/">GitHub</a> 上,赶快加入我们来共同发展这个伟大的项目!还等什么?成为贡献者吧!
report_message=发生错误


[install]
install=安装页面
title=初始配置
docker_helper=如果您正在使用 Docker 容器运行 Gitea,请务必先仔细阅读 <a target="_blank" rel="noopener noreferrer" href="%s">官方文档</a> 后再对本页面进行填写。
requite_db_desc=Gitea 需要 MySQL、PostgreSQL、MSSQL 或 SQLite3。
docker_helper=如果您正在使用 Docker 容器运行 openi <a target="_blank" rel="noopener noreferrer" href="%s">官方文档</a> 后再对本页面进行填写。
requite_db_desc=openi 需要 MySQL、PostgreSQL、MSSQL 或 SQLite3。
db_title=数据库设置
db_type=数据库类型
host=数据库主机
@@ -119,7 +109,7 @@ db_schema_helper=留空则数据库中默认值为("public")。
ssl_mode=SSL
charset=字符集
path=数据库文件路径
sqlite_helper=SQLite3 数据库的文件路径。<br>如果以服务的方式运行 Gitea,请输入绝对路径。
sqlite_helper=SQLite3 数据库的文件路径。<br>如果以服务的方式运行 openi,请输入绝对路径。
err_empty_db_path=SQLite 数据库文件路径不能为空。
no_admin_and_disable_registration=您不能够在未创建管理员用户的情况下禁止注册。
err_empty_admin_password=管理员密码不能为空。
@@ -136,14 +126,14 @@ repo_path_helper=所有远程 Git 项目将保存到此目录。
lfs_path=LFS根目录
lfs_path_helper=存储为Git LFS的文件将被存储在此目录。留空禁用LFS
run_user=以用户名运行
run_user_helper=输入 Gitea 运行的操作系统用户名。请注意, 此用户必须具有对存储库根路径的访问权限。
run_user_helper=输入 openi 运行的操作系统用户名。请注意, 此用户必须具有对存储库根路径的访问权限。
domain=SSH 服务域名
domain_helper=用于 SSH 克隆的域名或主机地址。
ssh_port=SSH 服务端口
ssh_port_helper=SSH 服务器的端口号,为空则禁用它。
http_port=HTTP 服务端口
http_port_helper=Giteas web 服务器将侦听的端口号。
app_url=Gitea 基本 URL。
http_port_helper=openis web 服务器将侦听的端口号。
app_url=openi 基本 URL。
app_url_helper=用于 HTTP (S) 克隆和电子邮件通知的基本地址。
log_root_path=日志路径
log_root_path_helper=日志文件将写入此目录。
@@ -152,7 +142,7 @@ optional_title=可选设置
email_title=电子邮箱设置
smtp_host=SMTP 主机
smtp_from=电子邮件发件人
smtp_from_helper=电子邮件地址 Gitea 将使用。输入一个普通的电子邮件地址或使用 "名称" <email@example.com> 格式。
smtp_from_helper=电子邮件地址 openi 将使用。输入一个普通的电子邮件地址或使用 "名称" <email@example.com> 格式。
mailer_user=SMTP 用户名
mailer_password=SMTP 密码
register_confirm=需要发电子邮件确认注册
@@ -189,7 +179,7 @@ invalid_repo_path=项目根目录设置无效:%v
run_user_not_match=运行用户名不是当前的用户名:%s -> %s
save_config_failed=应用配置保存失败:%v
invalid_admin_setting=管理员帐户设置无效: %v
install_success=欢迎 !非常感谢您选择 Gitea,玩得开心。
install_success=欢迎 !非常感谢您选择 openi,玩得开心。
invalid_log_root_path=日志路径无效: %v
default_keep_email_private=默认情况下隐藏电子邮件地址
default_keep_email_private_popup=默认情况下, 隐藏新用户帐户的电子邮件地址。
@@ -268,7 +258,7 @@ invalid_code=此确认密钥无效或已过期。
reset_password_helper=恢复账户
reset_password_wrong_user=您已作为 %s 登录,无法使用链接恢复 %s 的账户。
password_too_short=密码长度不能少于 %d 位。
non_local_account=非本地帐户不能通过 Gitea 的 web 界面更改密码。
non_local_account=非本地帐户不能通过 openi 的 web 界面更改密码。
verify=验证
scratch_code=验证口令
use_scratch_code=使用验证口令
@@ -306,7 +296,7 @@ activate_account=请激活您的帐户
activate_email=请验证您的邮箱地址
reset_password=恢复您的账户
register_success=注册成功
register_notify=欢迎来到 Gitea
register_notify=欢迎来到 openi

[modal]
yes=确认操作
@@ -454,7 +444,7 @@ new_password=新的密码
retype_new_password=重新输入新的密码
password_incorrect=当前密码不正确!
change_password_success=您的密码已更新。从现在开始使用您的新密码登录。
password_change_disabled=非本地帐户不能通过 Gitea 的 web 界面更改密码。
password_change_disabled=非本地帐户不能通过 openi 的 web 界面更改密码。

emails=邮箱地址
manage_emails=管理邮箱地址
@@ -511,7 +501,7 @@ add_gpg_key_success=您的 GPG 密钥 '%s' 添加成功。
delete_key=删除
ssh_key_deletion=删除 SSH 密钥
gpg_key_deletion=删除 GPG 密钥
ssh_key_deletion_desc=删除 SSH 公钥将取消对应的私钥对您的 Gitea 帐户的访问权限。继续?
ssh_key_deletion_desc=删除 SSH 公钥将取消对应的私钥对您的 openi 帐户的访问权限。继续?
gpg_key_deletion_desc=删除 GPG 公钥将无法认知使用对应私钥签名的提交,继续?
ssh_key_deletion_success=GPG 密钥已被删除。
gpg_key_deletion_success=GPG 密钥已被删除。
@@ -529,13 +519,13 @@ hide_openid=在个人信息上隐藏
ssh_disabled=SSH 被禁用

manage_social=管理关联社交帐户
social_desc=这些外部账号已经绑定到你的Gitea账号。请确认这些账号,因为这些账号可以用来登录系统。
social_desc=这些外部账号已经绑定到你的openi账号。请确认这些账号,因为这些账号可以用来登录系统。
unbind=取消链接
unbind_success=社会帐户已从您的帐户中解除绑定。

manage_access_token=管理Access Tokens
generate_new_token=生成新的令牌
tokens_desc=这些令牌拥有通过 Gitea API 对您的帐户的访问权限。
tokens_desc=这些令牌拥有通过 openi API 对您的帐户的访问权限。
new_token_desc=使用令牌的应用拥有完全访问你的账号的权限。
token_name=令牌名称
generate_token=生成令牌
@@ -548,7 +538,7 @@ delete_token_success=令牌已经被删除。使用该令牌的应用将不再

manage_oauth2_applications=管理 OAuth2 应用程序
edit_oauth2_application=编辑 OAuth2 应用程序
oauth2_applications_desc=OAuth2 应用允许第三方应用程序在此 Gitea 实例中安全验证用户。
oauth2_applications_desc=OAuth2 应用允许第三方应用程序在此 openi 实例中安全验证用户。
remove_oauth2_application=删除 OAuth2 应用程序
remove_oauth2_application_desc=删除 OAuth2 应用将撤销所有签名的访问令牌。继续吗?
remove_oauth2_application_success=该应用已被删除。
@@ -572,7 +562,7 @@ oauth2_application_create_description=OAuth2 应用允许您的第三方应用
oauth2_application_remove_description=删除 OAuth2 应用会阻止它访问此实例中的授权用户帐户。继续吗?

authorized_oauth2_applications=已授权的 OAuth2 应用
authorized_oauth2_applications_description=您已授予这些第三方应用访问您个人 Gitea 账户的权限。请对不再需要的应用撤销授权。
authorized_oauth2_applications_description=您已授予这些第三方应用访问您个人 openi 账户的权限。请对不再需要的应用撤销授权。
revoke_key=撤销
revoke_oauth2_grant=撤回权限
revoke_oauth2_grant_description=确定撤销此三方应用程序的授权,并阻止此应用程序访问您的数据?
@@ -604,10 +594,10 @@ u2f_delete_key=移除安全密钥
u2f_delete_key_desc=如果删除安全密钥,则不能再使用它登录。继续?

manage_account_links=管理绑定过的账号
manage_account_links_desc=这些外部帐户已经绑定到您的 Gitea 帐户。
account_links_not_available=当前没有与您的 Gitea 帐户绑定的外部帐户。
manage_account_links_desc=这些外部帐户已经绑定到您的 openi 帐户。
account_links_not_available=当前没有与您的 openi 帐户绑定的外部帐户。
remove_account_link=删除已绑定的账号
remove_account_link_desc=删除已绑定帐户将吊销其对您的 Gitea 帐户的访问权限。继续?
remove_account_link_desc=删除已绑定帐户将吊销其对您的 openi 帐户的访问权限。继续?
remove_account_link_success=已取消绑定帐户。

orgs_none=您现在还不是任何组织的成员。
@@ -1503,7 +1493,7 @@ settings.delete_team_tip=该团队仍有项目, 无法删除
settings.remove_team_success=团队访问项目的权限已被删除。
settings.add_webhook=添加 Web 钩子
settings.add_webhook.invalid_channel_name=Webhook 通道名称不能为空且不能仅包含一个 # 字符。
settings.hooks_desc=当Gitea事件发生时,Web钩子自动发出HTTP POST请求。在 <a target="_blank" rel="noopener noreferrer" href="%s"> 指南</a> 中阅读更多内容。
settings.hooks_desc=当openi事件发生时,Web钩子自动发出HTTP POST请求。在 <a target="_blank" rel="noopener noreferrer" href="%s"> 指南</a> 中阅读更多内容。
settings.webhook_deletion=删除 Web 钩子
settings.webhook_deletion_desc=删除 web钩子 将删除其设置和历史记录。继续?
settings.webhook_deletion_success=Web 钩子删除成功!
@@ -1515,12 +1505,12 @@ settings.webhook.response=响应内容
settings.webhook.headers=头信息
settings.webhook.payload=内容
settings.webhook.body=响应体
settings.githooks_desc=Git 钩子是由 Git 本身提供的功能,以下为 Gitea 所支持的钩子列表。
settings.githooks_desc=Git 钩子是由 Git 本身提供的功能,以下为 openi 所支持的钩子列表。
settings.githook_edit_desc=如果钩子未启动,则会显示样例文件中的内容。如果想要删除某个钩子,则提交空白文本即可。
settings.githook_name=钩子名称
settings.githook_content=钩子文本
settings.update_githook=更新钩子设置
settings.add_webhook_desc=Gitea 将向目标 URL 发送具有指定内容类型的 <code>POST</code> 请求。在 <a target="_blank" rel="noopener noreferrer" href="%s">webhooks 指南</a> 中阅读更多内容。
settings.add_webhook_desc=openi 将向目标 URL 发送具有指定内容类型的 <code>POST</code> 请求。在 <a target="_blank" rel="noopener noreferrer" href="%s">webhooks 指南</a> 中阅读更多内容。
settings.payload_url=目标 URL
settings.http_method=HTTP 方法
settings.content_type=POST Content Type
@@ -1933,7 +1923,7 @@ total=总计:%d
dashboard.statistic=摘要
dashboard.operations=维护操作
dashboard.system_status=系统状态
dashboard.statistic_info=Gitea 数据库统计:<b>%d</b> 位用户,<b>%d</b> 个组织,<b>%d</b> 个公钥,<b>%d</b> 个项目,<b>%d</b> 个项目关注,<b>%d</b> 个赞,<b>%d</b> 次行为,<b>%d</b> 条权限记录,<b>%d</b> 张任务,<b>%d</b> 次评论,<b>%d</b> 个社交帐号,<b>%d</b> 个用户关注,<b>%d</b> 个镜像,<b>%d</b> 个版本发布,<b>%d</b> 个登录源,<b>%d</b> 个 Web 钩子,<b>%d</b> 个里程碑,<b>%d</b> 个标签,<b>%d</b> 个钩子任务,<b>%d</b> 个团队,<b>%d</b> 个更新任务,<b>%d</b> 个附件。
dashboard.statistic_info=openi 数据库统计:<b>%d</b> 位用户,<b>%d</b> 个组织,<b>%d</b> 个公钥,<b>%d</b> 个项目,<b>%d</b> 个项目关注,<b>%d</b> 个赞,<b>%d</b> 次行为,<b>%d</b> 条权限记录,<b>%d</b> 张任务,<b>%d</b> 次评论,<b>%d</b> 个社交帐号,<b>%d</b> 个用户关注,<b>%d</b> 个镜像,<b>%d</b> 个版本发布,<b>%d</b> 个登录源,<b>%d</b> 个 Web 钩子,<b>%d</b> 个里程碑,<b>%d</b> 个标签,<b>%d</b> 个钩子任务,<b>%d</b> 个团队,<b>%d</b> 个更新任务,<b>%d</b> 个附件。
dashboard.operation_name=操作名称
dashboard.operation_switch=开关
dashboard.operation_run=执行
@@ -1964,7 +1954,7 @@ dashboard.archive_cleanup=删除旧的项目存档
dashboard.deleted_branches_cleanup=清理已删除的分支
dashboard.update_migration_poster_id=更新迁移的发表者ID
dashboard.git_gc_repos=对项目进行垃圾回收
dashboard.resync_all_sshkeys=使用 Gitea SSH 密钥更新'.ssh/authorized_keys' 文件。
dashboard.resync_all_sshkeys=使用 openi SSH 密钥更新'.ssh/authorized_keys' 文件。
dashboard.resync_all_sshkeys.desc=(内置的 SSH 服务器不需要。)
dashboard.resync_all_hooks=重新同步所有项目的 pre-receive、update 和 post-receive 钩子
dashboard.reinit_missing_repos=重新初始化所有丢失的 Git 项目存在的记录
@@ -2026,7 +2016,7 @@ users.prohibit_login=禁用登录
users.is_admin=是管理员
users.is_restricted=受限
users.allow_git_hook=允许创建 Git 钩子
users.allow_git_hook_tooltip=Git 钩子作为运行 Gitea 的操作系统用户执行,并且将拥有相同级别的主机访问权限
users.allow_git_hook_tooltip=Git 钩子作为运行 openi 的操作系统用户执行,并且将拥有相同级别的主机访问权限
users.allow_import_local=允许导入本地项目
users.allow_create_organization=允许创建组织
users.update_profile=更新帐户
@@ -2069,11 +2059,11 @@ datasets.owner=所有者
datasets.name=名称
datasets.private=私有

hooks.desc=当某些 Gitea 事件触发时, Web 钩子会自动向服务器发出 HTTP POST 请求。此处定义的 Web 钩子是默认值, 将复制到所有新建项目中。参阅 <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/webhooks/">Web钩子指南</a> 获取更多内容。
hooks.desc=当某些 openi 事件触发时, Web 钩子会自动向服务器发出 HTTP POST 请求。此处定义的 Web 钩子是默认值, 将复制到所有新建项目中。参阅 <a target="_blank" rel="noopener" href="https://docs.openi.io/en-us/webhooks/">Web钩子指南</a> 获取更多内容。
hooks.add_webhook=新增默认Web钩子
hooks.update_webhook=更新默认Web钩子

systemhooks.desc=当某些 Gitea 事件触发时, Web 钩子会自动向服务器发出 HTTP POST 请求。此处定义的 Web 钩子是默认值, 将复制到所有新建项目中。参阅 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/webhooks/">Web钩子指南</a> 获取更多内容。
systemhooks.desc=当某些 openi 事件触发时, Web 钩子会自动向服务器发出 HTTP POST 请求。此处定义的 Web 钩子是默认值, 将复制到所有新建项目中。参阅 <a target="_blank" rel="noopener" href="https://docs.openi.io/zh-cn/webhooks/">Web钩子指南</a> 获取更多内容。
systemhooks.add_webhook=添加系统 Web 钩子
systemhooks.update_webhook=更新系统 Web 钩子

@@ -2096,7 +2086,7 @@ auths.bind_password_helper=警告:密码将会被明文存储。如果可能
auths.user_base=用户搜索基准
auths.user_dn=用户 DN
auths.attribute_username=用户名属性
auths.attribute_username_placeholder=置空将使用Gitea的用户名。
auths.attribute_username_placeholder=置空将使用openi的用户名。
auths.attribute_name=名字属性
auths.attribute_surname=姓氏属性
auths.attribute_mail=电子邮箱属性
@@ -2169,8 +2159,8 @@ auths.login_source_of_type_exist=此类型的认证源已存在。

config.server_config=服务器配置
config.app_name=站点名称
config.app_ver=Gitea版本
config.app_url=Gitea 基本 URL
config.app_ver=openi版本
config.app_url=openi 基本 URL
config.custom_conf=配置文件路径
config.custom_file_root_path=自定义文件根路径
config.domain=SSH 服务域名


BIN
public/img/404.png View File

Before After
Width: 512  |  Height: 224  |  Size: 4.5 kB Width: 1920  |  Height: 1080  |  Size: 116 kB

BIN
public/img/500.png View File

Before After
Width: 512  |  Height: 224  |  Size: 5.2 kB Width: 1920  |  Height: 1080  |  Size: 82 kB

+ 13
- 7
templates/status/404.tmpl View File

@@ -1,10 +1,16 @@
{{template "base/head" .}}
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}}
<div class="ui container center">
<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p>
<div class="ui divider"></div>
<br>
<p>{{.i18n.Tr "error404" | Safe}}
{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
<div class="ui container center" style="background:url({{StaticUrlPrefix}}/img/404.png) no-repeat center center fixed;margin-bottom:-80px;height: 100%;width:100%;overflow: hidden;background-size: cover;">
<div style="height:100%;color:white">
<h1 style="padding-top: 100px;font-size: 180px;color: white;text-align: center;text-shadow: 1px 20px 2px #000;
letter-spacing: 20px;">
404
</h1>
<div style="padding-bottom: 80px">
<div class="ui divider"></div>
<br>
<p>{{.i18n.Tr "error404" | Safe}}
{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
</div>
</div>
</div>
{{template "base/footer" .}}

+ 14
- 9
templates/status/500.tmpl View File

@@ -1,11 +1,16 @@
{{template "base/head" .}}
<div class="ui container center">
<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p>
<div class="ui divider"></div>
<br>
{{if .ErrorMsg}}<p>{{.i18n.Tr "error.occurred"}}:</p>
<pre style="text-align: left">{{.ErrorMsg}}</pre>{{end}}
{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
{{if .IsAdmin}}<p>{{.i18n.Tr "error.report_message" | Safe}}</p>{{end}}
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}}
<div class="ui container center" style="background:url({{StaticUrlPrefix}}/img/500.png) no-repeat center center fixed;margin-bottom:-80px;height: 100%;width:100%;overflow: hidden;background-size: cover;">
<div style="height:100%;color:white">
<h1 style="padding-top: 100px;font-size: 180px;color: white;text-align: center;text-shadow: 1px 20px 2px #666;
letter-spacing: 20px;">
500
</h1>
<div style="padding-bottom: 80px">
<div class="ui divider"></div>
<br>
<p>{{.i18n.Tr "error404" | Safe}}
{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
</div>
</div>
</div>
{{template "base/footer" .}}

Loading…
Cancel
Save