• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisione24c54df37379493c2d704650c1dae7a734369b0 (tree)
Time2019-02-23 19:18:49
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 patron.c 内のメッセージ整理。 / Refactor messages in patron.c.

Change Summary

Incremental Difference

--- a/src/patron.c
+++ b/src/patron.c
@@ -323,14 +323,7 @@ void gain_level_reward(int chosen_reward)
323323 break;
324324
325325 case REW_GOOD_OBJ:
326-#ifdef JP
327- msg_format("%sの声がささやいた:",
328- chaos_patrons[p_ptr->chaos_patron]);
329-#else
330- msg_format("The voice of %s whispers:",
331- chaos_patrons[p_ptr->chaos_patron]);
332-#endif
333-
326+ msg_format(_("%sの声がささやいた:", "The voice of %s whispers:"), chaos_patrons[p_ptr->chaos_patron]);
334327 msg_print(_("「我が与えし物を賢明に使うべし。」", "'Use my gift wisely.'"));
335328
336329 acquirement(p_ptr->y, p_ptr->x, 1, FALSE, FALSE, FALSE);
@@ -467,12 +460,7 @@ void gain_level_reward(int chosen_reward)
467460 break;
468461
469462 case REW_TY_CURSE:
470-#ifdef JP
471- msg_format("%sの声が轟き渡った:", chaos_patrons[p_ptr->chaos_patron]);
472-#else
473- msg_format("The voice of %s thunders:", chaos_patrons[p_ptr->chaos_patron]);
474-#endif
475-
463+ msg_format(_("%sの声が轟き渡った:", "The voice of %s thunders:"), chaos_patrons[p_ptr->chaos_patron]);
476464 msg_print(_("「下僕よ、汝傲慢なり。」", "'Thou art growing arrogant, mortal.'"));
477465
478466 (void)activate_ty_curse(FALSE, &count);
@@ -503,14 +491,7 @@ void gain_level_reward(int chosen_reward)
503491
504492
505493 case REW_DO_HAVOC:
506-#ifdef JP
507- msg_format("%sの声が響き渡った:",
508- chaos_patrons[p_ptr->chaos_patron]);
509-#else
510- msg_format("The voice of %s booms out:",
511- chaos_patrons[p_ptr->chaos_patron]);
512-#endif
513-
494+ msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
514495 msg_print(_("「死と破壊こそ我が喜びなり!」", "'Death and destruction! This pleaseth me!'"));
515496
516497 call_chaos();
@@ -519,14 +500,7 @@ void gain_level_reward(int chosen_reward)
519500
520501
521502 case REW_GAIN_ABL:
522-#ifdef JP
523- msg_format("%sの声が鳴り響いた:",
524- chaos_patrons[p_ptr->chaos_patron]);
525-#else
526- msg_format("The voice of %s rings out:",
527- chaos_patrons[p_ptr->chaos_patron]);
528-#endif
529-
503+ msg_format(_("%sの声が鳴り響いた:", "The voice of %s rings out:"), chaos_patrons[p_ptr->chaos_patron]);
530504 msg_print(_("「留まるのだ、下僕よ。余が汝の肉体を鍛えん。」", "'Stay, mortal, and let me mold thee.'"));
531505
532506 if (one_in_(3) && !(chaos_stats[p_ptr->chaos_patron] < 0))
@@ -538,14 +512,7 @@ void gain_level_reward(int chosen_reward)
538512
539513
540514 case REW_LOSE_ABL:
541-#ifdef JP
542- msg_format("%sの声が響き渡った:",
543- chaos_patrons[p_ptr->chaos_patron]);
544-#else
545- msg_format("The voice of %s booms out:",
546- chaos_patrons[p_ptr->chaos_patron]);
547-#endif
548-
515+ msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
549516 msg_print(_("「下僕よ、余は汝に飽みたり。」", "'I grow tired of thee, mortal.'"));
550517
551518 if (one_in_(3) && !(chaos_stats[p_ptr->chaos_patron] < 0))
@@ -558,14 +525,7 @@ void gain_level_reward(int chosen_reward)
558525
559526 case REW_RUIN_ABL:
560527
561-#ifdef JP
562- msg_format("%sの声が轟き渡った:",
563- chaos_patrons[p_ptr->chaos_patron]);
564-#else
565- msg_format("The voice of %s thunders:",
566- chaos_patrons[p_ptr->chaos_patron]);
567-#endif
568-
528+ msg_format(_("%sの声が轟き渡った:", "The voice of %s thunders:"), chaos_patrons[p_ptr->chaos_patron]);
569529 msg_print(_("「汝、謙虚たることを学ぶべし!」", "'Thou needst a lesson in humility, mortal!'"));
570530 msg_print(_("あなたは以前より弱くなった!", "You feel less powerful!"));
571531
@@ -643,6 +603,7 @@ void gain_level_reward(int chosen_reward)
643603 (void)curse_armor();
644604 reward = format(_("%sが破壊された。", "destroying %s"), o_name);
645605 break;
606+
646607 case REW_PISS_OFF:
647608
648609 msg_format(_("%sの声がささやいた:", "The voice of %s whispers:"), chaos_patrons[p_ptr->chaos_patron]);
@@ -787,9 +748,7 @@ void gain_level_reward(int chosen_reward)
787748 break;
788749
789750 default:
790- msg_format(_("%sの声がどもった:", "The voice of %s stammers:"),
791-
792- chaos_patrons[p_ptr->chaos_patron]);
751+ msg_format(_("%sの声がどもった:", "The voice of %s stammers:"), chaos_patrons[p_ptr->chaos_patron]);
793752 msg_format(_("「あー、あー、答えは %d/%d。質問は何?」", "'Uh... uh... the answer's %d/%d, what's the question?'"), type, effect);
794753
795754 }
Show on old repository browser