Skip to content

Commit

Permalink
feat(website): Translate Chinese Parts of Website Default Files (#7213)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Nov 30, 2024
1 parent 8453e60 commit 00701a3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
22 changes: 11 additions & 11 deletions cmd/server/app/app_config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
additionalProperties:
key: #应用的 key ,仅限英文,用于在 Linux 创建文件夹
name: #应用名称
key: # The application's key, limited to English, used to create a folder in Linux
name: # Application name
tags:
- Tool #应用标签,可以有多个,请参照下方的标签列表
shortDescZh: #应用中文描述,不要超过30个字
shortDescEn: #应用英文描述
type: tool #应用类型,区别于应用分类,只能有一个,请参照下方的类型列表
crossVersionUpdate: #是否可以跨大版本升级
limit: #应用安装数量限制,0 代表无限制
website: #官网地址
github: #github 地址
document: #文档地址
- Tool # Application tags, multiple tags are allowed. Refer to the tag list below
shortDescZh: # Application description in Chinese, no more than 30 characters
shortDescEn: # Application description in English
type: tool # Application type, different from application category, only one is allowed. Refer to the type list below
crossVersionUpdate: # Whether cross-major-version upgrades are supported
limit: # Application installation limit, 0 means no limit
website: # Official website address
github: # GitHub address
document: # Documentation address
6 changes: 3 additions & 3 deletions cmd/server/nginx_conf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow" />
<title>恭喜站点创建成功</title>
<title>Congratulations! The site has been successfully created!</title>
<style>
.container {
width: 60%;
Expand All @@ -28,8 +28,8 @@
</head>
<body>
<div class="container">
<h1>恭喜, 站点创建成功</h1>
<h3>这是默认index.html本页面由系统自动生成</h3>
<h1>Congratulations, the site has been successfully created!</h1>
<h3>This is the default index.html, and this page is automatically generated by the system.</h3>
</div>
</body>
</html>
11 changes: 4 additions & 7 deletions cmd/server/nginx_conf/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
error_reporting(E_ALL);
ini_set('display_errors', 1);

echo '<h1 style="text-align: center;">欢迎使用 PHP</h1>';
echo '<h2>版本信息</h2>';
echo '<h1 style="text-align: center;">Welcome to PHP!</h1>';
echo '<h2>Version Information</h2>';

echo '<ul>';
echo '<li>PHP版本', PHP_VERSION, '</li>';
echo '<li>PHP Version', PHP_VERSION, '</li>';
echo '</ul>';

echo '<h2>已安装扩展</h2>';
echo '<h2>Installed Extensions</h2>';
printExtensions();

/**
* 获取已安装扩展列表
*/
function printExtensions()
{
echo '<ol>';
Expand Down
4 changes: 2 additions & 2 deletions cmd/server/nginx_conf/stop.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>抱歉站点已暂停</title>
<title>Sorry, the site has been suspended</title>
<style>
html,body,div,h1,*{margin:0;padding:0;}
body{
Expand All @@ -27,7 +27,7 @@

<body>
<div class="box">
<h1>抱歉该站点已经被管理员停止运行请联系管理员了解详情</h1>
<h1>Sorry! This site has been deactivated by the administrator. Please contact the administrator for more details!</h1>
</div>
</body>
</html>

0 comments on commit 00701a3

Please sign in to comment.