Parcourir la source

多语言multi-language #26

Bhikkhu-Kosalla il y a 5 ans
Parent
commit
3ee6965a6d

+ 7 - 4
app/course/course.php

@@ -42,7 +42,10 @@ echo " > ";
 echo $course_info["title"];
 echo "</div>";
 echo '<div class="summary"  style="padding-bottom:5px;">'.$course_info["subtitle"].'</div>';
-echo '<div class="summary"  style=""><button>关注</button><button>报名</button><button>分享</button></div>';
+echo '<div class="summary"  style="">';
+echo '<button>'.$_local->gui->watch.'</button>';
+echo '<button>'.$_local->gui->sign_up.'</button>';
+echo '<button>'.$_local->gui->share.'</button></div>';
 echo "</div>";
 echo '</div>';
 
@@ -50,12 +53,12 @@ echo "<div  class='index_inner'>";
 
 echo '<div class="card" style="margin:1em;padding:10px;">';
     echo '<div class="title">';
-    echo '简介';
+    echo $_local->gui->introduction;
     echo '</div>';
     echo '<div id="course_summary" class="detail">';
     echo '</div>';
     echo '<div class="title">';
-    echo '参考资料';
+    echo $_local->gui->attachment;
     echo '</div>';    
     echo '<div id="course_attachment"  class="detail">';
     echo '</div>';   
