Browse Source

Some translation;
完善一些翻译

star7th 9 years ago
parent
commit
56fdbf2087

+ 19 - 1
Application/Home/Lang/en-us.php

@@ -24,8 +24,26 @@ return array(
 
 
     //index
     //index
     'help' => 'Help',
     'help' => 'Help',
-    'login_or_register' => 'Login/Register',
+    'demo' => 'Demo',
+    'index_login_or_register' => 'Login / Register',
     'my_item' => 'My items',
     'my_item' => 'My items',
+    'section_title1' => 'ShowDoc',
+    'section_description1' => ' A tool greatly applicable for an IT team',
+    'section_title2' => 'API Document',
+    'section_description2' => 'ShowDoc can compile exquisite API documents <br>in a very fast and convenient way',
+    'section_title3' => 'Data Dictionary',
+    'section_description3' => 'A good Data Dictionary can easily exhibit database structure to other people<br>ShowDoc can compile exquisite Data Dictionary',
+    'section_title4' => 'Explanation Document',
+    'section_description4' => 'You can absolutely use ShowDoc to compile the explanation documents for some tools',
+    'section_title5' => 'Team Work',
+    'section_description5' => 'Your team will work with ShowDoc together very well ',
+    'section_title6' => 'Open Source',
+    'section_description6' => 'ShowDoc is a free, open source tool that <br>you can deploy it to your own server',
+    'section_title7' => 'Hosted online',
+    'section_description7' => 'Www.showdoc.cc provide security and stability of the document hosting service',
+    'section_title8' => 'Try it now',
+    'section_description8' => 'Over 2000+ IT team is using ShowDoc',
+
 
 
     //Common message
     //Common message
     'redirect_message' => 'If your browser does not automatically jump, please click on this link.',
     'redirect_message' => 'If your browser does not automatically jump, please click on this link.',

+ 20 - 2
Application/Home/Lang/zh-cn.php

@@ -23,9 +23,27 @@ return array(
 
 
 
 
     //index
     //index
-    'help' => '帮助教程',
-    'login_or_register' => '登录/注册',
+    'help' => '帮助',
+    'demo' => '示例',
+    'index_login_or_register' => '登录 / 注册',
     'my_item' => '我的项目',
     'my_item' => '我的项目',
+    'section_title1' => 'ShowDoc',
+    'section_description1' => '一个非常适合IT团队的在线API文档、技术文档工具',
+    'section_title2' => 'API文档',
+    'section_description2' => ' APP、web前端与服务器常用API来进行交互<br>用ShowDoc可以非常方便快速地编写出美观的API文档',
+    'section_title3' => '数据字典',
+    'section_description3' => '好的数据字典可以很方便地向别人描述你的数据库结构<br>用ShowDoc可以编辑出美观的数字字典',
+    'section_title4' => '说明文档',
+    'section_description4' => '你完全可以使用 ShowDoc来编写一些工具的说明书<br>也可以编写一些技术规范说明文档以供团队查阅',
+    'section_title5' => '团队协作',
+    'section_description5' => '团队权限管理机制让团队良好地协同编写文档',
+    'section_title6' => '免费开源',
+    'section_description6' => 'ShowDoc提供免费开源的版本<br>你可以选择将ShowDoc部署到你的服务器',
+    'section_title7' => '在线托管',
+    'section_description7' => 'www.showdoc.cc 提供安全稳定的在线文档托管服务<br>你可以放心地选择托管你的文档数据在云端',
+    'section_title8' => '立即体验',
+    'section_description8' => '超过2000+互联网团队正在使用ShowDoc',
+
 
 
     //Common message
     //Common message
     'redirect_message' => '如果你的浏览器没有自动跳转,请点击此链接',
     'redirect_message' => '如果你的浏览器没有自动跳转,请点击此链接',

+ 20 - 21
Application/Home/View/Index/index.html

@@ -32,9 +32,9 @@
   <div class="right pull-right">
   <div class="right pull-right">
     <ul class="inline pull-right">
     <ul class="inline pull-right">
 	  <if condition="$login_user">
 	  <if condition="$login_user">
-	    <li ><a href="{:U('Home/Item/index')}">我的项目</a></li>
+	    <li ><a href="{:U('Home/Item/index')}">{$Think.lang.my_item}</a></li>
 	    <else />
 	    <else />
-	    <li ><a href="{:U('Home/User/login')}">登录 / 注册 </a></li>
+	    <li ><a href="{:U('Home/User/login')}">{$Think.lang.index_login_or_register}</a></li>
 	  </if>
 	  </if>
     </ul>
     </ul>
     </div>  
     </div>  
@@ -42,62 +42,61 @@
 
 
 <div id="dowebok">
 <div id="dowebok">
     <div class="section">
     <div class="section">
-        <h1>ShowDoc</h1>
+        <h1>{$Think.lang.section_title1}</h1>
         <br>
         <br>
-        <p>一个非常适合IT团队的在线API文档、技术文档工具</p>
+        <p>{$Think.lang.section_description1}</p>
         <br>
         <br>
         <p>
         <p>
-            <a class="btn   btn-large " href="http://www.showdoc.cc/demo" target="_blank">示例</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-            <a class="btn  btn-large" href="http://www.showdoc.cc/help" target="_blank" >帮助&nbsp;</i></a>
+            <a class="btn   btn-large " href="{$demo_url}" target="_blank">{$Think.lang.demo}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+            <a class="btn  btn-large" href="{$help_url}" target="_blank" >{$Think.lang.help}&nbsp;</i></a>
         </p>
         </p>
     </div>
     </div>
     <div class="section">
     <div class="section">
-        <h1>API文档</h1>
+        <h1>{$Think.lang.section_title2}</h1>
         <br>
         <br>
-        <p> APP、web前端与服务器常用API来进行交互</p><p>用ShowDoc可以非常方便快速地编写出美观的API文档</p>
+        <p> {$Think.lang.section_description2}</p>
         <br>
         <br>
     </div>
     </div>
     <div class="section">
     <div class="section">
-        <h1>数据字典</h1>
+        <h1>{$Think.lang.section_title3}</h1>
         <br>
         <br>
-        <p>好的数据字典可以很方便地向别人描述你的数据库结构<br>
-            <p>用ShowDoc可以编辑出美观的数字字典</p>
+        <p>{$Think.lang.section_description3}</p>
         <br>
         <br>
     </div>
     </div>
     <div class="section">
     <div class="section">
-        <h1>说明文档</h1>
+        <h1>{$Think.lang.section_title4}</h1>
         <br>
         <br>
-        <p>你完全可以使用 ShowDoc来编写一些工具的说明书<br>也可以编写一些技术规范说明文档以供团队查阅</p>
+        <p>{$Think.lang.section_description4}</p>
         <br>
         <br>
     </div>
     </div>
 
 
     <div class="section">
     <div class="section">
-        <h1>团队协作</h1>
+        <h1>{$Think.lang.section_title5}</h1>
         <br>
         <br>
-        <p>团队权限管理机制让团队良好地协同编写文档</p>
+        <p>{$Think.lang.section_description5}</p>
         <br>
         <br>
     </div>
     </div>
 
 
     <div class="section">
     <div class="section">
-        <h1>免费开源</h1>
+        <h1>{$Think.lang.section_title6}</h1>
         <br>
         <br>
-        <p>ShowDoc提供免费开源的版本<br>你可以选择将ShowDoc部署到你的服务器</p>
+        <p>{$Think.lang.section_description6}</p>
         <br>
         <br>
     </div>
     </div>
 
 
     <div class="section">
     <div class="section">
-        <h1>在线托管</h1>
+        <h1>{$Think.lang.section_title7}</h1>
         <br>
         <br>
-        <p> www.showdoc.cc 提供安全稳定的在线文档托管服务<br></p><p>你可以放心地选择托管你的文档数据在云端</p>
+        <p>{$Think.lang.section_description7}</p>
         <br>
         <br>
     </div>
     </div>
     <div class="section">
     <div class="section">
         <h1></h1>
         <h1></h1>
         <br>
         <br>
-        <p>超过2000+互联网团队正在使用ShowDoc</p>
+        <p>{$Think.lang.section_description8}</p>
         <br>
         <br>
         <p>
         <p>
-            <a class="btn   btn-large " href="http://www.showdoc.cc/home/user/register" target="_blank">立即体验</a>
+            <a class="btn   btn-large " href="{:U('Home/User/register')}">{$Think.lang.section_title8}</a>
         </p>
         </p>
     </div>
     </div>
 </div>
 </div>