• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision022779d29f425b53b5217c3d8f9fe8ad26bca36b (tree)
Time2019-01-08 13:32:13
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 メッセージ整理。 / Refactor messages.

Change Summary

Incremental Difference

--- a/src/store.c
+++ b/src/store.c
@@ -2459,30 +2459,15 @@ static void display_store(void)
24592459 if (cur_store_num == STORE_HOME)
24602460 {
24612461 /* Put the owner name */
2462-#ifdef JP
2463- put_str("我が家", 3, 31);
2464-#else
2465- put_str("Your Home", 3, 30);
2466-#endif
2467-
2462+ put_str(_("我が家", "Your Home"), 3, 31);
24682463
24692464 /* Label the item descriptions */
2470-#ifdef JP
2471- put_str("アイテムの一覧", 5, 4);
2472-#else
2473- put_str("Item Description", 5, 3);
2474-#endif
2475-
2465+ put_str(_("アイテムの一覧", "Item Description"), 5, 4);
24762466
24772467 /* If showing weights, show label */
24782468 if (show_weights)
24792469 {
2480-#ifdef JP
2481- put_str("重さ", 5, 72);
2482-#else
2483- put_str("Weight", 5, 70);
2484-#endif
2485-
2470+ put_str(_(" 重さ", "Weight"), 5, 70);
24862471 }
24872472 }
24882473
@@ -2490,30 +2475,15 @@ static void display_store(void)
24902475 else if (cur_store_num == STORE_MUSEUM)
24912476 {
24922477 /* Put the owner name */
2493-#ifdef JP
2494- put_str("博物館", 3, 31);
2495-#else
2496- put_str("Museum", 3, 30);
2497-#endif
2498-
2478+ put_str(_("博物館", "Museum"), 3, 31);
24992479
25002480 /* Label the item descriptions */
2501-#ifdef JP
2502- put_str("アイテムの一覧", 5, 4);
2503-#else
2504- put_str("Item Description", 5, 3);
2505-#endif
2506-
2481+ put_str(_("アイテムの一覧", "Item Description"), 5, 4);
25072482
25082483 /* If showing weights, show label */
25092484 if (show_weights)
25102485 {
2511-#ifdef JP
2512- put_str("重さ", 5, 72);
2513-#else
2514- put_str("Weight", 5, 70);
2515-#endif
2516-
2486+ put_str(_(" 重さ", "Weight"), 5, 70);
25172487 }
25182488 }
25192489
@@ -2533,31 +2503,17 @@ static void display_store(void)
25332503 prt(buf, 3, 50);
25342504
25352505 /* Label the item descriptions */
2536-#ifdef JP
2537- put_str("商品の一覧", 5, 7);
2538-#else
2539- put_str("Item Description", 5, 3);
2540-#endif
2506+ put_str(_("商品の一覧", "Item Description"), 5, 5);
25412507
25422508
25432509 /* If showing weights, show label */
25442510 if (show_weights)
25452511 {
2546-#ifdef JP
2547- put_str("重さ", 5, 62);
2548-#else
2549- put_str("Weight", 5, 60);
2550-#endif
2551-
2512+ put_str(_(" 重さ", "Weight"), 5, 60);
25522513 }
25532514
25542515 /* Label the asking price (in stores) */
2555-#ifdef JP
2556- put_str("価格", 5, 73);
2557-#else
2558- put_str("Price", 5, 72);
2559-#endif
2560-
2516+ put_str(_(" 価格", "Price"), 5, 72);
25612517 }
25622518
25632519 /* Display the current gold */
@@ -2580,9 +2536,9 @@ static void display_store(void)
25802536 */
25812537 static int get_stock(COMMAND_CODE *com_val, cptr pmt, int i, int j)
25822538 {
2583- char command;
2584- char out_val[160];
2585- char lo, hi;
2539+ char command;
2540+ char out_val[160];
2541+ char lo, hi;
25862542
25872543 /* Get the item index */
25882544 if (repeat_pull(com_val))
@@ -2598,7 +2554,6 @@ static int get_stock(COMMAND_CODE *com_val, cptr pmt, int i, int j)
25982554 /* Paranoia */
25992555 msg_print(NULL);
26002556
2601-
26022557 /* Assume failure */
26032558 *com_val = (-1);
26042559
Show on old repository browser