diff --git a/v2/lua/openresty_org/i18n.lua b/v2/lua/openresty_org/i18n.lua index ab9dfc03..2a1c36dc 100644 --- a/v2/lua/openresty_org/i18n.lua +++ b/v2/lua/openresty_org/i18n.lua @@ -23,10 +23,10 @@ local trans_cn = { ["No query provided."] = "没有提供任何搜索词。", ["No search results found"] = "没有找到任何匹配的记录", ["Official Forum"] = "官方论坛", + ["OpenResty integrates an enhanced Nginx core, LuaJIT and quality Lua libraries so you can script Nginx in Lua and build high-performance web apps that handle massive concurrency."] = "OpenResty 将增强版 Nginx 核心、LuaJIT 与一批高质量 Lua 库整合为一体,让你用 Lua 脚本化 Nginx,构建可处理海量并发的高性能 Web 应用。", ["OpenResty® is a dynamic web platform based on NGINX and LuaJIT."] = "OpenResty® 是一款基于 NGINX 和 LuaJIT 的 Web 平台。", ["OpenResty® is a registered trademark owned by OpenResty Inc."] = "OpenResty®OpenResty Inc 公司所有的注册商标。", - ["OpenResty® - Open-Source Web Platform Based on Nginx and LuaJIT"] = "OpenResty® - 基于 Nginx 与 LuaJIT 的开源 Web 平台", - ["OpenResty® turns Nginx into a full-fledged web app server with LuaJIT. Build high-performance gateways, APIs, and web services — powering 21M+ websites worldwide. Free and open source."] = "OpenResty® 将 Nginx 变为全功能 Web 应用服务器,内置 LuaJIT 运行时。用于构建高性能网关、API 和 Web 服务,驱动全球超 2100 万网站。完全免费开源。", + ["OpenResty® - High-Concurrency Web Platform Built on Nginx + LuaJIT"] = "OpenResty® - Nginx + LuaJIT 打造的高并发 Web 平台", ["Please adjust your search query and try again."] = "请调整您的搜索查询并重试。", ["Query too long (more than %d bytes)."] = "查词太长了(已经超出 %d 字节)。", ["Scalable Web Platform by Extending NGINX with Lua"] = "通过 Lua 扩展 NGINX 实现的可伸缩的 Web 平台", diff --git a/v2/lua/openresty_org/templates.lua b/v2/lua/openresty_org/templates.lua index 70102763..eab468dc 100644 --- a/v2/lua/openresty_org/templates.lua +++ b/v2/lua/openresty_org/templates.lua @@ -363,9 +363,9 @@ Template['index.tt2'] = function (stash) local out = {} local i = 0 i=i+1 out[i] = "\n\n\n \n " - i=i+1 out[i] = (Vmethod.l or noop)(get(stash, 'c'), "OpenResty® - Open-Source Web Platform Based on Nginx and LuaJIT") + i=i+1 out[i] = (Vmethod.l or noop)(get(stash, 'c'), "OpenResty® - High-Concurrency Web Platform Built on Nginx + LuaJIT") i=i+1 out[i] = "\n \n \n \n \n \n \n \n\n\n\n" @@ -417,7 +417,7 @@ Template['index.tt2'] = function (stash) return out end -MD5['index.tt2'] = "499c27cecd3510b260dc4362937a5632" +MD5['index.tt2'] = "4f165be9f0b35c967b280988f825d716" Template['main-menu-buttons.tt2'] = function (stash) local out = {} diff --git a/v2/lua/openresty_org/view.lua b/v2/lua/openresty_org/view.lua index 05e86b7a..f15e55f1 100644 --- a/v2/lua/openresty_org/view.lua +++ b/v2/lua/openresty_org/view.lua @@ -8,6 +8,7 @@ local c = {} function _M.process(key, stash, i18n) stash.c = c c.l = i18n.translate + templates.vmethods.l = function (c, s) return c.l(s) end return templates.process(key, stash) end diff --git a/v2/po/cn.po b/v2/po/cn.po index c380b76d..43747c58 100644 --- a/v2/po/cn.po +++ b/v2/po/cn.po @@ -70,12 +70,12 @@ msgid "Try OpenResty XRay" msgstr "试用 OpenResty XRay" #: templates/index.tt2:5 -msgid "OpenResty® - Open-Source Web Platform Based on Nginx and LuaJIT" -msgstr "OpenResty® - 基于 Nginx 与 LuaJIT 的开源 Web 平台" +msgid "OpenResty® - High-Concurrency Web Platform Built on Nginx + LuaJIT" +msgstr "OpenResty® - Nginx + LuaJIT 打造的高并发 Web 平台" #: templates/index.tt2:6 -msgid "OpenResty® turns Nginx into a full-fledged web app server with LuaJIT. Build high-performance gateways, APIs, and web services — powering 21M+ websites worldwide. Free and open source." -msgstr "OpenResty® 将 Nginx 变为全功能 Web 应用服务器,内置 LuaJIT 运行时。用于构建高性能网关、API 和 Web 服务,驱动全球超 2100 万网站。完全免费开源。" +msgid "OpenResty integrates an enhanced Nginx core, LuaJIT and quality Lua libraries so you can script Nginx in Lua and build high-performance web apps that handle massive concurrency." +msgstr "OpenResty 将增强版 Nginx 核心、LuaJIT 与一批高质量 Lua 库整合为一体,让你用 Lua 脚本化 Nginx,构建可处理海量并发的高性能 Web 应用。" #: templates/index.tt2:28 msgid "OpenResty® is a dynamic web platform based on NGINX and LuaJIT." diff --git a/v2/templates/index.tt2 b/v2/templates/index.tt2 index 1206f2b4..7e1cf6f6 100755 --- a/v2/templates/index.tt2 +++ b/v2/templates/index.tt2 @@ -2,8 +2,8 @@ - [% c.l("OpenResty® - Open-Source Web Platform Based on Nginx and LuaJIT") %] - + [% c.l("OpenResty® - High-Concurrency Web Platform Built on Nginx + LuaJIT") %] +