Browse Source

add curr translation

visuddhinanda 1 tháng trước cách đây
mục cha
commit
f036d8b3b4

+ 3 - 1
api-v12/app/Console/Commands/ExportDiscussion.php

@@ -11,6 +11,7 @@ class ExportDiscussion extends Command
 {
 {
     /**
     /**
      * The name and signature of the console command.
      * The name and signature of the console command.
+     * php artisan export:discussion
      */
      */
     protected $signature = 'export:discussion {editor : The editor UID to export discussions for}';
     protected $signature = 'export:discussion {editor : The editor UID to export discussions for}';
 
 
@@ -165,8 +166,9 @@ class ExportDiscussion extends Command
                 : trim($translation->content ?? '(无译文内容)');
                 : trim($translation->content ?? '(无译文内容)');
 
 
             $this->writeLine("# {$paliContent}\n");
             $this->writeLine("# {$paliContent}\n");
-            $this->writeLine("  - **译文**: {$translationAtTime}");
+            $this->writeLine("  - **历史译文**: {$translationAtTime}");
             $this->writeLine("  - **评论**: " . trim($discussion->title ?? '') . trim($discussion->content ?? ''));
             $this->writeLine("  - **评论**: " . trim($discussion->title ?? '') . trim($discussion->content ?? ''));
+            $this->writeLine("  - **当前译文**: {$translation->content}");
             $this->writeLine('');
             $this->writeLine('');
         }
         }