@@ -333,27 +333,12 @@ cli_print_target_features (Target_t *target, const char *input_target_name)
333333void
334334cli_print_target_maintain_info (Target_t * target , const char * input_target_name )
335335{
336- if (target -> authors && target -> authors_n > 0 )
337- {
338- char * msg = ENGLISH ? "Recipe Original Authors: " : "食谱原始作者: " ;
339- printf ("%s" , bdblue (msg ));
340- for (size_t i = 0 ; i < target -> authors_n ; i ++ )
341- {
342- if (i > 0 ) printf (", " );
343- printf ("%s <%s>" ,
344- target -> authors [i ].name ? target -> authors [i ].name : "Unknown" ,
345- target -> authors [
i ].
email ?
target -> authors [
i ].
email :
"[email protected] " );
346- }
347- printf ("\n" );
348- }
349-
350336 if (target -> created_on )
351337 {
352- char * msg = ENGLISH ? "Recipe Created On: " : "食谱创建时间 : " ;
338+ char * msg = ENGLISH ? "Recipe Created On: " : "食谱诞生时间 : " ;
353339 printf ("%s%s\n" , bdblue (msg ), target -> created_on );
354340 }
355341
356-
357342 {
358343 char * msg = ENGLISH ? "Current Chef: " : "当前主厨: " ;
359344 if (target -> chef )
@@ -371,16 +356,16 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
371356
372357
373358 {
374- char * msg = ENGLISH ? "Current Cooks: " : "当前副厨 : " ;
359+ char * msg = ENGLISH ? "Current Cooks: " : "主要厨师 : " ;
375360 if (target -> cooks && target -> cooks_n > 0 )
376361 {
377362 printf ("%s" , bdblue (msg ));
378363 for (size_t i = 0 ; i < target -> cooks_n ; i ++ )
379364 {
380365 if (i > 0 ) printf (", " );
381366 printf ("%s <%s>" ,
382- target -> cooks [i ]. name ? target -> cooks [i ]. name : "Unknown" ,
383- target -> cooks [
i ]
. email ?
target -> cooks [
i ]
. email :
"[email protected] " );
367+ target -> cooks [i ]-> name ? target -> cooks [i ]-> name : "Unknown" ,
368+ target -> cooks [
i ]
-> email ?
target -> cooks [
i ]
-> email :
"[email protected] " );
384369 }
385370 printf ("\n" );
386371 }
@@ -400,8 +385,8 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
400385 {
401386 if (i > 0 ) printf (", " );
402387 printf ("%s <%s>" ,
403- target -> contributors [i ]. name ? target -> contributors [i ]. name : "Unknown" ,
404- target -> contributors [
i ]
. email ?
target -> contributors [
i ]
. email :
"[email protected] " );
388+ target -> contributors [i ]-> name ? target -> contributors [i ]-> name : "Unknown" ,
389+ target -> contributors [
i ]
-> email ?
target -> contributors [
i ]
-> email :
"[email protected] " );
405390 }
406391 printf ("\n" );
407392 }
0 commit comments