Browse Source

语言包

lizhen_gitee 1 year ago
parent
commit
124bb3459f
2 changed files with 9 additions and 2 deletions
  1. 7 1
      application/api/controller/Trylesson.php
  2. 2 1
      application/extra/site.php

+ 7 - 1
application/api/controller/Trylesson.php

@@ -32,7 +32,13 @@ class Trylesson extends Api
 
         $info['map_image']             = localpath_to_netpath(config('site.index_bottom_image'));
         $info['public_store_address']  = config('site.public_store_address');
-        $info['trylesson_cancel_text'] = config('site.trylesson_cancel_text');
+
+        $trylesson_cancel_text = config('site.trylesson_cancel_text');
+        if($this->lang == 'en'){
+            $trylesson_cancel_text = config('site.trylesson_cancel_text_en');
+        }
+        $info['trylesson_cancel_text'] = $trylesson_cancel_text;
+
 
         $this->success(1,$info);
     }

+ 2 - 1
application/extra/site.php

@@ -59,8 +59,9 @@ return array (
   'index_middle_image' => '/uploads/20231205/6aaf2860e60265e15066bb5700951630.png',
   'index_bottom_image' => '/uploads/20231205/974dd1f257c84e07317cbc13f9d69872.png',
   'public_store_address' => 'Link@896,896 Dunearn Road,Singapore',
-  'trylesson_cancel_text' => 'For any cancellations less than 24hours before the session,your membership packgae will automatically be deducted in the syetem and for those who pay Per Session,your payment will not be refunded.',
   'map_longitude' => '103.8014002',
   'map_latitude' => '1.2763445',
   'default_avatar' => '/uploads/20231228/e0658ff50cff476b2b9eb021966de43c.png',
+  'trylesson_cancel_text_en' => 'For any cancellations less than 24hours before the session,your membership packgae will automatically be deducted in the syetem and for those who pay Per Session,your payment will not be refunded.',
+  'trylesson_cancel_text' => '对于在开课前24小时内取消的任何活动,您的会员套餐将自动在系统中扣除,对于那些在线支付的人,您的付款将不会退还。',
 );