@@ -163,7 +166,7 @@ $.get("../course/lesson_list.php",
         if(m>0){
             sdt +=(dt % 60)+"分钟";
         }
-        html+= "<div >持续时间:"+sdt+"</div>";        
+        html+= "<div >"+gLocal.gui.duration+":"+sdt+"</div>";        
         let now = new Date(); 
 
         let lesson_time="";

+ 2 - 2
app/course/index.php

@@ -52,8 +52,8 @@ include "../pcdl/html_head.php";
     
 	<div class="index_list_categories">
 		<div class="title_bar">
-			<span class="title h3">老师</span>	
-			<span class="title_more"><a href="../course">更多</a></span>
+			<span class="title h3"><?php echo $_local->gui->speaker ?></span>	
+			<span class="title_more"><a href="../course"><?php echo $_local->gui->more ?></a></span>
 		</div>
 		<div class="content">
 			<div id="course_list_new" class="content_inner">

+ 3 - 3
app/course/lesson.js

@@ -70,13 +70,13 @@ function lesson_show(id) {
         let dt = lesson["duration"] / 60;
         let sdt = "";
         if (dt > 59) {
-          sdt += Math.floor(dt / 60) + "小时";
+          sdt += Math.floor(dt / 60) + gLocal.gui.h;
         }
         let m = dt % 60;
         if (m > 0) {
-          sdt += (dt % 60) + "分钟";
+          sdt += (dt % 60) + gLocal.gui.mins;
         }
-        html += "<div >持续时间:" + sdt + "</div>";
+        html += "<div >" + gLocal.gui.duration + ":" + sdt + "</div>";
         let now = new Date();
 
         let lesson_time = "";

+ 5 - 3
app/course/list_new.php

@@ -18,7 +18,7 @@ foreach($Fetch as $row){
     echo '<div class="pd-10">';
     echo '<div class="title" style="padding-bottom:5px;font-size:110%;font-weight:600;"><a href="../course/course.php?id='.$row["id"].'">'.$row["title"].'</a></div>';
     echo '<div class="summary"  style="padding-bottom:5px;color: #ad4b00;">'.$row["subtitle"].'</div>';
-    echo '<div class="author"  style="padding-bottom:5px;margin-bottom:0.4em;">主讲:';
+    echo '<div class="author"  style="padding-bottom:5px;margin-bottom:0.4em;">{$_local->gui->speaker}:';
     echo '<a href="../uhome/course.php?userid='.$row['teacher'].'">';
     echo ucenter_getA($row["teacher"]);
     echo '</a>';
@@ -26,8 +26,10 @@ foreach($Fetch as $row){
     echo '<div class="summary"  style="padding-bottom:5px;height: 4.5em;line-height: 1.5em;overflow-y: hidden;">'.$row["summary"].'</div>';
     echo '</div>';
     echo '<div class="pd-10" style="display:flex;justify-content: space-between;">';
-    echo '<button><svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg></button><span id="num_like">3</span>';
-    echo '<button><svg t="1600445467402" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4462" width="32" height="32"><path d="M604.37 488.16a93.87 93.87 0 1 1-93.92-93.88 94 94 0 0 1 93.92 93.88z" fill="silver" p-id="4463"></path><path d="M510.5 179c-246 0-445.39 227.26-445.39 318.12 0 113.65 199.43 318.17 445.39 318.17s445.39-204.52 445.39-318.17C955.89 406.26 756.46 179 510.5 179z m0 477.33c-92.68 0-168.07-75.44-168.07-168.17S417.77 320 510.45 320s168.17 75.42 168.17 168.13-75.44 168.2-168.17 168.2z" fill="silver" p-id="4464"></path></svg></button><span id="num_subscribe">23</span>';
+    echo '<button><svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg></button>';
+    echo '<span id="num_like">3</span>';
+    echo '<button><svg t="1600445467402" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4462" width="32" height="32"><path d="M604.37 488.16a93.87 93.87 0 1 1-93.92-93.88 94 94 0 0 1 93.92 93.88z" fill="silver" p-id="4463"></path><path d="M510.5 179c-246 0-445.39 227.26-445.39 318.12 0 113.65 199.43 318.17 445.39 318.17s445.39-204.52 445.39-318.17C955.89 406.26 756.46 179 510.5 179z m0 477.33c-92.68 0-168.07-75.44-168.07-168.17S417.77 320 510.45 320s168.17 75.42 168.17 168.13-75.44 168.2-168.17 168.2z" fill="silver" p-id="4464"></path></svg></button>';
+    echo '<span id="num_subscribe">23</span>';
     echo '</div>';
     
     echo '</div>';

+ 13 - 13
app/course/my_course_edit.php

@@ -27,7 +27,7 @@ $course_info = $Fetch[0];
 
 
 echo '<div>';
-echo '<a href="../course/my_course_index.php?course='.$course_info["id"].'">'.$course_info["title"].'</a> > > 修改';
+echo '<a href="../course/my_course_index.php?course='.$course_info["id"].'">'.$course_info["title"].'</a> > > '.$_local->gui->modify;
 echo '</div>';
 
 echo '<div></div>';
@@ -44,20 +44,20 @@ echo '<div id="userfilelist">';
 
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'老师'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->speaker.'</div>';
     echo '<div id="teacher_id" style="flex:8;"></div>';
     echo '<input id="form_teacher" type="hidden" name="teacher" value="'.$course_info["teacher"].'" />';
     echo '</div>'; 
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'语言'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->language_select.'</div>';
     echo '<div id="teacher_id" style="flex:8;">';
     echo '<input  type="input" name="lang" value="'.$course_info["lang"].'" />';
     echo '</div>';
     echo '</div>'; 
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'标题'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->title.'</div>';
     echo '<div style="flex:8;">';
     echo '<input type="input" id="form_title"  name = "title" value="'.$course_info["title"].'" />';
     echo '<span id = "error_form_title" ></span>';
@@ -66,29 +66,29 @@ echo '<div id="userfilelist">';
     echo '</div>';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'副标题'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->sub_title.'</div>';
     echo '<div style="flex:8;"><input type="input" name = "subtitle" value="'.$course_info["subtitle"].'" /></div>';
     echo '</div>';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'简介'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->introduction.'</div>';
     echo '<div style="flex:8;"><textarea name="summary" style="height:6em;">'.$course_info["summary"].'</textarea></div>';
     echo '</div>';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'标签'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->tag.'</div>';
     echo '<div style="flex:8;"><input type="input" name = "tag" value="'.$course_info["tag"].'" /></div>';
     echo '</div>';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'附件链接'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->attachment.'</div>';
     echo '<div style="flex:8;"><input type="input" name = "attachment" value="'.$course_info["attachment"].'" /></div>';
     echo '</div>';
 
 echo '</div>';
 ?>
 
-<input type="submit" />
+<input type="submit" value="<?php echo $_local->gui->submit ?>"/>
 </form>
 </div>
 
@@ -98,19 +98,19 @@ echo '</div>';
 
 ?>
 </div>
-<div>创建时间
+<div><?php echo $_local->gui->created_time ?>
 <?php
     echo strftime("%b-%d-%Y",$course_info["create_time"]/1000);
 ?>
 </div>
-<div>修改时间
+<div><?php echo $_local->gui->modified_time ?>
 <?php
     echo strftime("%b-%d-%Y",$course_info["modify_time"]/1000);
 ?>
 </div>
-<div>点击:</div>
+<div><?php echo $_local->gui->num_of_hit ?>:</div>
 <div><svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg></div>
-<div>收藏:</div>
+<div><?php echo $_local->gui->favorite ?>:</div>
 
 </div>
 

+ 1 - 1
app/course/my_course_list.php

@@ -48,7 +48,7 @@ foreach($Fetch as $row){
     echo '<div class="title" style="padding-bottom:5px;"><a href="../course/my_course_index.php?course='.$row["id"].'">'.$row["title"].'</a></div>';
     echo '<div class="summary"  style="padding-bottom:5px;">'.$row["subtitle"].'</div>';
     echo '<div class="summary"  style="padding-bottom:5px;">'.$row["summary"].'</div>';
-    echo '<div class="author"  style="padding-bottom:5px;">主讲:'.ucenter_getA($row["teacher"]).'</div>';
+    echo '<div class="author"  style="padding-bottom:5px;">'.$_local->gui->speaker.':'.ucenter_getA($row["teacher"]).'</div>';
     echo '</div>';
     
     echo '</div>';

+ 11 - 11
app/course/my_course_new.php

@@ -5,7 +5,7 @@ require_once "../public/_pdo.php";
 require_once '../media/function.php';
 
 echo '<div>';
-echo '新建课程';
+echo $_local->gui->create_course;
 echo '</div>';
 
 echo '<div></div>';
@@ -19,28 +19,28 @@ echo '</div>';
 <div id="userfilelist">
 
     <div style="display:flex;">
-    <div style="flex:2;">标题</div>
+    <div style="flex:2;"><?php echo $_local->gui->title ?></div>
     <div style="flex:8;">
     <div style="text-align: right;color:gray;">0/32</div>
-    <input type="input" name="title" value="" placeholder="标题" />
+    <input type="input" name="title" value="" placeholder="<?php echo $_local->gui->title ?>" />
     </div>
     </div>
 
     <div style="display:none;">
-    <div style="flex:2;">副标题</div>
+    <div style="flex:2;"><?php echo $_local->gui->sub_title ?></div>
     <div style="flex:8;">
         <div style="text-align: right;color:gray;">0/32</div>
-        <input type="input" name="subtitle" value="" placeholder="副标题" />
+        <input type="input" name="subtitle" value="" placeholder="<?php echo $_local->gui->sub_title ?>" />
     </div>
     </div>
 
     <div style="display:flex;">
-    <div style="flex:2;">简介</div>
+    <div style="flex:2;"><?php echo $_local->gui->introduction ?></div>
     <div style="flex:8;"><textarea name = "summary" style="height:6em;"></textarea></div>
     </div>
 
     <div style="display:flex;">
-    <div style="flex:2;">老师</div>
+    <div style="flex:2;"><?php echo $_local->gui->speaker ?></div>
     <div   style="flex:8;">
         <div id="teacher_id"></div>
         <input id="form_teacher" type="hidden" name="teacher" value="" />
@@ -48,27 +48,27 @@ echo '</div>';
     </div> 
 
     <div style="display:flex;">
-    <div style="flex:2;">语言</div>
+    <div style="flex:2;"><?php echo $_local->gui->language_select ?></div>
     <div   style="flex:8;">
         <span >课程信息语言<input type="hidden" name="lang" value="" /></span>
     </div>
     </div> 
 
     <div style="display:flex;">
-    <div style="flex:2;">标签</div>
+    <div style="flex:2;"><?php echo $_local->gui->tag ?></div>
     <div   style="flex:8;">
         <input type="input" name="tag" value="" />
     </div>
     </div> 
 
     <div style="display:flex;">
-    <div style="flex:2;">附件链接</div>
+    <div style="flex:2;"><?php echo $_local->gui->attachment ?></div>
     <div style="flex:8;"><input type="input" name = "attachment" value="" /></div>
     </div>
 </div>
 
 
-<input type="submit" value="新建课程" />
+<input type="submit" value="<?php echo $_local->gui->create_course ?>" />
 </form>
 
 <script>

+ 22 - 18
app/course/my_lesson_edit.php

@@ -70,7 +70,7 @@ echo '<input type="hidden" name="op" value="update" />';
 echo '<div id="userfilelist">';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'标题'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->title.'</div>';
     echo '<div style="flex:8;">';
     echo '<input type="input" id="form_title"  name = "title" value="'.$lesson_info["title"].'" />';
     echo '<span id = "error_form_title" ></span>';
@@ -79,33 +79,37 @@ echo '<div id="userfilelist">';
     echo '</div>';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'副标题'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->sub_title.'</div>';
     echo '<div style="flex:8;"><input type="input" name = "subtitle" value="'.$lesson_info["subtitle"].'" /></div>';
     echo '</div>';
+
+    echo '<div style="display:flex;">';
+    echo '<div style="flex:2;">'.$_local->gui->introduction.'</div>';
+    echo '<div style="flex:8;"><textarea name="summary" style="height:6em;">'.$lesson_info["summary"].'</textarea></div>';
+    echo '</div>';
+
+    echo '<div style="display:flex;">';
+    echo '<div style="flex:2;">'.$_local->gui->introduction.'</div>';
+    echo '<div style="flex:8;">';
     $strDate = date("Y-m-d",$lesson_info["date"]/1000);
     $strTime = date("H:i",$lesson_info["date"]/1000);
     $strDuration = date("H:i",$lesson_info["duration"]);
-    echo 'Date: <input type="date" name="lesson_date" value="'.$strDate.'"/>';
-    echo 'Time: <input type="time" name="lesson_time" value="'.$strTime.'"/>';
-    echo 'Duration: <input type="time" name="duration" value="'.$strDuration.'"/>';
+    echo $_local->gui->date.':<input type="date" name="lesson_date" value="'.$strDate.'"/>';
+    echo $_local->gui->time.':<input type="time" name="lesson_time" value="'.$strTime.'"/>';
+    echo $_local->gui->duration.':<input type="time" name="duration" value="'.$strDuration.'"/>';
+    echo '</div></div>';
 
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'直播'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->notice_live.'</div>';
     echo '<div style="flex:8;"><textarea name="live" style="height:6em;">'.$lesson_info["live"].'</textarea></div>';
     echo '</div>';
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'录播'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->record_replay.'</div>';
     echo '<div style="flex:8;"><textarea name="replay" style="height:6em;">'.$lesson_info["replay"].'</textarea></div>';
     echo '</div>';
 
-
-    echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'简介'.'</div>';
-    echo '<div style="flex:8;"><textarea name="summary" style="height:6em;">'.$lesson_info["summary"].'</textarea></div>';
-    echo '</div>';
-
     echo '<div style="display:flex;">';
-    echo '<div style="flex:2;">'.'老师'.'</div>';
+    echo '<div style="flex:2;">'.$_local->gui->speaker.'</div>';
     echo '<div id="teacher_id" style="flex:8;"></div>';
     echo '<input id="form_teacher" type="hidden" name="teacher" value="'.$lesson_info["teacher"].'" />';
     echo '</div>'; 
@@ -124,19 +128,19 @@ echo '</div>';
     echo $lesson_info["link"];
 ?>
 </div>
-<div>创建时间
+<div><?php echo $_local->gui->created_time ?>
 <?php
     echo strftime("%b-%d-%Y",$lesson_info["create_time"]/1000);
 ?>
 </div>
-<div>修改时间
+<div><?php echo $_local->gui->modified_time ?>
 <?php
     echo strftime("%b-%d-%Y",$lesson_info["modify_time"]/1000);
 ?>
 </div>
-<div>点击:</div>
+<div><?php echo $_local->gui->num_of_hit ?>:</div>
 <div><svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg></div>
-<div>收藏:</div>
+<div><?php echo $_local->gui->favorite ?>:</div>
 
 </div>
 

+ 13 - 13
app/course/my_lesson_list.php

@@ -22,7 +22,7 @@ if(count($Fetch)==0)
 $course_info = $Fetch[0];
 
 echo '<div>';
-echo '<a href="../course/my_course_index.php">全部课程</a> > '.$course_info["title"];
+echo '<a href="../course/my_course_index.php">'.$_local->gui->all_courses.'</a> > '.$course_info["title"];
 echo '</div>';
 
 ?>
@@ -53,21 +53,21 @@ echo '</div>';
 
 <?php
     echo '<div><div>';
-    echo "<span style='padding-right:5px;'>开课:".strftime("%b-%d-%Y",$course_info["create_time"]/1000)."</span>";
-    echo "<span style='padding:5px;'>最新:".strftime("%b-%d-%Y",$course_info["modify_time"]/1000)."</span>";
-    echo "<span style='padding:5px;'>视频数量:{$course_info["lesson_num"]}</span>";
-    echo "<span style='padding:5px;'>播放:100</span>";
+    echo "<span style='padding-right:5px;'>".$_local->gui->course_begin.":".strftime("%b-%d-%Y",$course_info["create_time"]/1000)."</span>";
+    echo "<span style='padding:5px;'>".$_local->gui->recent_update.":".strftime("%b-%d-%Y",$course_info["modify_time"]/1000)."</span>";
+    echo "<span style='padding:5px;'>".$_local->gui->num_of_lesson.":{$course_info["lesson_num"]}</span>";
+    echo "<span style='padding:5px;'>".$_local->gui->num_of_played.":100</span>";
     echo "<span style='padding:5px;'>".'<svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg>';
     echo "10"."</span>";
-    echo "<span style='padding:5px;'>订阅:20</span>";
+    echo "<span style='padding:5px;'>".$_local->gui->signed_up.":20</span>";
     echo '</div>';
 
     echo '<div style="padding-margin:5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
     overflow: hidden;">';
-    echo '简介:'.$course_info["summary"];
+    echo $_local->gui->introduction.':'.$course_info["summary"];
     echo '</div>';
     echo '<div>';
-    echo '教师:'.ucenter_getA($course_info["teacher"]);
+    echo $_local->gui->speaker.':'.ucenter_getA($course_info["teacher"]);
     echo '</div></div>';
 ?>
 <div><a href="../course/my_course_index.php?course=<?php echo $course_info["id"];?>&op=edit">
@@ -103,7 +103,7 @@ foreach($fAllLesson as $row){
     echo '<div class="summary"  style="padding-bottom:5px;">'.$row["subtitle"].'</div>';
     echo '<div class="summary"  style="padding-margin:5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
     overflow: hidden;">'.$row["summary"].'</div>';
-    echo '<div class="author"  style="padding-bottom:5px;">主讲:'.ucenter_getA($row["teacher"]).'</div>';
+    echo '<div class="author"  style="padding-bottom:5px;">'.$_local->gui->speaker.':'.ucenter_getA($row["teacher"]).'</div>';
     echo '</div>';    
 
     echo '</div>';
@@ -121,19 +121,19 @@ echo '</div>';
             echo $course_info["cover"];
         ?>
         </div>
-        <div>创建时间
+        <div><?php echo $_local->gui->created_time ?>
         <?php
             echo strftime("%b-%d-%Y",$course_info["create_time"]/1000);
         ?>
         </div>
-        <div>修改时间
+        <div><?php echo $_local->gui->modified_time ?>
         <?php
             echo strftime("%b-%d-%Y",$course_info["modify_time"]/1000);
         ?>
         </div>
-        <div>点击:</div>
+        <div><?php echo $_local->gui->num_of_hit ?>:</div>
         <div><svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg></div>
-        <div>收藏:</div>
+        <div><?php echo $_local->gui->favorite ?>:</div>
 
     </div>
 

+ 17 - 17
app/course/my_lesson_new.php

@@ -16,7 +16,7 @@ if(count($Fetch)==0)
 $course_info = $Fetch[0];
 
 echo '<div>';
-echo '<a href="../course/my_course_index.php?course='.$course_info["id"].'">'.$course_info["title"]."</a> > 新建课";
+echo '<a href="../course/my_course_index.php?course='.$course_info["id"].'">'.$course_info["title"]."</a> > {$_local->gui->new_lesson}";
 echo '</div>';
 
 echo '<div></div>';
@@ -33,28 +33,28 @@ echo '</div>';
 <div id="userfilelist">
 
     <div style="display:flex;">
-    <div style="flex:2;">标题</div>
+    <div style="flex:2;"><?php echo $_local->gui->title ?></div>
     <div style="flex:8;">
     <div style="text-align: right;color:gray;">0/32</div>
-    <input type="input" name="title" value="" placeholder="标题" />
+    <input type="input" name="title" value="" placeholder="<?php echo $_local->gui->title ?>" />
     </div>
     </div>
 
     <div style="display:none;">
-    <div style="flex:2;">副标题</div>
+    <div style="flex:2;"><?php echo $_local->gui->sub_title ?></div>
     <div style="flex:8;">
         <div style="text-align: right;color:gray;">0/32</div>
-        <input type="input" name="subtitle" value="" placeholder="副标题" />
+        <input type="input" name="subtitle" value="" placeholder="<?php echo $_local->gui->sub_title ?>" />
     </div>
     </div>
 
     <div style="display:flex;">
-    <div style="flex:2;">简介</div>
+    <div style="flex:2;"><?php echo $_local->gui->introduction ?></div>
     <div style="flex:8;"><textarea name="summary" style="height:6em;"></textarea></div>
     </div>
 
     <div style="display:flex;">
-    <div style="flex:2;">老师</div>
+    <div style="flex:2;"><?php echo $_local->gui->speaker ?></div>
     <div   style="flex:8;">
         <div id="teacher_id"><?php echo ucenter_getA($course_info["teacher"]); ?></div>
         <input id="form_teacher" type="hidden" name="teacher" value="<?php echo $course_info["teacher"] ?>" />
@@ -62,24 +62,24 @@ echo '</div>';
     </div> 
 
     <div style="display:flex;">
-        <div style="flex:2;">直播信息</div>
+        <div style="flex:2;"><?php echo $_local->gui->notice_live ?></div>
         <div style="flex:8;"><textarea  name="live"  style="height:6em;"></textarea></div>
     </div>
     <div style="display:flex;">
-        <div style="flex:2;">课程时间</div>
+        <div style="flex:2;"><?php echo $_local->gui->time_arrange ?></div>
         <div style="flex:8;">
-    日期: <input type="date" name="lesson_date" value=""/>
-    时间: <input type="time" name="lesson_time" value="08:00"/>
-   课程持续时间: <input type="time" name="duration" value="01:00"/>
+        <?php echo $_local->gui->date ?>:<input type="date" name="lesson_date" value=""/>
+        <?php echo $_local->gui->time ?>:<input type="time" name="lesson_time" value="08:00"/>
+        <?php echo $_local->gui->duration ?>: <input type="time" name="duration" value="01:00"/>
         </div>
     </div>
     <div style="display:flex;">
-    <div style="flex:2;">录播信息</div>
+    <div style="flex:2;"><?php echo $_local->gui->record_replay ?></div>
     <div style="flex:8;"><textarea name="replay" style="height:6em;"></textarea></div>
     </div>
 
     <div style="display:flex;">
-    <div style="flex:2;">语言</div>
+    <div style="flex:2;"><?php echo $_local->gui->language_select ?></div>
     <div   style="flex:8;">
         <span >课程信息语言<input type="hidden" name="lang" value="" /></span>
         <span >课程语言<input type="hidden" name="speech_lang" value="" /></span>
@@ -89,14 +89,14 @@ echo '</div>';
 
 
     <div style="display:flex;">
-    <div style="flex:2;">标签</div>
+    <div style="flex:2;"><?php echo $_local->gui->tag ?></div>
     <div   style="flex:8;">
         <input type="input" name="tag" value="" />
     </div>
     </div> 
 
     <div style="display:flex;">
-    <div style="flex:2;">附件</div>
+    <div style="flex:2;"><?php echo $_local->gui->attachment ?></div>
     <div   style="flex:8;">
         <input type="input" name="attachment" value="" />
     </div>
@@ -104,7 +104,7 @@ echo '</div>';
 </div>
 
 
-<input type="submit" />
+<input type="submit" value="<?php echo $_local->gui->submit ?>">
 </form>
 
 <script>

+ 7 - 6
app/pcdl/reader.php

@@ -1000,24 +1000,25 @@ function render_sent($sent_data,$sn,$display_mode,$sent_count,$class=""){
 	<div id="new_comm_shell" style="display:none;">
 		<div id="new_comm_div">
 		<textarea id="new_comm_text"></textarea>
-		<button onclick="new_comm_submit()">提交</button><button onclick="new_comm_cancel()">取消</button>
+		<button onclick="new_comm_submit()"><?php echo $_local->gui->submit;?></button>
+		<button onclick="new_comm_cancel()"><?php echo $_local->gui->cancel;?></button>
 		</div>
 	</div>
 	
 	<div id="dighest_edit_div" class="full_screen_window">
 		<div class="win_caption">
-		<div><button onclick="dighest_edit_cancle()">取消</button></div>
-		<div><button onclick="dighest_edit_submit()">提交</button></div>
+		<div><button onclick="dighest_edit_cancle()"><?php echo $_local->gui->cancel;?></button></div>
+		<div><button onclick="dighest_edit_submit()"><?php echo $_local->gui->submit;?></button></div>
 		</div>
 		<div id="dighest_edit_body" class="win_body">
 			<div>
-				标题:<input id="dighest_edit_title" />
+				<?php echo $_local->gui->title;?>:<input id="dighest_edit_title" />
 			</div>
 			<div>
-				简介:<textarea id="dighest_edit_summary"></textarea>
+				<?php echo $_local->gui->introduction;?>:<textarea id="dighest_edit_summary"></textarea>
 			</div>
 			<div>
-				标签:<input id="dighest_edit_taget" />
+			<?php echo $_local->gui->tag;?>:<input id="dighest_edit_taget" />
 			</div>
 			<div id="dighest_text_preview">
 			</div>

+ 22 - 0
app/public/lang/default.json

@@ -489,6 +489,28 @@
 		"prp": "present participle",
 		"fpp": "Future Passive Participle",
 		"new_lesson": "Add a new lesson",
+		"sub_title": "subtitle",
+		"introduction": "introduction",
+		"speaker": "speaker",
+		"notice_live": "notice of live broadcast",
+		"record_replay": "record & replay",
+		"time_arrange": "time arrangement",
+		"duration": "duration",
+		"attachment": "attachment",
+		"submit": "submit",
+		"create_course": "create course",
+		"created_time": "created time",
+		"modified_time": "modified time",
+		"num_of_hit": "num of hits",
+		"all_courses": "all courses",
+		"num_of_played": "Video Views",
+		"recent_update": "recent update",
+		"course_begin": "course starting time",
+		"num_of_lesson": "num of lesson periods",
+		"signed_up": "signed up",
+		"sign_up": "sign up",
+		"watch": "watch",
+		"watched": "watched",
 		"": ""
 	},
 	"grammastr": [

+ 22 - 0
app/public/lang/en.json

@@ -488,6 +488,28 @@
 		"prp": "present participle",
 		"fpp": "Future Passive Participle",
 		"new_lesson": "Add a new lesson",
+		"sub_title": "subtitle",
+		"introduction": "introduction",
+		"speaker": "speaker",
+		"notice_live": "notice of live broadcast",
+		"record_replay": "record & replay",
+		"time_arrange": "time arrangement",
+		"duration": "duration",
+		"attachment": "attachment",
+		"submit": "submit",
+		"create_course": "create course",
+		"created_time": "created time",
+		"modified_time": "modified time",
+		"num_of_hit": "num of hits",
+		"all_courses": "all courses",
+		"num_of_played": "Video Views",
+		"recent_update": "recent update",
+		"course_begin": "course starting time",
+		"num_of_lesson": "num of lesson periods",
+		"signed_up": "signed up",
+		"sign_up": "sign up",
+		"watch": "watch",
+		"watched": "watched",
 		"": ""
 	},
 	"grammastr": [

+ 22 - 0
app/public/lang/my.json

@@ -488,6 +488,28 @@
 		"prp": "present participle",
 		"fpp": "Future Passive Participle",
 		"new_lesson": "Add a new lesson",
+		"sub_title": "subtitle",
+		"introduction": "introduction",
+		"speaker": "speaker",
+		"notice_live": "notice of live broadcast",
+		"record_replay": "record & replay",
+		"time_arrange": "time arrangement",
+		"duration": "duration",
+		"attachment": "attachment",
+		"submit": "submit",
+		"create_course": "create course",
+		"created_time": "created time",
+		"modified_time": "modified time",
+		"num_of_hit": "num of hits",
+		"all_courses": "all courses",
+		"num_of_played": "Video Views",
+		"recent_update": "recent update",
+		"course_begin": "course starting time",
+		"num_of_lesson": "num of lesson periods",
+		"signed_up": "signed up",
+		"sign_up": "sign up",
+		"watch": "watch",
+		"watched": "watched",
 		"": "",
 		"": ""
 	},

+ 22 - 0
app/public/lang/si.json

@@ -493,6 +493,28 @@
 		"prp": "present participle",
 		"fpp": "Future Passive Participle",
 		"new_lesson": "Add a new lesson",
+		"sub_title": "subtitle",
+		"introduction": "introduction",
+		"speaker": "speaker",
+		"notice_live": "notice of live broadcast",
+		"record_replay": "record & replay",
+		"time_arrange": "time arrangement",
+		"duration": "duration",
+		"attachment": "attachment",
+		"submit": "submit",
+		"create_course": "create course",
+		"created_time": "created time",
+		"modified_time": "modified time",
+		"num_of_hit": "num of hits",
+		"all_courses": "all courses",
+		"num_of_played": "Video Views",
+		"recent_update": "recent update",
+		"course_begin": "course starting time",
+		"num_of_lesson": "num of lesson periods",
+		"signed_up": "signed up",
+		"sign_up": "sign up",
+		"watch": "watch",
+		"watched": "watched",
 		"": "",
 		"": ""
 	},

+ 22 - 0
app/public/lang/zh-cn.json

@@ -490,6 +490,28 @@
 		"prp": "现在分词",
 		"fpp": "未来被动分词",
 		"new_lesson": "添加课堂",
+		"sub_title": "副标题",
+		"introduction": "简介",
+		"speaker": "主讲人",
+		"notice_live": "直播预告",
+		"record_replay": "录播回放",
+		"time_arrange": "时间安排",
+		"duration": "持续时间",
+		"attachment": "附件",
+		"submit": "提交",
+		"create_course": "新建课程",
+		"created_time": "创建时间",
+		"modified_time": "修改时间",
+		"num_of_hit": "点击数",
+		"all_courses": "全部课程",
+		"num_of_played": "播放数",
+		"recent_update": "最新更新",
+		"course_begin": "开课时间",
+		"num_of_lesson": "课节数",
+		"signed_up": "报名数",
+		"sign_up": "报名",
+		"watch": "关注",
+		"watched": "关注数",
 		"": ""
 	},
 	"grammastr": [

+ 22 - 0
app/public/lang/zh-tw.json

@@ -490,6 +490,28 @@
 		"prp": "現在分詞",
 		"fpp": "未來被動分詞",
 		"new_lesson": "新增課堂",
+		"sub_title": "副標題",
+		"introduction": "簡介",
+		"speaker": "主講人",
+		"notice_live": "直播預告",
+		"record_replay": "錄播回放",
+		"time_arrange": "時間安排",
+		"duration": "持續時間",
+		"attachment": "附件",
+		"submit": "提交",
+		"create_course": "新建課程",
+		"created_time": "建立時間",
+		"modified_time": "修改時間",
+		"num_of_hit": "點選數",
+		"all_courses": "全部課程",
+		"num_of_played": "播放數",
+		"recent_update": "最新更新",
+		"course_begin": "開課時間",
+		"num_of_lesson": "課節數",
+		"signed_up": "報名數",
+		"sign_up": "報名",
+		"watch": "關注",
+		"watched": "關注數",
 		"": ""
 	},
 	"grammastr": [