Skip to content

Commit

Permalink
i18n 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
Yc Chen committed Nov 10, 2023
1 parent 0714e17 commit 48e8dc4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
52 changes: 26 additions & 26 deletions common/static/i18n/lang/i18n_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,45 @@
"btn.confirm": "确定",
"btn.cancel": "取消",
"btn.submit_sql": "SQL上线",
"label.audition": "审计",
"label.audition": "系统审计",
"label.more": "更多",
"label.hello": "你好",
"label.exit": "退出",
"label.close": "关闭",
"label.logout": "退出",
"label.sysinfo": "系统信息",
"label.system": "系统",
"label.admin_dashboard": "Admin Dashboard",
"label.system": "系统管理",
"label.admin_dashboard": "管理后台",
"label.2fa": "2FA",
"label.2fa_config": "2FA Configuration",
"label.change_pass": "Change Password",
"label.2fa_config": "2FA 配置",
"label.change_pass": "修改密码",
"label.dashboard": "控制台",
"label.sql_audition": "SQL Audition",
"label.sql_query": "SQL Query",
"label.sql_online": "SQL Online",
"label.sql_analysis": "SQL Analysis",
"label.data_dictionary": "Data Dictionary",
"label.privilege_manage": "Privilege",
"label.optimization": "Optimization",
"label.sql_optimization": "SQL Optimization",
"label.slow_log": "Slow Logs",
"label.instance_manage": "Instance Manage",
"label.instance": "Instance",
"label.general": "General",
"label.sql_audition": "SQL审核",
"label.sql_query": "SQL查询",
"label.sql_online": "SQL上线",
"label.sql_analysis": "SQL分析",
"label.data_dictionary": "数据字典",
"label.privilege_manage": "权限管理",
"label.optimization": "优化",
"label.sql_optimization": "SQL优化",
"label.slow_log": "慢日志",
"label.instance_manage": "实例管理",
"label.instance": "实例列表",
"label.general": "常规配置项",
"label.query": "查询",
"label.monitor": "Monitor",
"label.user": "User",
"label.session": "会话管理",
"label.user": "用户管理",
"label.dba_principles": "DBA Principles",
"label.variables": "Variables",
"label.database": "Database",
"label.plugins": "Plugins",
"label.resource_group": "Resource Group",
"label.privilege": "Privilege",
"label.variables": "参数配置",
"label.database": "数据库管理",
"label.plugins": "工具插件",
"label.resource_group": "资源组管理",
"label.privilege": "权限组管理",
"label.username": "用户名",
"label.password": "密码",
"label.status": "Status",
"label.status": "状态",
"placeholder.search": "搜索",
"tooltip.status": "Status",
"tooltip.status": "状态",
"footer.about": "关于",
"footer.contact": "联系我们",
"footer.title": "联系我们"
Expand Down
2 changes: 1 addition & 1 deletion common/static/i18n/lang/i18n_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"label.instance": "Instance",
"label.general": "General",
"label.query": "Query",
"label.monitor": "Monitor",
"label.session": "Session",
"label.user": "User",
"label.dba_principles": "DBA Principles",
"label.variables": "Variables",
Expand Down
4 changes: 2 additions & 2 deletions common/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
{% endif %}
{% if perms.sql.menu_sqloptimize %}
<li>
<a href="#"><i class="fa fa-wrench fa-fw"></i> <span i18n="label.optimization"> </span><span class="fa arrow"></span></a>
<a href="#"><i class="fa fa-wrench fa-fw"></i> <span i18n="label.sql_optimization"> </span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
{% if perms.sql.menu_sqladvisor %}
<li>
Expand All @@ -182,7 +182,7 @@
{% endif %}
{% if perms.sql.menu_dbdiagnostic %}
<li>
<a href="/dbdiagnostic/" i18n="label.monitor"> </a>
<a href="/dbdiagnostic/" i18n="label.session"> </a>
</li>
{% endif %}
{% if perms.sql.menu_database %}
Expand Down

0 comments on commit 48e8dc4

Please sign in to comment.