From 9df2da9468e7d2c32305c7794acf48db0de0cb0c Mon Sep 17 00:00:00 2001 From: colorfulberry Date: Wed, 27 May 2020 18:54:23 +0800 Subject: [PATCH] feat: add head i18n --- custom/templates/base/head_navbar.tmpl | 41 ++++++++++++++++++---------------- options/locale/locale_en-US.ini | 11 +++++++++ options/locale/locale_zh-CN.ini | 10 +++++++++ 3 files changed, 43 insertions(+), 19 deletions(-) diff --git a/custom/templates/base/head_navbar.tmpl b/custom/templates/base/head_navbar.tmpl index a61ae6e29..026966d3b 100644 --- a/custom/templates/base/head_navbar.tmpl +++ b/custom/templates/base/head_navbar.tmpl @@ -11,18 +11,18 @@ {{if .IsSigned}} {{.i18n.Tr "dashboard"}} {{.i18n.Tr "datasets"}} - 项目 + {{.i18n.Tr "custom.head.project"}} {{if not .UnitIssuesGlobalDisabled}} {{.i18n.Tr "issues"}} {{end}} @@ -36,31 +36,34 @@ {{.i18n.Tr "explore"}} {{else if .IsLandingPageHome}} {{.i18n.Tr "home"}} - 项目 + {{.i18n.Tr "custom.head.project"}} {{else if .IsLandingPageExplore}} diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 9ff3ee71c..240477fe5 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2439,3 +2439,14 @@ error.probable_bad_default_signature = "WARNING! Although the default key has th [units] error.no_unit_allowed_repo = You are not allowed to access any section of this repository. error.unit_not_allowed = You are not allowed to access this repository section. + +[custom] +head.community=Community +head.welcome=Welcome to OpenI +head.about_org=About orgnation +head.license=OpenI open source license +head.community_charter=OpenI Community Charter +head.community_infos=Community News +head.project=Project +head.study=Study +head.activity=Activity \ No newline at end of file diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 4856f13aa..ec48f3314 100644 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -2440,3 +2440,13 @@ error.probable_bad_default_signature=警告!虽然默认密钥拥有此ID, error.no_unit_allowed_repo=您没有被允许访问此仓库的任何单元。 error.unit_not_allowed=您没有权限访问此仓库单元 +[custom] +head.community=社区 +head.welcome=欢迎加入启智 +head.about_org=关于组织架构 +head.license=启智开源许可证 +head.community_charter=启智社区章程 +head.community_infos=社区动态 +head.project=项目 +head.study=学些 +head.activity=活动