1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

feat(website): Translate Chinese Parts of Website Default Files (#7213)

This commit is contained in:
zhengkunwang 2024-11-30 19:42:51 +08:00 committed by GitHub
parent 8453e60609
commit 00701a3999
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 23 deletions

View File

@ -1,13 +1,13 @@
additionalProperties: additionalProperties:
key: #应用的 key ,仅限英文,用于在 Linux 创建文件夹 key: # The application's key, limited to English, used to create a folder in Linux
name: #应用名称 name: # Application name
tags: tags:
- Tool #应用标签,可以有多个,请参照下方的标签列表 - Tool # Application tags, multiple tags are allowed. Refer to the tag list below
shortDescZh: #应用中文描述不要超过30个字 shortDescZh: # Application description in Chinese, no more than 30 characters
shortDescEn: #应用英文描述 shortDescEn: # Application description in English
type: tool #应用类型,区别于应用分类,只能有一个,请参照下方的类型列表 type: tool # Application type, different from application category, only one is allowed. Refer to the type list below
crossVersionUpdate: #是否可以跨大版本升级 crossVersionUpdate: # Whether cross-major-version upgrades are supported
limit: #应用安装数量限制0 代表无限制 limit: # Application installation limit, 0 means no limit
website: #官网地址 website: # Official website address
github: #github 地址 github: # GitHub address
document: #文档地址 document: # Documentation address

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noindex,nofollow" />
<title>恭喜站点创建成功</title> <title>Congratulations! The site has been successfully created!</title>
<style> <style>
.container { .container {
width: 60%; width: 60%;
@ -28,8 +28,8 @@
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>恭喜, 站点创建成功</h1> <h1>Congratulations, the site has been successfully created!</h1>
<h3>这是默认index.html本页面由系统自动生成</h3> <h3>This is the default index.html, and this page is automatically generated by the system.</h3>
</div> </div>
</body> </body>
</html> </html>

View File

@ -2,19 +2,16 @@
error_reporting(E_ALL); error_reporting(E_ALL);
ini_set('display_errors', 1); ini_set('display_errors', 1);
echo '<h1 style="text-align: center;">欢迎使用 PHP</h1>'; echo '<h1 style="text-align: center;">Welcome to PHP!</h1>';
echo '<h2>版本信息</h2>'; echo '<h2>Version Information</h2>';
echo '<ul>'; echo '<ul>';
echo '<li>PHP版本', PHP_VERSION, '</li>'; echo '<li>PHP Version', PHP_VERSION, '</li>';
echo '</ul>'; echo '</ul>';
echo '<h2>已安装扩展</h2>'; echo '<h2>Installed Extensions</h2>';
printExtensions(); printExtensions();
/**
* 获取已安装扩展列表
*/
function printExtensions() function printExtensions()
{ {
echo '<ol>'; echo '<ol>';

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>抱歉站点已暂停</title> <title>Sorry, the site has been suspended</title>
<style> <style>
html,body,div,h1,*{margin:0;padding:0;} html,body,div,h1,*{margin:0;padding:0;}
body{ body{
@ -27,7 +27,7 @@
<body> <body>
<div class="box"> <div class="box">
<h1>抱歉该站点已经被管理员停止运行请联系管理员了解详情</h1> <h1>Sorry! This site has been deactivated by the administrator. Please contact the administrator for more details!</h1>
</div> </div>
</body> </body>
</html> </html>