Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions v2/lua/openresty_org/i18n.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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<sup>&reg;</sup> is a dynamic web platform based on NGINX and LuaJIT."] = "OpenResty<sup>&reg;</sup> 是一款基于 NGINX 和 LuaJIT 的 Web 平台。",
["OpenResty<sup>&reg;</sup> is a registered trademark owned by <a href=\"https://openresty.com/\">OpenResty Inc</a>."] = "OpenResty<sup>&reg;</sup> 是 <a href=\"https://openresty.com/\">OpenResty Inc</a> 公司所有的注册商标。",
["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 平台",
Expand Down
6 changes: 3 additions & 3 deletions v2/lua/openresty_org/templates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ Template['index.tt2'] = function (stash)
local out = {}
local i = 0
i=i+1 out[i] = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <title>"
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] = "</title>\n <meta name=\"description\" content=\""
i=i+1 out[i] = (Vmethod.l or noop)(get(stash, 'c'), "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.")
i=i+1 out[i] = (Vmethod.l or noop)(get(stash, 'c'), "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.")
i=i+1 out[i] = "\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes\">\n <link href='https://openresty.org/css/fonts.css' rel='stylesheet' type='text/css'>\n <!--\n If you ever wanted to use LESS instead of CSS...\n <link rel=\"stylesheet\" type=\"text/less\" href=\"/css/main.less\">\n <script src=\"/js/less.js\"></script>\n -->\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/main.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/github.css\">\n <script>\n"
i=i+1 out[i] = process(stash, "old-permlink-js.tt2")
i=i+1 out[i] = "\n </script>\n</head>\n<body>\n\n"
Expand Down Expand Up @@ -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 = {}
Expand Down
1 change: 1 addition & 0 deletions v2/lua/openresty_org/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions v2/po/cn.po
Original file line number Diff line number Diff line change
Expand Up @@ -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<sup>&reg;</sup> is a dynamic web platform based on NGINX and LuaJIT."
Expand Down
4 changes: 2 additions & 2 deletions v2/templates/index.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>[% c.l("OpenResty® - Open-Source Web Platform Based on Nginx and LuaJIT") %]</title>
<meta name="description" content="[% c.l("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.") %]">
<title>[% c.l("OpenResty® - High-Concurrency Web Platform Built on Nginx + LuaJIT") %]</title>
<meta name="description" content="[% c.l("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.") %]">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes">
<link href='https://openresty.org/css/fonts.css' rel='stylesheet' type='text/css'>
<!--
Expand Down