Ken il y a 1 semaine
Parent
commit
b6718a1250
4 fichiers modifiés avec 50 ajouts et 10 suppressions
  1. 22 10
      app/Services/LotteryImageService.php
  2. 9 0
      lang/en/messages.php
  3. 10 0
      lang/vi/messages.php
  4. 9 0
      lang/zh/messages.php

+ 22 - 10
app/Services/LotteryImageService.php

@@ -79,13 +79,25 @@ class LotteryImageService
         }
 
         $time = now()->format('Y-m-d H:i:s');
-
+        $lang = App::getLocale();
+        $group_language = Config::where('field', 'group_language')->first()->val;
+        App::setLocale($group_language);
+        $Canada28LotteryResults = lang("加拿大28开奖记录");
+        $recentLotteryResults = lang("最近开奖记录");
+        $th1 = lang("回合");
+        $th2 = lang("结果");
+        $th3 = lang("组合");
+        $th4 = lang("极值");
+        $th5 = lang("尾数");
+        $createdTime = lang("生成时间");
+        $dataForReferenceOnly = lang("数据仅供参考");
+        App::setLocale($lang);
         return <<<HTML
 <!DOCTYPE html>
 <html>
 <head>
 <meta charset="UTF-8">
-<title>加拿大28开奖记录</title>
+<title>{$Canada28LotteryResults}</title>
 <style>
 body {
     font-family: "Microsoft YaHei", Arial, sans-serif;
@@ -143,17 +155,17 @@ body {
 <body>
 <div class="container">
     <div class="header">
-        <h1>加拿大28开奖记录</h1>
-        <div class="subtitle">最近开奖记录</div>
+        <h1>{$Canada28LotteryResults}</h1>
+        <div class="subtitle">{$recentLotteryResults}</div>
     </div>
     <table class="results-table">
         <thead>
             <tr>
-                <th>回合</th>
-                <th>结果</th>
-                <th>组合</th>
-                <th>极值</th>
-                <th>尾数</th>
+                <th>{$th1}</th>
+                <th>{$th2}</th>
+                <th>{$th3}</th>
+                <th>{$th4}</th>
+                <th>{$th5}</th>
             </tr>
         </thead>
         <tbody>
@@ -161,7 +173,7 @@ body {
         </tbody>
     </table>
     <div class="footer">
-        生成时间: {$time} | 数据仅供参考
+        {$createdTime}: {$time} | {$dataForReferenceOnly}
     </div>
 </div>
 </body>

+ 9 - 0
lang/en/messages.php

@@ -299,5 +299,14 @@ return [
     "期投注统计" => "Issue Betting Statistics",
     "总投" => "Total Bet",
     "期开奖结果" => "Result of the Draw",
+    "加拿大28开奖记录" => "Canada 28 lottery results",
+    "最近开奖记录" => "Recent lottery results",
+    "回合" => "Round",
+    "结果" => "Result",
+    "组合" => "Combination",
+    "极值" => "Extremum",
+    "尾数" => "Last digit",
+    "生成时间" => "Created time",
+    "数据仅供参考" => "Data for reference only",
 
     ];

+ 10 - 0
lang/vi/messages.php

@@ -299,6 +299,16 @@ return [
     "期投注统计" => "Thống kê cược kỳ",
     "总投" => "Tổng cược",
     "期开奖结果" => "Kết quả quay số",
+    "加拿大28开奖记录" => "Kết quả xổ số Canada 28",
+    "最近开奖记录" => "Kết quả xổ số gần đây",
+    "回合" => "Vòng",
+    "结果" => "Kết quả",
+    "组合" => "Sự kết hợp",
+    "极值" => "Giá trị cực trị",
+    "尾数" => "Chữ số cuối cùng",
+    "生成时间" => "Thời gian tạo",
+    "数据仅供参考" => "Dữ liệu chỉ để tham khảo",
+
 
 
 ];

+ 9 - 0
lang/zh/messages.php

@@ -299,5 +299,14 @@ return [
     "期投注统计" => "期投注统计",
     "总投" => "总投",
     "期开奖结果" => "期开奖结果",
+    "加拿大28开奖记录" => "加拿大28开奖记录",
+    "最近开奖记录" => "最近开奖记录",
+    "回合" => "回合",
+    "结果" => "结果",
+    "组合" => "组合",
+    "极值" => "极值",
+    "尾数" => "尾数",
+    "生成时间" => "生成时间",
+    "数据仅供参考" => "数据仅供参考",
 
 ];