ソースを参照

#697 update locale and admin panel

tags/v0.9.99
Unknwon 8年前
コミット
98108e379d
4個のファイルの変更29行の追加14行の削除
  1. 3
    1
      conf/locale/locale_en-US.ini
  2. 16
    7
      conf/locale/locale_zh-CN.ini
  3. 4
    4
      modules/bindata/bindata.go
  4. 6
    2
      templates/admin/config.tmpl

+ 3
- 1
conf/locale/locale_en-US.ini ファイルの表示

@@ -879,8 +879,10 @@ config.register_email_confirm = Require E-mail Confirmation
config.disable_register = Disable Registration
config.show_registration_button = Show Register Button
config.require_sign_in_view = Require Sign In View
config.mail_notify = Mail Notification
config.enable_cache_avatar = Enable Cache Avatar
config.mail_notify = Mail Notification
config.disable_key_size_check = Disable Minimum Key Size Check
config.enable_captcha = Enable Captcha
config.active_code_lives = Active Code Lives
config.reset_password_code_lives = Reset Password Code Lives
config.webhook_config = Webhook Configuration

+ 16
- 7
conf/locale/locale_zh-CN.ini ファイルの表示

@@ -54,7 +54,7 @@ code=代码
[install]
install=安装页面
title=首次运行安装程序
requite_db_desc=Gogs 允许后端数据库为 MySQL、PostgreSQL 或 SQLite3
requite_db_desc=Gogs 要求安装 MySQL、PostgreSQL、SQLite3 或 TiDB
db_title=数据库设置
db_type=数据库类型
host=数据库主机
@@ -64,8 +64,11 @@ db_name=数据库名称
db_helper=如果您使用 MySQL,请使用 INNODB 引擎以及 utf8_general_ci 字符集。
ssl_mode=SSL 模式
path=数据库文件路径
sqlite_helper=SQLite3 数据库的文件路径。
err_empty_sqlite_path=SQLite 数据库文件路径不能为空。
sqlite_helper=SQLite3 或 TiDB 的数据库路径。
err_empty_db_path=SQLite3 或 TiDB 的数据库路径不能为空。
err_invalid_tidb_name=TiDB 数据库名称不允许包含字符 "." 或 "-" 。
no_admin_and_disable_registration=您不能够在未创建管理员用户的情况下禁止注册。
err_empty_admin_password=管理员密码不能为空。
general_title=应用基本设置
app_name=应用名称
@@ -716,8 +719,8 @@ authentication=授权认证管理
config=应用配置管理
notices=系统提示管理
monitor=应用监控面板
prev=上一
next=下一
first_page=首
last_page=末
total=总计:
dashboard.statistic=应用统计数据
@@ -777,10 +780,12 @@ users.activated=已激活
users.admin=管理员
users.repos=仓库数
users.created=创建时间
users.new_success=新的用户 '%s' 创建成功!
users.edit=编辑
users.auth_source=认证源
users.local=本地
users.auth_login_name=认证登录名称
users.password_helper=将值留空使其保持不变。
users.update_profile_success=该用户信息更新成功!
users.edit_account=编辑用户信息
users.is_activated=该用户已被激活
@@ -829,6 +834,8 @@ auths.ms_ad_sa=Ms Ad SA
auths.smtp_auth=SMTP 认证类型
auths.smtphost=SMTP 主机地址
auths.smtpport=SMTP 主机端口
auths.allowed_domains=域名白名单
auths.allowed_domains_helper=将值留空表示不对域名做任何限制。多个域名之间需要使用逗号 ',' 分隔。
auths.enable_tls=启用 TLS 加密
auths.skip_tls_verify=忽略 TLS 验证
auths.pam_service_name=PAM 服务名称
@@ -866,14 +873,16 @@ config.db_user=连接用户
config.db_ssl_mode=SSL 模式
config.db_ssl_mode_helper=(仅限 "postgres" 使用)
config.db_path=数据库路径
config.db_path_helper=(仅限 "sqlite3" 使用
config.db_path_helper=(用于 "sqlite3" 和 "tidb"
config.service_config=服务配置
config.register_email_confirm=注册邮件确认
config.disable_register=关闭注册功能
config.show_registration_button=显示注册按钮
config.require_sign_in_view=强制登录浏览
config.mail_notify=邮件通知提醒
config.enable_cache_avatar=开启缓存头像
config.mail_notify=邮件通知提醒
config.disable_key_size_check=禁用密钥最小长度检查
config.enable_captcha=启用验证码服务
config.active_code_lives=激活用户链接有效期
config.reset_password_code_lives=重置密码链接有效期
config.webhook_config=Web 钩子配置

+ 4
- 4
modules/bindata/bindata.go
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 6
- 2
templates/admin/config.tmpl ファイルの表示

@@ -82,10 +82,14 @@
<dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt>
<dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt>
<dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.enable_cache_avatar"}}</dt>
<dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt>
<dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt>
<dd><i class="fa fa{{if .Service.DisableMinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.enable_captcha"}}</dt>
<dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd>
<hr/>
<dt>{{.i18n.Tr "admin.config.active_code_lives"}}</dt>
<dd>{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>

読み込み中…
キャンセル
保存