OSDN Git Service

[Refactor] #38824 get_item() を choose_object() に置換中。 / Replacing get_item() to choose...
[hengband/hengband.git] / src / object1.c
index 8dd3870..844849b 100644 (file)
@@ -29,9 +29,9 @@
  * flag.  This is useful for switching "graphics" on/off.\n
  *\n
  * The features, objects, and monsters, should all be encoded in the\n
- * relevant "font.pref" and/or "graf.prf" files.  XXX XXX XXX\n
+ * relevant "font.pref" and/or "graf.prf" files.  \n
  *\n
- * The "prefs" parameter is no longer meaningful.  XXX XXX XXX\n
+ * The "prefs" parameter is no longer meaningful.  \n
  */
 void reset_visuals(void)
 {
@@ -107,7 +107,7 @@ void reset_visuals(void)
  * @param flgs フラグ情報を受け取る配列
  * @return なし
  */
-void object_flags(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
+void object_flags(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE])
 {
        object_kind *k_ptr = &k_info[o_ptr->k_idx];
        int i;
@@ -216,7 +216,7 @@ void object_flags(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
  * @param flgs フラグ情報を受け取る配列
  * @return なし
  */
-void object_flags_known(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
+void object_flags_known(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE])
 {
        bool spoil = FALSE;
        int i;
@@ -344,7 +344,7 @@ void object_flags_known(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
 static cptr item_activation_dragon_breath(object_type *o_ptr)
 {
        static char desc[256];
-       u32b flgs[TR_FLAG_SIZE]; /* for resistance flags */
+       BIT_FLAGS flgs[TR_FLAG_SIZE]; /* for resistance flags */
        int i, n = 0;
 
        object_flags(o_ptr, flgs);
@@ -473,17 +473,13 @@ static cptr item_activation_aux(object_type *o_ptr)
  */
 cptr item_activation(object_type *o_ptr)
 {
-       u32b flgs[TR_FLAG_SIZE];
+       BIT_FLAGS flgs[TR_FLAG_SIZE];
 
        /* Extract the flags */
        object_flags(o_ptr, flgs);
 
        /* Require activation ability */
-#ifdef JP
-       if (!(have_flag(flgs, TR_ACTIVATE))) return ("なし");
-#else
-       if (!(have_flag(flgs, TR_ACTIVATE))) return ("nothing");
-#endif
+       if (!(have_flag(flgs, TR_ACTIVATE))) return (_("なし", "nothing"));
 
        /* Get an explain of an activation */
        if (activation_index(o_ptr))
@@ -494,28 +490,15 @@ cptr item_activation(object_type *o_ptr)
        /* Special items */
        if (o_ptr->tval == TV_WHISTLE)
        {
-#ifdef JP
-return "ペット呼び寄せ : 100+d100ターン毎";
-#else
-               return "call pet every 100+d100 turns";
-#endif
+               return _("ペット呼び寄せ : 100+d100ターン毎", "call pet every 100+d100 turns");
        }
 
        if (o_ptr->tval == TV_CAPTURE)
        {
-#ifdef JP
-return "モンスターを捕える、又は解放する。";
-#else
-               return "captures or releases a monster.";
-#endif
+               return _("モンスターを捕える、又は解放する。", "captures or releases a monster.");
        }
 
-       /* Oops */
-#ifdef JP
-       return "何も起きない";
-#else
-       return "Nothing";
-#endif
+       return _("何も起きない", "Nothing");
 }
 
 
@@ -526,17 +509,17 @@ return "モンスターを捕える、又は解放する。";
  * @param mode 表示オプション
  * @return 特筆すべき情報が一つでもあった場合TRUE、一つもなく表示がキャンセルされた場合FALSEを返す。
  */
-bool screen_object(object_type *o_ptr, u32b mode)
+bool screen_object(object_type *o_ptr, BIT_FLAGS mode)
 {
-       int                     i = 0, j, k;
+       int i = 0, j, k;
 
-       u32b flgs[TR_FLAG_SIZE];
+       BIT_FLAGS flgs[TR_FLAG_SIZE];
 
        char temp[70 * 20];
        cptr            info[128];
-       char o_name[MAX_NLEN];
+       GAME_TEXT o_name[MAX_NLEN];
        int wid, hgt;
-       int rad;
+       POSITION rad;
        char desc[256];
 
        int trivial_info = 0;
@@ -562,112 +545,57 @@ bool screen_object(object_type *o_ptr, u32b mode)
        /* Mega-Hack -- describe activation */
        if (have_flag(flgs, TR_ACTIVATE))
        {
-#ifdef JP
-info[i++] = "始動したときの効果...";
-#else
-               info[i++] = "It can be activated for...";
-#endif
-
+               info[i++] = _("始動したときの効果...", "It can be activated for...");
                info[i++] = item_activation(o_ptr);
-#ifdef JP
-info[i++] = "...ただし装備していなければならない。";
-#else
-               info[i++] = "...if it is being worn.";
-#endif
-
+               info[i++] = _("...ただし装備していなければならない。", "...if it is being worn.");
        }
 
        /* Figurines, a hack */
        if (o_ptr->tval == TV_FIGURINE)
        {
-#ifdef JP
-info[i++] = "それは投げた時ペットに変化する。";
-#else
-               info[i++] = "It will transform into a pet when thrown.";
-#endif
-
+               info[i++] = _("それは投げた時ペットに変化する。", "It will transform into a pet when thrown.");
        }
 
        /* Figurines, a hack */
        if (o_ptr->name1 == ART_STONEMASK)
        {
-#ifdef JP
-info[i++] = "それを装備した者は吸血鬼になる。";
-#else
-               info[i++] = "It makes you turn into a vampire permanently.";
-#endif
-
+               info[i++] = _("それを装備した者は吸血鬼になる。", "It makes you turn into a vampire permanently.");
        }
 
        if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_DOKUBARI))
        {
-#ifdef JP
-info[i++] = "それは相手を一撃で倒すことがある。";
-#else
-               info[i++] = "It will attempt to kill a monster instantly.";
-#endif
-
+               info[i++] = _("それは相手を一撃で倒すことがある。", "It will attempt to kill a monster instantly.");
        }
 
        if ((o_ptr->tval == TV_POLEARM) && (o_ptr->sval == SV_DEATH_SCYTHE))
        {
-#ifdef JP
-info[i++] = "それは自分自身に攻撃が返ってくることがある。";
-#else
-               info[i++] = "It causes you to strike yourself sometimes.";
-#endif
-
-#ifdef JP
-info[i++] = "それは無敵のバリアを切り裂く。";
-#else
-               info[i++] = "It always penetrates invulnerability barriers.";
-#endif
+               info[i++] = _("それは自分自身に攻撃が返ってくることがある。", "It causes you to strike yourself sometimes.");
+               info[i++] = _("それは無敵のバリアを切り裂く。", "It always penetrates invulnerability barriers.");
        }
 
        if (o_ptr->name2 == EGO_2WEAPON)
        {
-#ifdef JP
-info[i++] = "それは二刀流での命中率を向上させる。";
-#else
-               info[i++] = "It affects your ability to hit when you are wielding two weapons.";
-#endif
-
+               info[i++] = _("それは二刀流での命中率を向上させる。", "It affects your ability to hit when you are wielding two weapons.");
        }
 
        if (have_flag(flgs, TR_EASY_SPELL))
        {
-#ifdef JP
-info[i++] = "それは魔法の難易度を下げる。";
-#else
-               info[i++] = "It affects your ability to cast spells.";
-#endif
+               info[i++] = _("それは魔法の難易度を下げる。", "It affects your ability to cast spells.");
        }
 
        if (o_ptr->name2 == EGO_AMU_FOOL)
        {
-#ifdef JP
-info[i++] = "それは魔法の難易度を上げる。";
-#else
-               info[i++] = "It interferes with casting spells.";
-#endif
+               info[i++] = _("それは魔法の難易度を上げる。", "It interferes with casting spells.");
        }
 
        if (o_ptr->name2 == EGO_RING_THROW)
        {
-#ifdef JP
-info[i++] = "それは物を強く投げることを可能にする。";
-#else
-               info[i++] = "It provides great strength when you throw an item.";
-#endif
+               info[i++] = _("それは物を強く投げることを可能にする。", "It provides great strength when you throw an item.");
        }
 
        if (o_ptr->name2 == EGO_AMU_NAIVETY)
        {
-#ifdef JP
-info[i++] = "それは魔法抵抗力を下げる。";
-#else
-               info[i++] = "It decreases your magic resistance.";
-#endif
+               info[i++] = _("それは魔法抵抗力を下げる。", "It decreases your magic resistance.");
        }
 
        if (o_ptr->tval == TV_STATUE)
@@ -675,23 +603,11 @@ info[i++] = "それは魔法抵抗力を下げる。";
                monster_race *r_ptr = &r_info[o_ptr->pval];
 
                if (o_ptr->pval == MON_BULLGATES)
-#ifdef JP
-                       info[i++] = "それは部屋に飾ると恥ずかしい。";
-#else
-                       info[i++] = "It is shameful.";
-#endif
+                       info[i++] = _("それは部屋に飾ると恥ずかしい。", "It is shameful.");
                else if ( r_ptr->flags2 & (RF2_ELDRITCH_HORROR))
-#ifdef JP
-                       info[i++] = "それは部屋に飾ると恐い。";
-#else
-               info[i++] = "It is fearful.";
-#endif
+                       info[i++] = _("それは部屋に飾ると恐い。", "It is fearful.");
                else
-#ifdef JP
-                       info[i++] = "それは部屋に飾ると楽しい。";
-#else
-               info[i++] = "It is cheerful.";
-#endif
+                       info[i++] = _("それは部屋に飾ると楽しい。", "It is cheerful.");
        }
        
        /* Hack -- describe lite's */
@@ -710,12 +626,12 @@ info[i++] = "それは魔法抵抗力を下げる。";
                
        if (have_flag(flgs, TR_LITE_FUEL) && o_ptr->name2 != EGO_LITE_DARKNESS)
        {
-               if(rad > 0) sprintf(desc, _("それは燃料補給によって明かり(半径 %d)を授ける。", "It provides light (radius %d) when fueled."), rad);        
+               if(rad > 0) sprintf(desc, _("それは燃料補給によって明かり(半径 %d)を授ける。", "It provides light (radius %d) when fueled."), (int)rad);   
        }
        else
        {
-               if(rad > 0) sprintf(desc, _("それは永遠なる明かり(半径 %d)を授ける。", "It provides light (radius %d) forever."), rad);        
-               if(rad < 0) sprintf(desc, _("それは明かりの半径を狭める(半径に-%d)。", "It decreases radius of light source by %d."), -rad);
+               if(rad > 0) sprintf(desc, _("それは永遠なる明かり(半径 %d)を授ける。", "It provides light (radius %d) forever."), (int)rad);
+               if(rad < 0) sprintf(desc, _("それは明かりの半径を狭める(半径に-%d)。", "It decreases radius of light source by %d."), (int)-rad);
        }
        
        if(rad != 0) info[i++] = desc;
@@ -731,691 +647,326 @@ info[i++] = "それは魔法抵抗力を下げる。";
        if (have_flag(flgs, TR_RIDING))
        {
                if ((o_ptr->tval == TV_POLEARM) && ((o_ptr->sval == SV_LANCE) || (o_ptr->sval == SV_HEAVY_LANCE)))
-#ifdef JP
-info[i++] = "それは乗馬中は非常に使いやすい。";
-#else
-                       info[i++] = "It is made for use while riding.";
-#endif
+                       info[i++] = _("それは乗馬中は非常に使いやすい。", "It is made for use while riding.");
                else
                {
-#ifdef JP
-                       info[i++] = "それは乗馬中でも使いやすい。";
-#else
-                       info[i++] = "It is suitable for use while riding.";
-#endif
+                       info[i++] = _("それは乗馬中でも使いやすい。", "It is suitable for use while riding.");
                        /* This information is not important enough */
                        trivial_info++;
                }
        }
        if (have_flag(flgs, TR_STR))
        {
-#ifdef JP
-info[i++] = "それは腕力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your strength.";
-#endif
-
+               info[i++] = _("それは腕力に影響を及ぼす。", "It affects your strength.");
        }
        if (have_flag(flgs, TR_INT))
        {
-#ifdef JP
-info[i++] = "それは知能に影響を及ぼす。";
-#else
-               info[i++] = "It affects your intelligence.";
-#endif
-
+               info[i++] = _("それは知能に影響を及ぼす。", "It affects your intelligence.");
        }
        if (have_flag(flgs, TR_WIS))
        {
-#ifdef JP
-info[i++] = "それは賢さに影響を及ぼす。";
-#else
-               info[i++] = "It affects your wisdom.";
-#endif
-
+               info[i++] = _("それは賢さに影響を及ぼす。", "It affects your wisdom.");
        }
        if (have_flag(flgs, TR_DEX))
        {
-#ifdef JP
-info[i++] = "それは器用さに影響を及ぼす。";
-#else
-               info[i++] = "It affects your dexterity.";
-#endif
-
+               info[i++] = _("それは器用さに影響を及ぼす。", "It affects your dexterity.");
        }
        if (have_flag(flgs, TR_CON))
        {
-#ifdef JP
-info[i++] = "それは耐久力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your constitution.";
-#endif
-
+               info[i++] = _("それは耐久力に影響を及ぼす。", "It affects your constitution.");
        }
        if (have_flag(flgs, TR_CHR))
        {
-#ifdef JP
-info[i++] = "それは魅力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your charisma.";
-#endif
-
+               info[i++] = _("それは魅力に影響を及ぼす。", "It affects your charisma.");
        }
 
        if (have_flag(flgs, TR_MAGIC_MASTERY))
        {
-#ifdef JP
-info[i++] = "それは魔法道具使用能力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your ability to use magic devices.";
-#endif
+               info[i++] = _("それは魔法道具使用能力に影響を及ぼす。", "It affects your ability to use magic devices.");
 
        }
        if (have_flag(flgs, TR_STEALTH))
        {
-#ifdef JP
-info[i++] = "それは隠密行動能力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your stealth.";
-#endif
-
+               info[i++] = _("それは隠密行動能力に影響を及ぼす。", "It affects your stealth.");
        }
        if (have_flag(flgs, TR_SEARCH))
        {
-#ifdef JP
-info[i++] = "それは探索能力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your searching.";
-#endif
-
+               info[i++] = _("それは探索能力に影響を及ぼす。", "It affects your searching.");
        }
        if (have_flag(flgs, TR_INFRA))
        {
-#ifdef JP
-info[i++] = "それは赤外線視力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your infravision.";
-#endif
-
+               info[i++] = _("それは赤外線視力に影響を及ぼす。", "It affects your infravision.");
        }
        if (have_flag(flgs, TR_TUNNEL))
        {
-#ifdef JP
-info[i++] = "それは採掘能力に影響を及ぼす。";
-#else
-               info[i++] = "It affects your ability to tunnel.";
-#endif
-
+               info[i++] = _("それは採掘能力に影響を及ぼす。", "It affects your ability to tunnel.");
        }
        if (have_flag(flgs, TR_SPEED))
        {
-#ifdef JP
-info[i++] = "それはスピードに影響を及ぼす。";
-#else
-               info[i++] = "It affects your speed.";
-#endif
-
+               info[i++] = _("それはスピードに影響を及ぼす。", "It affects your speed.");
        }
        if (have_flag(flgs, TR_BLOWS))
        {
-#ifdef JP
-info[i++] = "それは打撃回数に影響を及ぼす。";
-#else
-               info[i++] = "It affects your attack speed.";
-#endif
-
+               info[i++] = _("それは打撃回数に影響を及ぼす。", "It affects your attack speed.");
        }
 
        if (have_flag(flgs, TR_BRAND_ACID))
        {
-#ifdef JP
-info[i++] = "それは酸によって大きなダメージを与える。";
-#else
-               info[i++] = "It does extra damage from acid.";
-#endif
-
+               info[i++] = _("それは酸によって大きなダメージを与える。", "It does extra damage from acid.");
        }
        if (have_flag(flgs, TR_BRAND_ELEC))
        {
-#ifdef JP
-info[i++] = "それは電撃によって大きなダメージを与える。";
-#else
-               info[i++] = "It does extra damage from electricity.";
-#endif
-
+               info[i++] = _("それは電撃によって大きなダメージを与える。", "It does extra damage from electricity.");
        }
        if (have_flag(flgs, TR_BRAND_FIRE))
        {
-#ifdef JP
-info[i++] = "それは火炎によって大きなダメージを与える。";
-#else
-               info[i++] = "It does extra damage from fire.";
-#endif
-
+               info[i++] = _("それは火炎によって大きなダメージを与える。", "It does extra damage from fire.");
        }
        if (have_flag(flgs, TR_BRAND_COLD))
        {
-#ifdef JP
-info[i++] = "それは冷気によって大きなダメージを与える。";
-#else
-               info[i++] = "It does extra damage from frost.";
-#endif
-
+               info[i++] = _("それは冷気によって大きなダメージを与える。", "It does extra damage from frost.");
        }
 
        if (have_flag(flgs, TR_BRAND_POIS))
        {
-#ifdef JP
-info[i++] = "それは敵を毒する。";
-#else
-               info[i++] = "It poisons your foes.";
-#endif
-
+               info[i++] = _("それは敵を毒する。", "It poisons your foes.");
        }
 
        if (have_flag(flgs, TR_CHAOTIC))
        {
-#ifdef JP
-info[i++] = "それはカオス的な効果を及ぼす。";
-#else
-               info[i++] = "It produces chaotic effects.";
-#endif
-
+               info[i++] = _("それはカオス的な効果を及ぼす。", "It produces chaotic effects.");
        }
 
        if (have_flag(flgs, TR_VAMPIRIC))
        {
-#ifdef JP
-info[i++] = "それは敵から生命力を吸収する。";
-#else
-               info[i++] = "It drains life from your foes.";
-#endif
-
+               info[i++] = _("それは敵から生命力を吸収する。", "It drains life from your foes.");
        }
 
        if (have_flag(flgs, TR_IMPACT))
        {
-#ifdef JP
-info[i++] = "それは地震を起こすことができる。";
-#else
-               info[i++] = "It can cause earthquakes.";
-#endif
-
+               info[i++] = _("それは地震を起こすことができる。", "It can cause earthquakes.");
        }
 
        if (have_flag(flgs, TR_VORPAL))
        {
-#ifdef JP
-info[i++] = "それは非常に切れ味が鋭く敵を切断することができる。";
-#else
-               info[i++] = "It is very sharp and can cut your foes.";
-#endif
-
+               info[i++] = _("それは非常に切れ味が鋭く敵を切断することができる。", "It is very sharp and can cut your foes.");
        }
 
        if (have_flag(flgs, TR_KILL_DRAGON))
        {
-#ifdef JP
-info[i++] = "それはドラゴンにとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of dragons.";
-#endif
-
+               info[i++] = _("それはドラゴンにとっての天敵である。", "It is a great bane of dragons.");
        }
        else if (have_flag(flgs, TR_SLAY_DRAGON))
        {
-#ifdef JP
-info[i++] = "それはドラゴンに対して特に恐るべき力を発揮する。";
-#else
-               info[i++] = "It is especially deadly against dragons.";
-#endif
-
+               info[i++] = _("それはドラゴンに対して特に恐るべき力を発揮する。", "It is especially deadly against dragons.");
        }
 
        if (have_flag(flgs, TR_KILL_ORC))
        {
-#ifdef JP
-info[i++] = "それはオークにとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of orcs.";
-#endif
-
+               info[i++] = _("それはオークにとっての天敵である。", "It is a great bane of orcs.");
        }
        if (have_flag(flgs, TR_SLAY_ORC))
        {
-#ifdef JP
-info[i++] = "それはオークに対して特に恐るべき力を発揮する。";
-#else
-               info[i++] = "It is especially deadly against orcs.";
-#endif
-
+               info[i++] = _("それはオークに対して特に恐るべき力を発揮する。", "It is especially deadly against orcs.");
        }
 
        if (have_flag(flgs, TR_KILL_TROLL))
        {
-#ifdef JP
-info[i++] = "それはトロルにとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of trolls.";
-#endif
-
+               info[i++] = _("それはトロルにとっての天敵である。", "It is a great bane of trolls.");
        }
        if (have_flag(flgs, TR_SLAY_TROLL))
        {
-#ifdef JP
-info[i++] = "それはトロルに対して特に恐るべき力を発揮する。";
-#else
-               info[i++] = "It is especially deadly against trolls.";
-#endif
-
+               info[i++] = _("それはトロルに対して特に恐るべき力を発揮する。", "It is especially deadly against trolls.");
        }
 
        if (have_flag(flgs, TR_KILL_GIANT))
        {
-#ifdef JP
-info[i++] = "それは巨人にとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of giants.";
-#endif
+               info[i++] = _("それは巨人にとっての天敵である。", "It is a great bane of giants.");
        }
        else if (have_flag(flgs, TR_SLAY_GIANT))
        {
-#ifdef JP
-info[i++] = "それはジャイアントに対して特に恐るべき力を発揮する。";
-#else
-               info[i++] = "It is especially deadly against giants.";
-#endif
-
+               info[i++] = _("それはジャイアントに対して特に恐るべき力を発揮する。", "It is especially deadly against giants.");
        }
 
        if (have_flag(flgs, TR_KILL_DEMON))
        {
-#ifdef JP
-info[i++] = "それはデーモンにとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of demons.";
-#endif
-
+               info[i++] = _("それはデーモンにとっての天敵である。", "It is a great bane of demons.");
        }
        if (have_flag(flgs, TR_SLAY_DEMON))
        {
-#ifdef JP
-info[i++] = "それはデーモンに対して聖なる力を発揮する。";
-#else
-               info[i++] = "It strikes at demons with holy wrath.";
-#endif
-
+               info[i++] = _("それはデーモンに対して聖なる力を発揮する。", "It strikes at demons with holy wrath.");
        }
 
        if (have_flag(flgs, TR_KILL_UNDEAD))
        {
-#ifdef JP
-info[i++] = "それはアンデッドにとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of undead.";
-#endif
-
+               info[i++] = _("それはアンデッドにとっての天敵である。", "It is a great bane of undead.");
        }
        if (have_flag(flgs, TR_SLAY_UNDEAD))
        {
-#ifdef JP
-info[i++] = "それはアンデッドに対して聖なる力を発揮する。";
-#else
-               info[i++] = "It strikes at undead with holy wrath.";
-#endif
-
+               info[i++] = _("それはアンデッドに対して聖なる力を発揮する。", "It strikes at undead with holy wrath.");
        }
 
        if (have_flag(flgs, TR_KILL_EVIL))
        {
-#ifdef JP
-info[i++] = "それは邪悪なる存在にとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of evil monsters.";
-#endif
-
+               info[i++] = _("それは邪悪なる存在にとっての天敵である。", "It is a great bane of evil monsters.");
        }
        if (have_flag(flgs, TR_SLAY_EVIL))
        {
-#ifdef JP
-info[i++] = "それは邪悪なる存在に対して聖なる力で攻撃する。";
-#else
-               info[i++] = "It fights against evil with holy fury.";
-#endif
-
+               info[i++] = _("それは邪悪なる存在に対して聖なる力で攻撃する。", "It fights against evil with holy fury.");
        }
 
        if (have_flag(flgs, TR_KILL_ANIMAL))
        {
-#ifdef JP
-info[i++] = "それは自然界の動物にとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of natural creatures.";
-#endif
-
+               info[i++] = _("それは自然界の動物にとっての天敵である。", "It is a great bane of natural creatures.");
        }
        if (have_flag(flgs, TR_SLAY_ANIMAL))
        {
-#ifdef JP
-info[i++] = "それは自然界の動物に対して特に恐るべき力を発揮する。";
-#else
-               info[i++] = "It is especially deadly against natural creatures.";
-#endif
-
+               info[i++] = _("それは自然界の動物に対して特に恐るべき力を発揮する。", "It is especially deadly against natural creatures.");
        }
 
        if (have_flag(flgs, TR_KILL_HUMAN))
        {
-#ifdef JP
-info[i++] = "それは人間にとっての天敵である。";
-#else
-               info[i++] = "It is a great bane of humans.";
-#endif
-
+               info[i++] = _("それは人間にとっての天敵である。", "It is a great bane of humans.");
        }
        if (have_flag(flgs, TR_SLAY_HUMAN))
        {
-#ifdef JP
-info[i++] = "それは人間に対して特に恐るべき力を発揮する。";
-#else
-               info[i++] = "It is especially deadly against humans.";
-#endif
-
+               info[i++] = _("それは人間に対して特に恐るべき力を発揮する。", "It is especially deadly against humans.");
        }
 
        if (have_flag(flgs, TR_FORCE_WEAPON))
        {
-#ifdef JP
-info[i++] = "それは使用者の魔力を使って攻撃する。";
-#else
-               info[i++] = "It powerfully strikes at a monster using your mana.";
-#endif
-
+               info[i++] = _("それは使用者の魔力を使って攻撃する。", "It powerfully strikes at a monster using your mana.");
        }
        if (have_flag(flgs, TR_DEC_MANA))
        {
-#ifdef JP
-info[i++] = "それは魔力の消費を押さえる。";
-#else
-               info[i++] = "It decreases your mana consumption.";
-#endif
-
+               info[i++] = _("それは魔力の消費を押さえる。", "It decreases your mana consumption.");
        }
        if (have_flag(flgs, TR_SUST_STR))
        {
-#ifdef JP
-info[i++] = "それはあなたの腕力を維持する。";
-#else
-               info[i++] = "It sustains your strength.";
-#endif
-
+               info[i++] = _("それはあなたの腕力を維持する。", "It sustains your strength.");
        }
        if (have_flag(flgs, TR_SUST_INT))
        {
-#ifdef JP
-info[i++] = "それはあなたの知能を維持する。";
-#else
-               info[i++] = "It sustains your intelligence.";
-#endif
-
+               info[i++] = _("それはあなたの知能を維持する。", "It sustains your intelligence.");
        }
        if (have_flag(flgs, TR_SUST_WIS))
        {
-#ifdef JP
-info[i++] = "それはあなたの賢さを維持する。";
-#else
-               info[i++] = "It sustains your wisdom.";
-#endif
-
+               info[i++] = _("それはあなたの賢さを維持する。", "It sustains your wisdom.");
        }
        if (have_flag(flgs, TR_SUST_DEX))
        {
-#ifdef JP
-info[i++] = "それはあなたの器用さを維持する。";
-#else
-               info[i++] = "It sustains your dexterity.";
-#endif
-
+               info[i++] = _("それはあなたの器用さを維持する。", "It sustains your dexterity.");
        }
        if (have_flag(flgs, TR_SUST_CON))
        {
-#ifdef JP
-info[i++] = "それはあなたの耐久力を維持する。";
-#else
-               info[i++] = "It sustains your constitution.";
-#endif
-
+               info[i++] = _("それはあなたの耐久力を維持する。", "It sustains your constitution.");
        }
        if (have_flag(flgs, TR_SUST_CHR))
        {
-#ifdef JP
-info[i++] = "それはあなたの魅力を維持する。";
-#else
-               info[i++] = "It sustains your charisma.";
-#endif
-
+               info[i++] = _("それはあなたの魅力を維持する。", "It sustains your charisma.");
        }
 
        if (have_flag(flgs, TR_IM_ACID))
        {
-#ifdef JP
-info[i++] = "それは酸に対する完全な免疫を授ける。";
-#else
-               info[i++] = "It provides immunity to acid.";
-#endif
-
+               info[i++] = _("それは酸に対する完全な免疫を授ける。", "It provides immunity to acid.");
        }
        if (have_flag(flgs, TR_IM_ELEC))
        {
-#ifdef JP
-info[i++] = "それは電撃に対する完全な免疫を授ける。";
-#else
-               info[i++] = "It provides immunity to electricity.";
-#endif
-
+               info[i++] = _("それは電撃に対する完全な免疫を授ける。", "It provides immunity to electricity.");
        }
        if (have_flag(flgs, TR_IM_FIRE))
        {
-#ifdef JP
-info[i++] = "それは火に対する完全な免疫を授ける。";
-#else
-               info[i++] = "It provides immunity to fire.";
-#endif
-
+               info[i++] = _("それは火に対する完全な免疫を授ける。", "It provides immunity to fire.");
        }
        if (have_flag(flgs, TR_IM_COLD))
        {
-#ifdef JP
-info[i++] = "それは寒さに対する完全な免疫を授ける。";
-#else
-               info[i++] = "It provides immunity to cold.";
-#endif
-
+               info[i++] = _("それは寒さに対する完全な免疫を授ける。", "It provides immunity to cold.");
        }
 
        if (have_flag(flgs, TR_THROW))
        {
-#ifdef JP
-info[i++] = "それは敵に投げて大きなダメージを与えることができる。";
-#else
-               info[i++] = "It is perfectly balanced for throwing.";
-#endif
+               info[i++] = _("それは敵に投げて大きなダメージを与えることができる。", "It is perfectly balanced for throwing.");
        }
 
        if (have_flag(flgs, TR_FREE_ACT))
        {
-#ifdef JP
-info[i++] = "それは麻痺に対する完全な免疫を授ける。";
-#else
-               info[i++] = "It provides immunity to paralysis.";
-#endif
-
+               info[i++] = _("それは麻痺に対する完全な免疫を授ける。", "It provides immunity to paralysis.");
        }
        if (have_flag(flgs, TR_HOLD_EXP))
        {
-#ifdef JP
-info[i++] = "それは経験値吸収に対する耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to experience draining.";
-#endif
-
+               info[i++] = _("それは経験値吸収に対する耐性を授ける。", "It provides resistance to experience draining.");
        }
        if (have_flag(flgs, TR_RES_FEAR))
        {
-#ifdef JP
-info[i++] = "それは恐怖への完全な耐性を授ける。";
-#else
-               info[i++] = "It makes you completely fearless.";
-#endif
-
+               info[i++] = _("それは恐怖への完全な耐性を授ける。", "It makes you completely fearless.");
        }
        if (have_flag(flgs, TR_RES_ACID))
        {
-#ifdef JP
-info[i++] = "それは酸への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to acid.";
-#endif
-
+               info[i++] = _("それは酸への耐性を授ける。", "It provides resistance to acid.");
        }
        if (have_flag(flgs, TR_RES_ELEC))
        {
-#ifdef JP
-info[i++] = "それは電撃への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to electricity.";
-#endif
-
+               info[i++] = _("それは電撃への耐性を授ける。", "It provides resistance to electricity.");
        }
        if (have_flag(flgs, TR_RES_FIRE))
        {
-#ifdef JP
-info[i++] = "それは火への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to fire.";
-#endif
-
+               info[i++] = _("それは火への耐性を授ける。", "It provides resistance to fire.");
        }
        if (have_flag(flgs, TR_RES_COLD))
        {
-#ifdef JP
-info[i++] = "それは寒さへの耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to cold.";
-#endif
-
+               info[i++] = _("それは寒さへの耐性を授ける。", "It provides resistance to cold.");
        }
        if (have_flag(flgs, TR_RES_POIS))
        {
-#ifdef JP
-info[i++] = "それは毒への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to poison.";
-#endif
-
+               info[i++] = _("それは毒への耐性を授ける。", "It provides resistance to poison.");
        }
 
        if (have_flag(flgs, TR_RES_LITE))
        {
-#ifdef JP
-info[i++] = "それは閃光への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to light.";
-#endif
-
+               info[i++] = _("それは閃光への耐性を授ける。", "It provides resistance to light.");
        }
        if (have_flag(flgs, TR_RES_DARK))
        {
-#ifdef JP
-info[i++] = "それは暗黒への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to dark.";
-#endif
-
+               info[i++] = _("それは暗黒への耐性を授ける。", "It provides resistance to dark.");
        }
 
        if (have_flag(flgs, TR_RES_BLIND))
        {
-#ifdef JP
-info[i++] = "それは盲目への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to blindness.";
-#endif
-
+               info[i++] = _("それは盲目への耐性を授ける。", "It provides resistance to blindness.");
        }
        if (have_flag(flgs, TR_RES_CONF))
        {
-#ifdef JP
-info[i++] = "それは混乱への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to confusion.";
-#endif
-
+               info[i++] = _("それは混乱への耐性を授ける。", "It provides resistance to confusion.");
        }
        if (have_flag(flgs, TR_RES_SOUND))
        {
-#ifdef JP
-info[i++] = "それは轟音への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to sound.";
-#endif
-
+               info[i++] = _("それは轟音への耐性を授ける。", "It provides resistance to sound.");
        }
        if (have_flag(flgs, TR_RES_SHARDS))
        {
-#ifdef JP
-info[i++] = "それは破片への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to shards.";
-#endif
-
+               info[i++] = _("それは破片への耐性を授ける。", "It provides resistance to shards.");
        }
 
-       if (have_flag(flgs, TR_RES_NETHER))
-       {
-#ifdef JP
-info[i++] = "それは地獄への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to nether.";
-#endif
-
+       if (have_flag(flgs, TR_RES_NETHER))
+       {
+               info[i++] = _("それは地獄への耐性を授ける。", "It provides resistance to nether.");
        }
        if (have_flag(flgs, TR_RES_NEXUS))
        {
-#ifdef JP
-info[i++] = "それは因果混乱への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to nexus.";
-#endif
-
+               info[i++] = _("それは因果混乱への耐性を授ける。", "It provides resistance to nexus.");
        }
        if (have_flag(flgs, TR_RES_CHAOS))
        {
-#ifdef JP
-info[i++] = "それはカオスへの耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to chaos.";
-#endif
-
+               info[i++] = _("それはカオスへの耐性を授ける。", "It provides resistance to chaos.");
        }
        if (have_flag(flgs, TR_RES_DISEN))
        {
-#ifdef JP
-info[i++] = "それは劣化への耐性を授ける。";
-#else
-               info[i++] = "It provides resistance to disenchantment.";
-#endif
-
+               info[i++] = _("それは劣化への耐性を授ける。", "It provides resistance to disenchantment.");
        }
 
        if (have_flag(flgs, TR_LEVITATION))
        {
-#ifdef JP
-info[i++] = "それは宙に浮くことを可能にする。";
-#else
-               info[i++] = "It allows you to levitate.";
-#endif
-
+               info[i++] = _("それは宙に浮くことを可能にする。", "It allows you to levitate.");
        }
                
        if (have_flag(flgs, TR_SEE_INVIS))
@@ -1424,147 +975,67 @@ info[i++] = "それは宙に浮くことを可能にする。";
        }
        if (have_flag(flgs, TR_TELEPATHY))
        {
-#ifdef JP
-info[i++] = "それはテレパシー能力を授ける。";
-#else
-               info[i++] = "It gives telepathic powers.";
-#endif
-
+               info[i++] = _("それはテレパシー能力を授ける。", "It gives telepathic powers.");
        }
        if (have_flag(flgs, TR_ESP_ANIMAL))
        {
-#ifdef JP
-info[i++] = "それは自然界の生物を感知する。";
-#else
-               info[i++] = "It senses natural creatures.";
-#endif
-
+               info[i++] = _("それは自然界の生物を感知する。", "It senses natural creatures.");
        }
        if (have_flag(flgs, TR_ESP_UNDEAD))
        {
-#ifdef JP
-info[i++] = "それはアンデッドを感知する。";
-#else
-               info[i++] = "It senses undead.";
-#endif
-
+               info[i++] = _("それはアンデッドを感知する。", "It senses undead.");
        }
        if (have_flag(flgs, TR_ESP_DEMON))
        {
-#ifdef JP
-info[i++] = "それは悪魔を感知する。";
-#else
-               info[i++] = "It senses demons.";
-#endif
-
+               info[i++] = _("それは悪魔を感知する。", "It senses demons.");
        }
        if (have_flag(flgs, TR_ESP_ORC))
        {
-#ifdef JP
-info[i++] = "それはオークを感知する。";
-#else
-               info[i++] = "It senses orcs.";
-#endif
-
+               info[i++] = _("それはオークを感知する。", "It senses orcs.");
        }
        if (have_flag(flgs, TR_ESP_TROLL))
        {
-#ifdef JP
-info[i++] = "それはトロルを感知する。";
-#else
-               info[i++] = "It senses trolls.";
-#endif
-
+               info[i++] = _("それはトロルを感知する。", "It senses trolls.");
        }
        if (have_flag(flgs, TR_ESP_GIANT))
        {
-#ifdef JP
-info[i++] = "それは巨人を感知する。";
-#else
-               info[i++] = "It senses giants.";
-#endif
-
+               info[i++] = _("それは巨人を感知する。", "It senses giants.");
        }
        if (have_flag(flgs, TR_ESP_DRAGON))
        {
-#ifdef JP
-info[i++] = "それはドラゴンを感知する。";
-#else
-               info[i++] = "It senses dragons.";
-#endif
-
+               info[i++] = _("それはドラゴンを感知する。", "It senses dragons.");
        }
        if (have_flag(flgs, TR_ESP_HUMAN))
        {
-#ifdef JP
-info[i++] = "それは人間を感知する。";
-#else
-               info[i++] = "It senses humans.";
-#endif
-
+               info[i++] = _("それは人間を感知する。", "It senses humans.");
        }
        if (have_flag(flgs, TR_ESP_EVIL))
        {
-#ifdef JP
-info[i++] = "それは邪悪な存在を感知する。";
-#else
-               info[i++] = "It senses evil creatures.";
-#endif
-
+               info[i++] = _("それは邪悪な存在を感知する。", "It senses evil creatures.");
        }
        if (have_flag(flgs, TR_ESP_GOOD))
        {
-#ifdef JP
-info[i++] = "それは善良な存在を感知する。";
-#else
-               info[i++] = "It senses good creatures.";
-#endif
-
+               info[i++] = _("それは善良な存在を感知する。", "It senses good creatures.");
        }
        if (have_flag(flgs, TR_ESP_NONLIVING))
        {
-#ifdef JP
-info[i++] = "それは活動する無生物体を感知する。";
-#else
-               info[i++] = "It senses non-living creatures.";
-#endif
-
+               info[i++] = _("それは活動する無生物体を感知する。", "It senses non-living creatures.");
        }
        if (have_flag(flgs, TR_ESP_UNIQUE))
        {
-#ifdef JP
-info[i++] = "それは特別な強敵を感知する。";
-#else
-               info[i++] = "It senses unique monsters.";
-#endif
-
+               info[i++] = _("それは特別な強敵を感知する。", "It senses unique monsters.");
        }
        if (have_flag(flgs, TR_SLOW_DIGEST))
        {
-#ifdef JP
-info[i++] = "それはあなたの新陳代謝を遅くする。";
-#else
-               info[i++] = "It slows your metabolism.";
-#endif
-
+               info[i++] = _("それはあなたの新陳代謝を遅くする。", "It slows your metabolism.");
        }
        if (have_flag(flgs, TR_REGEN))
        {
-#ifdef JP
-info[i++] = "それは体力回復力を強化する。";
-#else
-               info[i++] = "It speeds your regenerative powers.";
-#endif
-
+               info[i++] = _("それは体力回復力を強化する。", "It speeds your regenerative powers.");
        }
        if (have_flag(flgs, TR_WARNING))
        {
-#ifdef JP
-info[i++] = "それは危険に対して警告を発する。";
-#else
-               info[i++] = "It warns you of danger";
-#endif
-
+               info[i++] = _("それは危険に対して警告を発する。", "It warns you of danger");
        }
        if (have_flag(flgs, TR_REFLECT))
        {
@@ -1580,87 +1051,43 @@ info[i++] = "それは危険に対して警告を発する。";
        }
        if (have_flag(flgs, TR_SH_COLD))
        {
-#ifdef JP
-info[i++] = "それは冷気のバリアを張る。";
-#else
-               info[i++] = "It produces a sheath of coldness.";
-#endif
-
+               info[i++] = _("それは冷気のバリアを張る。", "It produces a sheath of coldness.");
        }
        if (have_flag(flgs, TR_NO_MAGIC))
        {
-#ifdef JP
-info[i++] = "それは反魔法バリアを張る。";
-#else
-               info[i++] = "It produces an anti-magic shell.";
-#endif
-
+               info[i++] = _("それは反魔法バリアを張る。", "It produces an anti-magic shell.");
        }
        if (have_flag(flgs, TR_NO_TELE))
        {
-#ifdef JP
-info[i++] = "それはテレポートを邪魔する。";
-#else
-               info[i++] = "It prevents teleportation.";
-#endif
-
+               info[i++] = _("それはテレポートを邪魔する。", "It prevents teleportation.");
        }
        if (have_flag(flgs, TR_XTRA_MIGHT))
        {
-#ifdef JP
-info[i++] = "それは矢/ボルト/弾をより強力に発射することができる。";
-#else
-               info[i++] = "It fires missiles with extra might.";
-#endif
-
+               info[i++] = _("それは矢/ボルト/弾をより強力に発射することができる。", "It fires missiles with extra might.");
        }
        if (have_flag(flgs, TR_XTRA_SHOTS))
        {
-#ifdef JP
-info[i++] = "それは矢/ボルト/弾を非常に早く発射することができる。";
-#else
-               info[i++] = "It fires missiles excessively fast.";
-#endif
-
+               info[i++] = _("それは矢/ボルト/弾を非常に早く発射することができる。", "It fires missiles excessively fast.");
        }
 
        if (have_flag(flgs, TR_BLESSED))
        {
-#ifdef JP
-info[i++] = "それは神に祝福されている。";
-#else
-               info[i++] = "It has been blessed by the gods.";
-#endif
-
+               info[i++] = _("それは神に祝福されている。", "It has been blessed by the gods.");
        }
 
        if (object_is_cursed(o_ptr))
        {
                if (o_ptr->curse_flags & TRC_PERMA_CURSE)
                {
-#ifdef JP
-info[i++] = "それは永遠の呪いがかけられている。";
-#else
-                       info[i++] = "It is permanently cursed.";
-#endif
-
+                       info[i++] = _("それは永遠の呪いがかけられている。", "It is permanently cursed.");
                }
                else if (o_ptr->curse_flags & TRC_HEAVY_CURSE)
                {
-#ifdef JP
-info[i++] = "それは強力な呪いがかけられている。";
-#else
-                       info[i++] = "It is heavily cursed.";
-#endif
-
+                       info[i++] = _("それは強力な呪いがかけられている。", "It is heavily cursed.");
                }
                else
                {
-#ifdef JP
-info[i++] = "それは呪われている。";
-#else
-                       info[i++] = "It is cursed.";
-#endif
+                       info[i++] = _("それは呪われている。", "It is cursed.");
 
                        /*
                         * It's a trivial infomation since there is
@@ -1752,18 +1179,10 @@ info[i++] = "それは呪われている。";
                        switch (o_ptr->sval)
                        {
                        case SV_RING_LORDLY:
-#ifdef JP
-                               info[i++] = "それは幾つかのランダムな耐性を授ける。";
-#else
-                               info[i++] = "It provides some random resistances.";
-#endif
+                               info[i++] = _("それは幾つかのランダムな耐性を授ける。", "It provides some random resistances.");
                                break;
                        case SV_RING_WARNING:
-#ifdef JP
-                               info[i++] = "それはひとつの低級なESPを授ける事がある。";
-#else
-                               info[i++] = "It may provide a low rank ESP.";
-#endif
+                               info[i++] = _("それはひとつの低級なESPを授ける事がある。", "It may provide a low rank ESP.");
                                break;
                        }
                        break;
@@ -1772,23 +1191,11 @@ info[i++] = "それは呪われている。";
                        switch (o_ptr->sval)
                        {
                        case SV_AMULET_RESISTANCE:
-#ifdef JP
-                               info[i++] = "それは毒への耐性を授ける事がある。";
-#else
-                               info[i++] = "It may provides resistance to poison.";
-#endif
-#ifdef JP
-                               info[i++] = "それはランダムな耐性を授ける事がある。";
-#else
-                               info[i++] = "It may provide a random resistances.";
-#endif
+                               info[i++] = _("それは毒への耐性を授ける事がある。", "It may provides resistance to poison.");
+                               info[i++] = _("それはランダムな耐性を授ける事がある。", "It may provide a random resistances.");
                                break;
                        case SV_AMULET_THE_MAGI:
-#ifdef JP
-                               info[i++] = "それは最大で3つまでの低級なESPを授ける。";
-#else
-                               info[i++] = "It provides up to three low rank ESPs.";
-#endif
+                               info[i++] = _("それは最大で3つまでの低級なESPを授ける。", "It provides up to three low rank ESPs.");
                                break;
                        }
                        break;
@@ -1800,45 +1207,25 @@ info[i++] = "それは呪われている。";
            have_flag(flgs, TR_IGNORE_FIRE) &&
            have_flag(flgs, TR_IGNORE_COLD))
        {
-#ifdef JP
-               info[i++] = "それは酸・電撃・火炎・冷気では傷つかない。";
-#else
-               info[i++] = "It cannot be harmed by the elements.";
-#endif
+               info[i++] = _("それは酸・電撃・火炎・冷気では傷つかない。", "It cannot be harmed by the elements.");
        }
        else
        {
                if (have_flag(flgs, TR_IGNORE_ACID))
                {
-#ifdef JP
-                       info[i++] = "それは酸では傷つかない。";
-#else
-                       info[i++] = "It cannot be harmed by acid.";
-#endif
+                       info[i++] = _("それは酸では傷つかない。", "It cannot be harmed by acid.");
                }
                if (have_flag(flgs, TR_IGNORE_ELEC))
                {
-#ifdef JP
-                       info[i++] = "それは電撃では傷つかない。";
-#else
-                       info[i++] = "It cannot be harmed by electricity.";
-#endif
+                       info[i++] = _("それは電撃では傷つかない。", "It cannot be harmed by electricity.");
                }
                if (have_flag(flgs, TR_IGNORE_FIRE))
                {
-#ifdef JP
-                       info[i++] = "それは火炎では傷つかない。";
-#else
-                       info[i++] = "It cannot be harmed by fire.";
-#endif
+                       info[i++] = _("それは火炎では傷つかない。", "It cannot be harmed by fire.");
                }
                if (have_flag(flgs, TR_IGNORE_COLD))
                {
-#ifdef JP
-                       info[i++] = "それは冷気では傷つかない。";
-#else
-                       info[i++] = "It cannot be harmed by cold.";
-#endif
+                       info[i++] = _("それは冷気では傷つかない。", "It cannot be harmed by cold.");
                }
        }
 
@@ -1846,11 +1233,8 @@ info[i++] = "それは呪われている。";
 
        /* No relevant informations */
        if (i <= trivial_info) return (FALSE);
-
-       /* Save the screen */
        screen_save();
 
-       /* Get size */
        Term_get_size(&wid, &hgt);
 
        /* Display Item name */
@@ -1874,11 +1258,9 @@ info[i++] = "それは呪われている。";
                prt("'", 1, (use_bigtile ? 20 : 19) + namelen);
        }
        else
-#ifdef JP
-prt("     アイテムの能力:", 1, 15);
-#else
-       prt("     Item Attributes:", 1, 15);
-#endif
+       {
+               prt(_("     アイテムの能力:", "     Item Attributes:"), 1, 15);
+       }
 
        /* We will print on top of the map (column 13) */
        for (k = 2, j = 0; j < i; j++)
@@ -1889,26 +1271,16 @@ prt("     アイテムの能力:", 1, 15);
                /* Every 20 entries (lines 2 to 21), start over */
                if ((k == hgt - 2) && (j+1 < i))
                {
-#ifdef JP
-prt("-- 続く --", k, 15);
-#else
-                       prt("-- more --", k, 15);
-#endif
+                       prt(_("-- 続く --", "-- more --"), k, 15);
                        inkey();
                        for (; k > 2; k--) prt("", k, 15);
                }
        }
 
        /* Wait for it */
-#ifdef JP
-prt("[何かキーを押すとゲームに戻ります]", k, 15);
-#else
-       prt("[Press any key to continue]", k, 15);
-#endif
+       prt(_("[何かキーを押すとゲームに戻ります]", "[Press any key to continue]"), k, 15);
 
        inkey();
-
-       /* Restore the screen */
        screen_load();
 
        /* Gave knowledge */
@@ -1939,12 +1311,12 @@ char index_to_label(int i)
  * @return 対応するID。該当スロットにオブジェクトが存在しなかった場合-1を返す / Return "-1" if the label does not indicate a real item
  * @details Note that the label does NOT distinguish inven/equip.
  */
-s16b label_to_inven(int c)
+INVENTORY_IDX label_to_inven(int c)
 {
-       int i;
+       INVENTORY_IDX i;
 
        /* Convert */
-       i = (islower(c) ? A2I(c) : -1);
+       i = (INVENTORY_IDX)(islower(c) ? A2I(c) : -1);
 
        /* Verify the index */
        if ((i < 0) || (i > INVEN_PACK)) return (-1);
@@ -1977,12 +1349,12 @@ static bool is_ring_slot(int i)
  * Convert a label into the index of a item in the "equip"
  * @return 対応するID。該当スロットにオブジェクトが存在しなかった場合-1を返す / Return "-1" if the label does not indicate a real item
  */
-s16b label_to_equip(int c)
+INVENTORY_IDX label_to_equip(int c)
 {
-       int i;
+       INVENTORY_IDX i;
 
        /* Convert */
-       i = (islower(c) ? A2I(c) : -1) + INVEN_RARM;
+       i = (INVENTORY_IDX)(islower(c) ? A2I(c) : -1) + INVEN_RARM;
 
        /* Verify the index */
        if ((i < INVEN_RARM) || (i >= INVEN_TOTAL)) return (-1);
@@ -2111,71 +1483,17 @@ cptr mention_use(int i)
                case INVEN_LARM:  p = p_ptr->heavy_wield[1] ? "Just lifting" : (p_ptr->hidarite ? "Wielding" : "On arm"); break;
 #endif
 
-#ifdef JP
-               case INVEN_BOW:   p = (adj_str_hold[p_ptr->stat_ind[A_STR]] < inventory[i].weight / 10) ? "運搬中" : "射撃用"; break;
-#else
-               case INVEN_BOW:   p = (adj_str_hold[p_ptr->stat_ind[A_STR]] < inventory[i].weight / 10) ? "Just holding" : "Shooting"; break;
-#endif
-
-#ifdef JP
-               case INVEN_RIGHT: p = (left_hander ? "左手指" : "右手指"); break;
-#else
-               case INVEN_RIGHT: p = (left_hander ? "On left hand" : "On right hand"); break;
-#endif
-
-#ifdef JP
-               case INVEN_LEFT:  p = (left_hander ? "右手指" : "左手指"); break;
-#else
-               case INVEN_LEFT:  p = (left_hander ? "On right hand" : "On left hand"); break;
-#endif
-
-#ifdef JP
-               case INVEN_NECK:  p = "  首"; break;
-#else
-               case INVEN_NECK:  p = "Around neck"; break;
-#endif
-
-#ifdef JP
-               case INVEN_LITE:  p = " 光源"; break;
-#else
-               case INVEN_LITE:  p = "Light source"; break;
-#endif
-
-#ifdef JP
-               case INVEN_BODY:  p = "  体"; break;
-#else
-               case INVEN_BODY:  p = "On body"; break;
-#endif
-
-#ifdef JP
-               case INVEN_OUTER: p = "体の上"; break;
-#else
-               case INVEN_OUTER: p = "About body"; break;
-#endif
-
-#ifdef JP
-               case INVEN_HEAD:  p = "  頭"; break;
-#else
-               case INVEN_HEAD:  p = "On head"; break;
-#endif
-
-#ifdef JP
-               case INVEN_HANDS: p = "  手"; break;
-#else
-               case INVEN_HANDS: p = "On hands"; break;
-#endif
-
-#ifdef JP
-               case INVEN_FEET:  p = "  足"; break;
-#else
-               case INVEN_FEET:  p = "On feet"; break;
-#endif
-
-#ifdef JP
-               default:          p = "ザック"; break;
-#else
-               default:          p = "In pack"; break;
-#endif
+               case INVEN_BOW:   p = (adj_str_hold[p_ptr->stat_ind[A_STR]] < inventory[i].weight / 10) ? _("運搬中", "Just holding") : _("射撃用", "Shooting"); break;
+               case INVEN_RIGHT: p = (left_hander ? _("左手指", "On left hand") : _("右手指", "On right hand")); break;
+               case INVEN_LEFT:  p = (left_hander ? _("右手指", "On right hand") : _("左手指", "On left hand")); break;
+               case INVEN_NECK:  p = _("  首", "Around neck"); break;
+               case INVEN_LITE:  p = _(" 光源", "Light source"); break;
+               case INVEN_BODY:  p = _("  体", "On body"); break;
+               case INVEN_OUTER: p = _("体の上", "About body"); break;
+               case INVEN_HEAD:  p = _("  頭", "On head"); break;
+               case INVEN_HANDS: p = _("  手", "On hands"); break;
+               case INVEN_FEET:  p = _("  足", "On feet"); break;
+               default:          p = _("ザック", "In pack"); break;
        }
 
        /* Return the result */
@@ -2189,91 +1507,37 @@ cptr mention_use(int i)
  * @param i 状態表現を求めるプレイヤーの所持/装備オブジェクトID
  * @return 状態表現内容の文字列ポインタ
  * @details
- * Currently, only used for items in the equipment, not inventory.
- */
-cptr describe_use(int i)
-{
-       cptr p;
-
-       switch (i)
-       {
-#ifdef JP
-               case INVEN_RARM:  p = p_ptr->heavy_wield[0] ? "運搬中の" : ((p_ptr->ryoute && p_ptr->migite) ? "両手に装備している" : (left_hander ? "左手に装備している" : "右手に装備している")); break;
-#else
-               case INVEN_RARM:  p = p_ptr->heavy_wield[0] ? "just lifting" : (p_ptr->migite ? "attacking monsters with" : "wearing on your arm"); break;
-#endif
-
-#ifdef JP
-               case INVEN_LARM:  p = p_ptr->heavy_wield[1] ? "運搬中の" : ((p_ptr->ryoute && p_ptr->hidarite) ? "両手に装備している" : (left_hander ? "右手に装備している" : "左手に装備している")); break;
-#else
-               case INVEN_LARM:  p = p_ptr->heavy_wield[1] ? "just lifting" : (p_ptr->hidarite ? "attacking monsters with" : "wearing on your arm"); break;
-#endif
-
-#ifdef JP
-               case INVEN_BOW:   p = (adj_str_hold[p_ptr->stat_ind[A_STR]] < inventory[i].weight / 10) ? "持つだけで精一杯の" : "射撃用に装備している"; break;
-#else
-               case INVEN_BOW:   p = (adj_str_hold[p_ptr->stat_ind[A_STR]] < inventory[i].weight / 10) ? "just holding" : "shooting missiles with"; break;
-#endif
-
-#ifdef JP
-               case INVEN_RIGHT: p = (left_hander ? "左手の指にはめている" : "右手の指にはめている"); break;
-#else
-               case INVEN_RIGHT: p = (left_hander ? "wearing on your left hand" : "wearing on your right hand"); break;
-#endif
-
-#ifdef JP
-               case INVEN_LEFT:  p = (left_hander ? "右手の指にはめている" : "左手の指にはめている"); break;
-#else
-               case INVEN_LEFT:  p = (left_hander ? "wearing on your right hand" : "wearing on your left hand"); break;
-#endif
-
-#ifdef JP
-               case INVEN_NECK:  p = "首にかけている"; break;
-#else
-               case INVEN_NECK:  p = "wearing around your neck"; break;
-#endif
-
-#ifdef JP
-               case INVEN_LITE:  p = "光源にしている"; break;
-#else
-               case INVEN_LITE:  p = "using to light the way"; break;
-#endif
-
-#ifdef JP
-               case INVEN_BODY:  p = "体に着ている"; break;
-#else
-               case INVEN_BODY:  p = "wearing on your body"; break;
-#endif
-
-#ifdef JP
-               case INVEN_OUTER: p = "身にまとっている"; break;
-#else
-               case INVEN_OUTER: p = "wearing on your back"; break;
-#endif
-
-#ifdef JP
-               case INVEN_HEAD:  p = "頭にかぶっている"; break;
-#else
-               case INVEN_HEAD:  p = "wearing on your head"; break;
-#endif
+ * Currently, only used for items in the equipment, not inventory.
+ */
+cptr describe_use(int i)
+{
+       cptr p;
 
+       switch (i)
+       {
 #ifdef JP
-               case INVEN_HANDS: p = "手につけている"; break;
+               case INVEN_RARM:  p = p_ptr->heavy_wield[0] ? "運搬中の" : ((p_ptr->ryoute && p_ptr->migite) ? "両手に装備している" : (left_hander ? "左手に装備している" : "右手に装備している")); break;
 #else
-               case INVEN_HANDS: p = "wearing on your hands"; break;
+               case INVEN_RARM:  p = p_ptr->heavy_wield[0] ? "just lifting" : (p_ptr->migite ? "attacking monsters with" : "wearing on your arm"); break;
 #endif
 
 #ifdef JP
-               case INVEN_FEET:  p = "足にはいている"; break;
+               case INVEN_LARM:  p = p_ptr->heavy_wield[1] ? "運搬中の" : ((p_ptr->ryoute && p_ptr->hidarite) ? "両手に装備している" : (left_hander ? "右手に装備している" : "左手に装備している")); break;
 #else
-               case INVEN_FEET:  p = "wearing on your feet"; break;
+               case INVEN_LARM:  p = p_ptr->heavy_wield[1] ? "just lifting" : (p_ptr->hidarite ? "attacking monsters with" : "wearing on your arm"); break;
 #endif
 
-#ifdef JP
-               default:          p = "ザックに入っている"; break;
-#else
-               default:          p = "carrying in your pack"; break;
-#endif
+               case INVEN_BOW:   p = (adj_str_hold[p_ptr->stat_ind[A_STR]] < inventory[i].weight / 10) ? _("持つだけで精一杯の", "just holding") : _("射撃用に装備している", "shooting missiles with"); break;
+               case INVEN_RIGHT: p = (left_hander ? _("左手の指にはめている", "wearing on your left hand") : _("右手の指にはめている", "wearing on your right hand")); break;
+               case INVEN_LEFT:  p = (left_hander ? _("右手の指にはめている", "wearing on your right hand") : _("左手の指にはめている", "wearing on your left hand")); break;
+               case INVEN_NECK:  p = _("首にかけている", "wearing around your neck"); break;
+               case INVEN_LITE:  p = _("光源にしている", "using to light the way"); break;
+               case INVEN_BODY:  p = _("体に着ている", "wearing on your body"); break;
+               case INVEN_OUTER: p = _("身にまとっている", "wearing on your back"); break;
+               case INVEN_HEAD:  p = _("頭にかぶっている", "wearing on your head"); break;
+               case INVEN_HANDS: p = _("手につけている", "wearing on your hands"); break;
+               case INVEN_FEET:  p = _("足にはいている", "wearing on your feet"); break;
+               default:          p = _("ザックに入っている", "carrying in your pack"); break;
        }
 
        /* Return the result */
@@ -2289,7 +1553,7 @@ cptr describe_use(int i)
  * @return 使用可能な魔法書ならばTRUEを返す。
  */
 
-bool check_book_realm(const byte book_tval, const byte book_sval)
+bool check_book_realm(const OBJECT_TYPE_VALUE book_tval, const OBJECT_SUBTYPE_VALUE book_sval)
 {
        if (book_tval < TV_LIFE_BOOK) return FALSE;
        if (p_ptr->pclass == CLASS_SORCERER)
@@ -2313,7 +1577,7 @@ bool check_book_realm(const byte book_tval, const byte book_sval)
 bool item_tester_okay(object_type *o_ptr)
 {
        /* Hack -- allow listing empty slots */
-       if (item_tester_full) return (TRUE);
+       // if (item_tester_full) return (TRUE); // TODO:DELETE
 
        /* Require an item */
        if (!o_ptr->k_idx) return (FALSE);
@@ -2356,14 +1620,13 @@ bool item_tester_okay(object_type *o_ptr)
  */
 void display_inven(void)
 {
-       register        int i, n, z = 0;
-       object_type     *o_ptr;
-       byte            attr = TERM_WHITE;
-       char            tmp_val[80];
-       char            o_name[MAX_NLEN];
-       int             wid, hgt;
+       register int i, n, z = 0;
+       object_type *o_ptr;
+       TERM_COLOR attr = TERM_WHITE;
+       char tmp_val[80];
+       GAME_TEXT o_name[MAX_NLEN];
+       TERM_LEN wid, hgt;
 
-       /* Get size */
        Term_get_size(&wid, &hgt);
 
        /* Find the "final" slot */
@@ -2426,7 +1689,7 @@ void display_inven(void)
                {
                        int wgt = o_ptr->weight * o_ptr->number;
 #ifdef JP
-                       sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt),lbtokg2(wgt) );
+                       sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt), lbtokg2(wgt));
 #else
                        sprintf(tmp_val, "%3d.%1d lb", wgt / 10, wgt % 10);
 #endif
@@ -2452,17 +1715,15 @@ void display_inven(void)
  */
 void display_equip(void)
 {
-       register        int i, n;
-       object_type     *o_ptr;
-       byte            attr = TERM_WHITE;
-       char            tmp_val[80];
-       char            o_name[MAX_NLEN];
-       int             wid, hgt;
+       register int i, n;
+       object_type *o_ptr;
+       TERM_COLOR attr = TERM_WHITE;
+       char tmp_val[80];
+       GAME_TEXT o_name[MAX_NLEN];
+       TERM_LEN wid, hgt;
 
-       /* Get size */
        Term_get_size(&wid, &hgt);
 
-       /* Display the equipment */
        for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
        {
                /* Examine the item */
@@ -2487,11 +1748,7 @@ void display_equip(void)
                /* Obtain an item description */
                if ((((i == INVEN_RARM) && p_ptr->hidarite) || ((i == INVEN_LARM) && p_ptr->migite)) && p_ptr->ryoute)
                {
-#ifdef JP
-                       strcpy(o_name, "(武器を両手持ち)");
-#else
-                       strcpy(o_name, "(wielding with two-hands)");
-#endif
+                       strcpy(o_name, _("(武器を両手持ち)", "(wielding with two-hands)"));
                        attr = TERM_WHITE;
                }
                else
@@ -2560,9 +1817,10 @@ void display_equip(void)
  * Also, the tag "@xn" will work as well, where "n" is a any tag-char,\n
  * and "x" is the "current" command_cmd code.\n
  */
-static bool get_tag(int *cp, char tag, int mode)
+static bool get_tag(COMMAND_CODE *cp, char tag, BIT_FLAGS mode)
 {
-       int i, start, end;
+       COMMAND_CODE i;
+       COMMAND_CODE start, end;
        cptr s;
 
        /* Extract index from mode */
@@ -2596,7 +1854,7 @@ static bool get_tag(int *cp, char tag, int mode)
                if (!o_ptr->inscription) continue;
 
                /* Skip non-choice */
-               if (!item_tester_okay(o_ptr)) continue;
+               if (!item_tester_okay(o_ptr) && !(mode & USE_FULL)) continue;
 
                /* Find a '@' */
                s = my_strchr(quark_str(o_ptr->inscription), '@');
@@ -2641,7 +1899,7 @@ static bool get_tag(int *cp, char tag, int mode)
                if (!o_ptr->inscription) continue;
 
                /* Skip non-choice */
-               if (!item_tester_okay(o_ptr)) continue;
+               if (!item_tester_okay(o_ptr) && !(mode & USE_FULL)) continue;
 
                /* Find a '@' */
                s = my_strchr(quark_str(o_ptr->inscription), '@');
@@ -2685,9 +1943,9 @@ static bool get_tag(int *cp, char tag, int mode)
  * Also, the tag "@xn" will work as well, where "n" is a any tag-char,\n
  * and "x" is the "current" command_cmd code.\n
  */
-static bool get_tag_floor(int *cp, char tag, int floor_list[], int floor_num)
+static bool get_tag_floor(COMMAND_CODE *cp, char tag, FLOOR_IDX floor_list[], ITEM_NUMBER floor_num)
 {
-       int i;
+       COMMAND_CODE i;
        cptr s;
 
        /**** Find a tag in the form of {@x#} (allow alphabet tag) ***/
@@ -2772,7 +2030,7 @@ static bool get_tag_floor(int *cp, char tag, int floor_list[], int floor_num)
  * @param mode 所持品リストか装備品リストかの切り替え
  * @return なし
  */
-static void prepare_label_string(char *label, int mode)
+static void prepare_label_string(char *label, BIT_FLAGS mode)
 {
        cptr alphabet_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        int  offset = (mode == USE_EQUIP) ? INVEN_RARM : 0;
@@ -2784,7 +2042,7 @@ static void prepare_label_string(char *label, int mode)
        /* Move each label */
        for (i = 0; i < 52; i++)
        {
-               int index;
+               COMMAND_CODE index;
                char c = alphabet_chars[i];
 
                /* Find a tag with this label */
@@ -2810,7 +2068,7 @@ static void prepare_label_string(char *label, int mode)
  */
 /*
  */
-static void prepare_label_string_floor(char *label, int floor_list[], int floor_num)
+static void prepare_label_string_floor(char *label, FLOOR_IDX floor_list[], ITEM_NUMBER floor_num)
 {
        cptr alphabet_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        int  i;
@@ -2821,7 +2079,7 @@ static void prepare_label_string_floor(char *label, int floor_list[], int floor_
        /* Move each label */
        for (i = 0; i < 52; i++)
        {
-               int index;
+               COMMAND_CODE index;
                char c = alphabet_chars[i];
 
                /* Find a tag with this label */
@@ -2845,24 +2103,24 @@ static void prepare_label_string_floor(char *label, int floor_list[], int floor_
  * @details
  * Hack -- do not display "trailing" empty slots
  */
-int show_inven(int target_item)
+COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode)
 {
-       int             i, j, k, l, z = 0;
+       COMMAND_CODE i;
+       int j, k, l, z = 0;
        int             col, cur_col, len;
        object_type     *o_ptr;
-       char            o_name[MAX_NLEN];
+       GAME_TEXT o_name[MAX_NLEN];
        char            tmp_val[80];
-       int             out_index[23];
-       byte            out_color[23];
+       COMMAND_CODE    out_index[23];
+       TERM_COLOR      out_color[23];
        char            out_desc[23][MAX_NLEN];
-       int             target_item_label = 0;
-       int             wid, hgt;
-       char            inven_label[52 + 1];
+       COMMAND_CODE target_item_label = 0;
+       TERM_LEN wid, hgt;
+       char inven_label[52 + 1];
 
        /* Starting column */
        col = command_gap;
 
-       /* Get size */
        Term_get_size(&wid, &hgt);
 
        /* Default "max-length" */
@@ -2889,9 +2147,8 @@ int show_inven(int target_item)
                o_ptr = &inventory[i];
 
                /* Is this item acceptable? */
-               if (!item_tester_okay(o_ptr)) continue;
+               if (!item_tester_okay(o_ptr) && !(mode & USE_FULL)) continue;
 
-               /* Describe the object */
                object_desc(o_name, o_ptr, 0);
 
                /* Save the object index, color, and description */
@@ -2935,7 +2192,6 @@ int show_inven(int target_item)
                /* Get the index */
                i = out_index[j];
 
-               /* Get the item */
                o_ptr = &inventory[i];
 
                /* Clear the line */
@@ -2945,11 +2201,7 @@ int show_inven(int target_item)
                {
                        if (j == (target_item-1))
                        {
-#ifdef JP
-                               strcpy(tmp_val, "》");
-#else
-                               strcpy(tmp_val, "> ");
-#endif
+                               strcpy(tmp_val, _("》", "> "));
                                target_item_label = i;
                        }
                        else strcpy(tmp_val, "  ");
@@ -2975,11 +2227,6 @@ int show_inven(int target_item)
                {
                        byte  a = object_attr(o_ptr);
                        char c = object_char(o_ptr);
-
-#ifdef AMIGA
-                       if (a & 0x80) a |= 0x40;
-#endif
-
                        Term_queue_bigchar(cur_col, j + 1, a, c, 0, 0);
                        if (use_bigtile) cur_col++;
 
@@ -3020,24 +2267,24 @@ int show_inven(int target_item)
  * @param target_item アイテムの選択処理を行うか否か。
  * @return 選択したアイテムのタグ
  */
-int show_equip(int target_item)
+COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode)
 {
-       int             i, j, k, l;
+       COMMAND_CODE i;
+       int j, k, l;
        int             col, cur_col, len;
        object_type     *o_ptr;
        char            tmp_val[80];
-       char            o_name[MAX_NLEN];
-       int             out_index[23];
-       byte            out_color[23];
+       GAME_TEXT o_name[MAX_NLEN];
+       COMMAND_CODE    out_index[23];
+       TERM_COLOR      out_color[23];
        char            out_desc[23][MAX_NLEN];
-       int             target_item_label = 0;
-       int             wid, hgt;
+       COMMAND_CODE target_item_label = 0;
+       TERM_LEN wid, hgt;
        char            equip_label[52 + 1];
 
        /* Starting column */
        col = command_gap;
 
-       /* Get size */
        Term_get_size(&wid, &hgt);
 
        /* Maximal length */
@@ -3050,20 +2297,16 @@ int show_equip(int target_item)
                o_ptr = &inventory[i];
 
                /* Is this item acceptable? */
-               if (!(select_ring_slot ? is_ring_slot(i) : item_tester_okay(o_ptr)) &&
+               if (!(select_ring_slot ? is_ring_slot(i) : item_tester_okay(o_ptr) || (mode & USE_FULL)) &&
                    (!((((i == INVEN_RARM) && p_ptr->hidarite) || ((i == INVEN_LARM) && p_ptr->migite)) && p_ptr->ryoute) ||
-                    item_tester_no_ryoute)) continue;
+                               (mode & IGNORE_BOTHHAND_SLOT))) continue;
 
                /* Description */
                object_desc(o_name, o_ptr, 0);
 
                if ((((i == INVEN_RARM) && p_ptr->hidarite) || ((i == INVEN_LARM) && p_ptr->migite)) && p_ptr->ryoute)
                {
-#ifdef JP
-                       (void)strcpy(out_desc[k],"(武器を両手持ち)");
-#else
-                       (void)strcpy(out_desc[k],"(wielding with two-hands)");
-#endif
+                       (void)strcpy(out_desc[k],_("(武器を両手持ち)", "(wielding with two-hands)"));
                        out_color[k] = TERM_WHITE;
                }
                else
@@ -3122,7 +2365,6 @@ int show_equip(int target_item)
                /* Get the index */
                i = out_index[j];
 
-               /* Get the item */
                o_ptr = &inventory[i];
 
                /* Clear the line */
@@ -3132,11 +2374,7 @@ int show_equip(int target_item)
                {
                        if (j == (target_item-1))
                        {
-#ifdef JP
-                               strcpy(tmp_val, "》");
-#else
-                               strcpy(tmp_val, "> ");
-#endif
+                               strcpy(tmp_val, _("》", "> "));
                                target_item_label = i;
                        }
                        else strcpy(tmp_val, "  ");
@@ -3162,11 +2400,6 @@ int show_equip(int target_item)
                {
                        byte a = object_attr(o_ptr);
                        char c = object_char(o_ptr);
-
-#ifdef AMIGA
-                       if (a & 0x80) a |= 0x40;
-#endif
-
                        Term_queue_bigchar(cur_col, j + 1, a, c, 0, 0);
                        if (use_bigtile) cur_col++;
 
@@ -3177,20 +2410,12 @@ int show_equip(int target_item)
                if (show_labels)
                {
                        /* Mention the use */
-#ifdef JP
-                       (void)sprintf(tmp_val, "%-7s: ", mention_use(i));
-#else
-                       (void)sprintf(tmp_val, "%-14s: ", mention_use(i));
-#endif
+                       (void)sprintf(tmp_val, _("%-7s: ", "%-14s: "), mention_use(i));
 
                        put_str(tmp_val, j+1, cur_col);
 
                        /* Display the entry itself */
-#ifdef JP
-                       c_put_str(out_color[j], out_desc[j], j+1, cur_col + 9);
-#else
-                       c_put_str(out_color[j], out_desc[j], j+1, cur_col + 16);
-#endif
+                       c_put_str(out_color[j], out_desc[j], j+1, _(cur_col + 9, cur_col + 16));
                }
 
                /* No labels */
@@ -3245,7 +2470,6 @@ void toggle_inven_equip(void)
                        window_flag[j] &= ~(PW_INVEN);
                        window_flag[j] |= (PW_EQUIP);
 
-                       /* Window stuff */
                        p_ptr->window |= (PW_EQUIP);
                }
 
@@ -3256,7 +2480,6 @@ void toggle_inven_equip(void)
                        window_flag[j] &= ~(PW_EQUIP);
                        window_flag[j] |= (PW_INVEN);
 
-                       /* Window stuff */
                        p_ptr->window |= (PW_INVEN);
                }
        }
@@ -3270,9 +2493,9 @@ void toggle_inven_equip(void)
  * @return 確認がYesならTRUEを返す。
  * @details The item can be negative to mean "item on floor".
  */
-static bool verify(cptr prompt, int item)
+static bool verify(cptr prompt, INVENTORY_IDX item)
 {
-       char        o_name[MAX_NLEN];
+       GAME_TEXT o_name[MAX_NLEN];
        char        out_val[MAX_NLEN+20];
        object_type *o_ptr;
 
@@ -3288,17 +2511,10 @@ static bool verify(cptr prompt, int item)
        {
                o_ptr = &o_list[0 - item];
        }
-
-       /* Describe */
        object_desc(o_name, o_ptr, 0);
 
        /* Prompt */
-#ifdef JP
-(void)sprintf(out_val, "%s%sですか? ", prompt, o_name);
-#else
-       (void)sprintf(out_val, "%s %s? ", prompt, o_name);
-#endif
-
+       (void)sprintf(out_val, _("%s%sですか? ", "%s %s? "), prompt, o_name);
 
        /* Query */
        return (get_check(out_val));
@@ -3312,12 +2528,10 @@ static bool verify(cptr prompt, int item)
  * @details The item can be negative to mean "item on floor".
  * Hack -- allow user to "prevent" certain choices
  */
-static bool get_item_allow(int item)
+static bool get_item_allow(INVENTORY_IDX item)
 {
        cptr s;
-
        object_type *o_ptr;
-
        if (!command_cmd) return TRUE; /* command_cmd is no longer effective */
 
        /* Inventory */
@@ -3345,12 +2559,7 @@ static bool get_item_allow(int item)
                if ((s[1] == command_cmd) || (s[1] == '*'))
                {
                        /* Verify the choice */
-#ifdef JP
-if (!verify("本当に", item)) return (FALSE);
-#else
-                       if (!verify("Really try", item)) return (FALSE);
-#endif
-
+                       if (!verify(_("本当に", "Really try"), item)) return (FALSE);
                }
 
                /* Find another '!' */
@@ -3368,7 +2577,7 @@ if (!verify("本当に", item)) return (FALSE);
  * @param i 選択アイテムID
  * @return 正規のIDならばTRUEを返す。
  */
-static bool get_item_okay(int i)
+static bool get_item_okay(OBJECT_IDX i)
 {
        /* Illegal items */
        if ((i < 0) || (i >= INVEN_TOTAL)) return (FALSE);
@@ -3390,13 +2599,15 @@ static bool get_item_okay(int i)
  */
 bool can_get_item(void)
 {
-       int j, floor_list[23], floor_num = 0;
+       int j;
+       OBJECT_IDX floor_list[23];
+       ITEM_NUMBER floor_num = 0;
 
        for (j = 0; j < INVEN_TOTAL; j++)
                if (item_tester_okay(&inventory[j]))
                        return TRUE;
 
-       floor_num = scan_floor(floor_list, py, px, 0x03);
+       floor_num = scan_floor(floor_list, p_ptr->y, p_ptr->x, 0x03);
        if (floor_num)
                return TRUE;
 
@@ -3458,13 +2669,16 @@ bool can_get_item(void)
  * We always erase the prompt when we are done, leaving a blank line,\n
  * or a warning message, if appropriate, if no items are available.\n
  */
-bool get_item(int *cp, cptr pmt, cptr str, int mode)
+bool get_item(OBJECT_IDX *cp, cptr pmt, cptr str, BIT_FLAGS mode)
 {
-       s16b this_o_idx, next_o_idx = 0;
+       OBJECT_IDX this_o_idx, next_o_idx = 0;
 
        char which = ' ';
 
-       int j, k, i1, i2, e1, e2;
+       int j;
+       OBJECT_IDX k;
+       OBJECT_IDX i1, i2;
+       OBJECT_IDX e1, e2;
 
        bool done, item;
 
@@ -3481,38 +2695,25 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        char tmp_val[160];
        char out_val[160];
 
-       /* See cmd5.c */
-       extern bool select_the_force;
-
        int menu_line = (use_menu ? 1 : 0);
        int max_inven = 0;
        int max_equip = 0;
 
-#ifdef ALLOW_REPEAT
-
        static char prev_tag = '\0';
        char cur_tag = '\0';
 
-#endif /* ALLOW_REPEAT */
-
-#ifdef ALLOW_EASY_FLOOR /* TNB */
-
        if (easy_floor || use_menu) return get_item_floor(cp, pmt, str, mode);
 
-#endif /* ALLOW_EASY_FLOOR -- TNB */
-
        /* Extract args */
        if (mode & USE_EQUIP) equip = TRUE;
        if (mode & USE_INVEN) inven = TRUE;
        if (mode & USE_FLOOR) floor = TRUE;
 
-#ifdef ALLOW_REPEAT
-
        /* Get the item index */
        if (repeat_pull(cp))
        {
                /* the_force */
-               if (select_the_force && (*cp == INVEN_FORCE))
+               if (mode & USE_FORCE && (*cp == INVEN_FORCE))
                {
                        item_tester_tval = 0;
                        item_tester_hook = NULL;
@@ -3527,12 +2728,10 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
 
                        /* Special index */
                        k = 0 - (*cp);
-
-                       /* Acquire object */
                        o_ptr = &o_list[k];
 
                        /* Validate the item */
-                       if (item_tester_okay(o_ptr))
+                       if (item_tester_okay(o_ptr) || (mode & USE_FULL))
                        {
                                /* Forget restrictions */
                                item_tester_tval = 0;
@@ -3584,13 +2783,9 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                }
        }
 
-#endif /* ALLOW_REPEAT */
-
-
-       /* Paranoia XXX XXX XXX */
+       /* Paranoia */
        msg_print(NULL);
 
-
        /* Not done */
        done = FALSE;
 
@@ -3607,7 +2802,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        else if (use_menu)
        {
                for (j = 0; j < INVEN_PACK; j++)
-                       if (item_tester_okay(&inventory[j])) max_inven++;
+                       if (item_tester_okay(&inventory[j]) || (mode & USE_FULL)) max_inven++;
        }
 
        /* Restrict inventory indexes */
@@ -3624,15 +2819,15 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        else if (use_menu)
        {
                for (j = INVEN_RARM; j < INVEN_TOTAL; j++)
-                       if (select_ring_slot ? is_ring_slot(j) : item_tester_okay(&inventory[j])) max_equip++;
-               if (p_ptr->ryoute && !item_tester_no_ryoute) max_equip++;
+                       if (select_ring_slot ? is_ring_slot(j) : item_tester_okay(&inventory[j]) || (mode & USE_FULL)) max_equip++;
+               if (p_ptr->ryoute && !(mode & IGNORE_BOTHHAND_SLOT)) max_equip++;
        }
 
        /* Restrict equipment indexes */
        while ((e1 <= e2) && (!get_item_okay(e1))) e1++;
        while ((e1 <= e2) && (!get_item_okay(e2))) e2--;
 
-       if (equip && p_ptr->ryoute && !item_tester_no_ryoute)
+       if (equip && p_ptr->ryoute && !(mode & IGNORE_BOTHHAND_SLOT))
        {
                if (p_ptr->migite)
                {
@@ -3646,18 +2841,16 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        if (floor)
        {
                /* Scan all objects in the grid */
-               for (this_o_idx = cave[py][px].o_idx; this_o_idx; this_o_idx = next_o_idx)
+               for (this_o_idx = cave[p_ptr->y][p_ptr->x].o_idx; this_o_idx; this_o_idx = next_o_idx)
                {
                        object_type *o_ptr;
-
-                       /* Acquire object */
                        o_ptr = &o_list[this_o_idx];
 
                        /* Acquire next object */
                        next_o_idx = o_ptr->next_o_idx;
 
                        /* Accept the item on the floor if legal */
-                       if (item_tester_okay(o_ptr) && (o_ptr->marked & OM_FOUND)) allow_floor = TRUE;
+                       if ((item_tester_okay(o_ptr) || (mode & USE_FULL)) && (o_ptr->marked & OM_FOUND)) allow_floor = TRUE;
                }
        }
 
@@ -3666,14 +2859,10 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        {
                /* Cancel p_ptr->command_see */
                command_see = FALSE;
-
-               /* Oops */
                oops = TRUE;
-
-               /* Done */
                done = TRUE;
 
-               if (select_the_force) {
+               if (mode & USE_FORCE) {
                    *cp = INVEN_FORCE;
                    item = TRUE;
                }
@@ -3716,7 +2905,6 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        /* Hack -- start out in "display" mode */
        if (command_see)
        {
-               /* Save screen */
                screen_save();
        }
 
@@ -3724,7 +2912,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        /* Repeat until done */
        while (!done)
        {
-               int get_item_label = 0;
+               COMMAND_CODE get_item_label = 0;
 
                /* Show choices */
                int ni = 0;
@@ -3744,8 +2932,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                }
 
                /* Toggle if needed */
-               if ((command_wrk && ni && !ne) ||
-                   (!command_wrk && !ni && ne))
+               if ((command_wrk && ni && !ne) || (!command_wrk && !ni && ne))
                {
                        /* Toggle */
                        toggle_inven_equip();
@@ -3754,46 +2941,34 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                        toggle = !toggle;
                }
 
-               /* Update */
                p_ptr->window |= (PW_INVEN | PW_EQUIP);
-
-               /* Redraw windows */
-               window_stuff();
-
+               handle_stuff();
 
                /* Inventory screen */
                if (!command_wrk)
                {
                        /* Redraw if needed */
-                       if (command_see) get_item_label = show_inven(menu_line);
+                       if (command_see) get_item_label = show_inven(menu_line, mode);
                }
 
                /* Equipment screen */
                else
                {
                        /* Redraw if needed */
-                       if (command_see) get_item_label = show_equip(menu_line);
+                       if (command_see) get_item_label = show_equip(menu_line, mode);
                }
 
                /* Viewing inventory */
                if (!command_wrk)
                {
                        /* Begin the prompt */
-#ifdef JP
-                       sprintf(out_val, "持ち物:");
-#else
-                       sprintf(out_val, "Inven:");
-#endif
+                       sprintf(out_val, _("持ち物:", "Inven:"));
 
                        /* Some legal items */
                        if ((i1 <= i2) && !use_menu)
                        {
                                /* Build the prompt */
-#ifdef JP
-                               sprintf(tmp_val, "%c-%c,'(',')',",
-#else
-                               sprintf(tmp_val, " %c-%c,'(',')',",
-#endif
+                               sprintf(tmp_val, _("%c-%c,'(',')',", " %c-%c,'(',')',"),
                                        index_to_label(i1), index_to_label(i2));
 
                                /* Append */
@@ -3801,39 +2976,23 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                        }
 
                        /* Indicate ability to "view" */
-#ifdef JP
-                       if (!command_see && !use_menu) strcat(out_val, " '*'一覧,");
-#else
-                       if (!command_see && !use_menu) strcat(out_val, " * to see,");
-#endif
+                       if (!command_see && !use_menu) strcat(out_val, _(" '*'一覧,", " * to see,"));
 
                        /* Append */
-#ifdef JP
-                       if (equip) strcat(out_val, format(" %s 装備品,", use_menu ? "'4'or'6'" : "'/'"));
-#else
-                       if (equip) strcat(out_val, format(" %s for Equip,", use_menu ? "4 or 6" : "/"));
-#endif
+                       if (equip) strcat(out_val, format(_(" %s 装備品,", " %s for Equip,"), use_menu ? _("'4'or'6'", "4 or 6") : _("'/'", "/")));
                }
 
                /* Viewing equipment */
                else
                {
                        /* Begin the prompt */
-#ifdef JP
-                       sprintf(out_val, "装備品:");
-#else
-                       sprintf(out_val, "Equip:");
-#endif
+                       sprintf(out_val, _("装備品:", "Equip:"));
 
                        /* Some legal items */
                        if ((e1 <= e2) && !use_menu)
                        {
                                /* Build the prompt */
-#ifdef JP
-                               sprintf(tmp_val, "%c-%c,'(',')',",
-#else
-                               sprintf(tmp_val, " %c-%c,'(',')',",
-#endif
+                               sprintf(tmp_val, _("%c-%c,'(',')',", " %c-%c,'(',')',"),
                                        index_to_label(e1), index_to_label(e2));
 
                                /* Append */
@@ -3841,28 +3000,15 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                        }
 
                        /* Indicate ability to "view" */
-#ifdef JP
-                       if (!command_see && !use_menu) strcat(out_val, " '*'一覧,");
-#else
-                       if (!command_see) strcat(out_val, " * to see,");
-#endif
+                       if (!command_see && !use_menu) strcat(out_val, _(" '*'一覧,", " * to see,"));
 
                        /* Append */
-#ifdef JP
-                       if (inven) strcat(out_val, format(" %s 持ち物,", use_menu ? "'4'or'6'" : "'/'"));
-#else
-                       if (inven) strcat(out_val, format(" %s for Inven,", use_menu ? "4 or 6" : "'/'"));
-#endif
+                       if (inven) strcat(out_val, format(_(" %s 持ち物,", " %s for Inven,"), use_menu ? _("'4'or'6'", "4 or 6") : _("'/'", "'/'")));
                }
 
                /* Indicate legality of the "floor" item */
-#ifdef JP
-               if (allow_floor) strcat(out_val, " '-'床上,");
-               if (select_the_force) strcat(out_val, " 'w'練気術,");
-#else
-               if (allow_floor) strcat(out_val, " - for floor,");
-               if (select_the_force) strcat(out_val, " w for the Force,");
-#endif
+               if (allow_floor) strcat(out_val, _(" '-'床上,", " - for floor,"));
+               if (mode & USE_FORCE) strcat(out_val, _(" 'w'練気術,", " w for the Force,"));
 
                /* Finish the prompt */
                strcat(out_val, " ESC");
@@ -3923,10 +3069,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -3975,7 +3118,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                        }
                        case 'w':
                        {
-                               if (select_the_force) {
+                               if (mode & USE_FORCE) {
                                        *cp = INVEN_FORCE;
                                        item = TRUE;
                                        done = TRUE;
@@ -4005,15 +3148,12 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                                {
                                        /* Flip flag */
                                        command_see = FALSE;
-
-                                       /* Load screen */
                                        screen_load();
                                }
 
                                /* Show the list */
                                else
                                {
-                                       /* Save screen */
                                        screen_save();
 
                                        /* Flip flag */
@@ -4034,10 +3174,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -4054,29 +3191,22 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
                                if (allow_floor)
                                {
                                        /* Scan all objects in the grid */
-                                       for (this_o_idx = cave[py][px].o_idx; this_o_idx; this_o_idx = next_o_idx)
+                                       for (this_o_idx = cave[p_ptr->y][p_ptr->x].o_idx; this_o_idx; this_o_idx = next_o_idx)
                                        {
                                                object_type *o_ptr;
-
-                                               /* Acquire object */
                                                o_ptr = &o_list[this_o_idx];
 
                                                /* Acquire next object */
                                                next_o_idx = o_ptr->next_o_idx;
 
                                                /* Validate the item */
-                                               if (!item_tester_okay(o_ptr)) continue;
+                                               if (!item_tester_okay(o_ptr) && !(mode & USE_FULL)) continue;
 
                                                /* Special index */
                                                k = 0 - this_o_idx;
 
                                                /* Verify the item (if required) */
-#ifdef JP
-if (other_query_flag && !verify("本当に", k)) continue;
-#else
-                                               if (other_query_flag && !verify("Try", k)) continue;
-#endif
-
+                                               if (other_query_flag && !verify(_("本当に", "Try"), k)) continue;
 
                                                /* Allow player to "refuse" certain actions */
                                                if (!get_item_allow(k)) continue;
@@ -4092,7 +3222,6 @@ if (other_query_flag && !verify("本当に", k)) continue;
                                        if (done) break;
                                }
 
-                               /* Oops */
                                bell();
                                break;
                        }
@@ -4134,9 +3263,7 @@ if (other_query_flag && !verify("本当に", k)) continue;
                                (*cp) = k;
                                item = TRUE;
                                done = TRUE;
-#ifdef ALLOW_REPEAT
                                cur_tag = which;
-#endif /* ALLOW_REPEAT */
                                break;
                        }
 
@@ -4180,7 +3307,7 @@ if (other_query_flag && !verify("本当に", k)) continue;
 
                        case 'w':
                        {
-                               if (select_the_force) {
+                               if (mode & USE_FORCE) {
                                        *cp = INVEN_FORCE;
                                        item = TRUE;
                                        done = TRUE;
@@ -4219,15 +3346,13 @@ if (other_query_flag && !verify("本当に", k)) continue;
                                        (*cp) = k;
                                        item = TRUE;
                                        done = TRUE;
-#ifdef ALLOW_REPEAT
                                        cur_tag = which;
-#endif /* ALLOW_REPEAT */
                                        break;
                                }
 
                                /* Extract "query" setting */
                                ver = isupper(which);
-                               which = tolower(which);
+                               which = (char)tolower(which);
 
                                /* Convert letter to inventory index */
                                if (!command_wrk)
@@ -4253,12 +3378,7 @@ if (other_query_flag && !verify("本当に", k)) continue;
                                }
 
                                /* Verify the item */
-#ifdef JP
-if (ver && !verify("本当に", k))
-#else
-                               if (ver && !verify("Try", k))
-#endif
-
+                               if (ver && !verify(_("本当に", "Try"), k))
                                {
                                        done = TRUE;
                                        break;
@@ -4285,7 +3405,6 @@ if (ver && !verify("本当に", k))
        /* Fix the screen if necessary */
        if (command_see)
        {
-               /* Load screen */
                screen_load();
 
                /* Hack -- Cancel "display" */
@@ -4296,8 +3415,6 @@ if (ver && !verify("本当に", k))
        /* Forget the item_tester_tval restriction */
        item_tester_tval = 0;
 
-       item_tester_no_ryoute = FALSE;
-
        /* Forget the item_tester_hook restriction */
        item_tester_hook = NULL;
 
@@ -4306,12 +3423,8 @@ if (ver && !verify("本当に", k))
        /* Toggle again if needed */
        if (toggle) toggle_inven_equip();
 
-       /* Update */
        p_ptr->window |= (PW_INVEN | PW_EQUIP);
-
-       /* Window stuff */
-       window_stuff();
-
+       handle_stuff();
 
        /* Clear the prompt line */
        prt("", 0, 0);
@@ -4321,20 +3434,31 @@ if (ver && !verify("本当に", k))
 
        if (item)
        {
-#ifdef ALLOW_REPEAT
                repeat_push(*cp);
                if (command_cmd) prev_tag = cur_tag;
-#endif /* ALLOW_REPEAT */
-
                command_cmd = 0; /* Hack -- command_cmd is no longer effective */
        }
-
-       /* Result */
        return (item);
 }
 
+/*
+ * Choose an item and get auto-picker entry from it.
+ */
+object_type *choose_object(OBJECT_IDX *idx, cptr q, cptr s, BIT_FLAGS option)
+{
+       OBJECT_IDX item;
+       if (!get_item(&item, q, s, option)) return NULL;
+       if (idx) *idx = item;
+
+       if (item == INVEN_FORCE) return NULL;
+
+       /* Get the item (in the pack) */
+       else if (item >= 0) return &inventory[item];
+
+       /* Get the item (on the floor) */
+       else return &o_list[0 - item];
+}
 
-#ifdef ALLOW_EASY_FLOOR
 
 /*!
  * @brief 床下に落ちているオブジェクトの数を返す / scan_floor
@@ -4351,11 +3475,11 @@ if (ver && !verify("本当に", k))
  *             mode & 0x02 -- Marked items only
  *             mode & 0x04 -- Stop after first
  */
-int scan_floor(int *items, int y, int x, int mode)
+ITEM_NUMBER scan_floor(OBJECT_IDX *items, POSITION y, POSITION x, BIT_FLAGS mode)
 {
-       int this_o_idx, next_o_idx;
+       OBJECT_IDX this_o_idx, next_o_idx;
 
-       int num = 0;
+       ITEM_NUMBER num = 0;
 
        /* Sanity */
        if (!in_bounds(y, x)) return 0;
@@ -4364,8 +3488,6 @@ int scan_floor(int *items, int y, int x, int mode)
        for (this_o_idx = cave[y][x].o_idx; this_o_idx; this_o_idx = next_o_idx)
        {
                object_type *o_ptr;
-
-               /* Acquire object */
                o_ptr = &o_list[this_o_idx];
 
                /* Acquire next object */
@@ -4387,8 +3509,6 @@ int scan_floor(int *items, int y, int x, int mode)
                /* Only one */
                if (mode & 0x04) break;
        }
-
-       /* Result */
        return num;
 }
 
@@ -4399,38 +3519,37 @@ int scan_floor(int *items, int y, int x, int mode)
  * @param y 走査するフロアのY座標
  * @param x 走査するフロアのX座標
  * @param min_width 表示の長さ
- * @return 選択したアイテムのID
+ * @return 選択したアイテムの添え字
  * @details
  */
-int show_floor(int target_item, int y, int x, int *min_width)
+COMMAND_CODE show_floor(int target_item, POSITION y, POSITION x, TERM_LEN *min_width)
 {
-       int i, j, k, l;
+       COMMAND_CODE i, m;
+       int j, k, l;
        int col, len;
 
        object_type *o_ptr;
 
-       char o_name[MAX_NLEN];
-
+       GAME_TEXT o_name[MAX_NLEN];
        char tmp_val[80];
 
-       int out_index[23];
-       byte out_color[23];
+       COMMAND_CODE out_index[23];
+       TERM_COLOR out_color[23];
        char out_desc[23][MAX_NLEN];
-       int target_item_label = 0;
+       COMMAND_CODE target_item_label = 0;
 
-       int floor_list[23], floor_num;
-       int wid, hgt;
+       OBJECT_IDX floor_list[23];
+       ITEM_NUMBER floor_num;
+       TERM_LEN wid, hgt;
        char floor_label[52 + 1];
 
        bool dont_need_to_show_weights = TRUE;
 
-       /* Get size */
        Term_get_size(&wid, &hgt);
 
        /* Default length */
        len = MAX((*min_width), 20);
 
-
        /* Scan for objects in the grid, using item_tester_okay() */
        floor_num = scan_floor(floor_list, y, x, 0x03);
 
@@ -4439,7 +3558,6 @@ int show_floor(int target_item, int y, int x, int *min_width)
        {
                o_ptr = &o_list[floor_list[i]];
 
-               /* Describe the object */
                object_desc(o_name, o_ptr, 0);
 
                /* Save the index */
@@ -4480,10 +3598,9 @@ int show_floor(int target_item, int y, int x, int *min_width)
        for (j = 0; j < k; j++)
        {
                /* Get the index */
-               i = floor_list[out_index[j]];
+               m = floor_list[out_index[j]];
 
-               /* Get the item */
-               o_ptr = &o_list[i];
+               o_ptr = &o_list[m];
 
                /* Clear the line */
                prt("", j + 1, col ? col - 2 : col);
@@ -4492,12 +3609,8 @@ int show_floor(int target_item, int y, int x, int *min_width)
                {
                        if (j == (target_item-1))
                        {
-#ifdef JP
-                               strcpy(tmp_val, "》");
-#else
-                               strcpy(tmp_val, "> ");
-#endif
-                               target_item_label = i;
+                               strcpy(tmp_val, _("》", "> "));
+                               target_item_label = m;
                        }
                        else strcpy(tmp_val, "   ");
                }
@@ -4542,11 +3655,14 @@ int show_floor(int target_item, int y, int x, int *min_width)
  * @param mode オプションフラグ
  * @return プレイヤーによりアイテムが選択されたならTRUEを返す。/
  */
-bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
+bool get_item_floor(COMMAND_CODE *cp, cptr pmt, cptr str, BIT_FLAGS mode)
 {
        char n1 = ' ', n2 = ' ', which = ' ';
 
-       int j, k, i1, i2, e1, e2;
+       int j;
+       COMMAND_CODE i1, i2;
+       COMMAND_CODE e1, e2;
+       COMMAND_CODE k;
 
        bool done, item;
 
@@ -4556,6 +3672,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        bool equip = (mode & USE_EQUIP) ? TRUE : FALSE;
        bool inven = (mode & USE_INVEN) ? TRUE : FALSE;
        bool floor = (mode & USE_FLOOR) ? TRUE : FALSE;
+       bool force = (mode & USE_FORCE) ? TRUE : FALSE;
 
        bool allow_equip = FALSE;
        bool allow_inven = FALSE;
@@ -4566,17 +3683,15 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        char tmp_val[160];
        char out_val[160];
 
-       int floor_num, floor_list[23], floor_top = 0;
-       int min_width = 0;
-
-       extern bool select_the_force;
+       ITEM_NUMBER floor_num;
+       OBJECT_IDX floor_list[23];
+       int floor_top = 0;
+       TERM_LEN min_width = 0;
 
        int menu_line = (use_menu ? 1 : 0);
        int max_inven = 0;
        int max_equip = 0;
 
-#ifdef ALLOW_REPEAT
-
        static char prev_tag = '\0';
        char cur_tag = '\0';
 
@@ -4584,7 +3699,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        if (repeat_pull(cp))
        {
                /* the_force */
-               if (select_the_force && (*cp == INVEN_FORCE))
+               if (force && (*cp == INVEN_FORCE))
                {
                        item_tester_tval = 0;
                        item_tester_hook = NULL;
@@ -4598,7 +3713,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        if (prev_tag && command_cmd)
                        {
                                /* Scan all objects in the grid */
-                               floor_num = scan_floor(floor_list, py, px, 0x03);
+                               floor_num = scan_floor(floor_list, p_ptr->y, p_ptr->x, 0x03);
 
                                /* Look up the tag */
                                if (get_tag_floor(&k, prev_tag, floor_list, floor_num))
@@ -4619,7 +3734,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        }
 
                        /* Validate the item */
-                       else if (item_tester_okay(&o_list[0 - (*cp)]))
+                       else if (item_tester_okay(&o_list[0 - (*cp)]) || (mode & USE_FULL))
                        {
                                /* Forget restrictions */
                                item_tester_tval = 0;
@@ -4671,10 +3786,8 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                }
        }
 
-#endif /* ALLOW_REPEAT */
 
-
-       /* Paranoia XXX XXX XXX */
+       /* Paranoia */
        msg_print(NULL);
 
 
@@ -4694,7 +3807,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        else if (use_menu)
        {
                for (j = 0; j < INVEN_PACK; j++)
-                       if (item_tester_okay(&inventory[j])) max_inven++;
+                       if (item_tester_okay(&inventory[j]) || (mode & USE_FULL)) max_inven++;
        }
 
        /* Restrict inventory indexes */
@@ -4711,15 +3824,15 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        else if (use_menu)
        {
                for (j = INVEN_RARM; j < INVEN_TOTAL; j++)
-                       if (select_ring_slot ? is_ring_slot(j) : item_tester_okay(&inventory[j])) max_equip++;
-               if (p_ptr->ryoute && !item_tester_no_ryoute) max_equip++;
+                       if (select_ring_slot ? is_ring_slot(j) : item_tester_okay(&inventory[j]) || (mode & USE_FULL)) max_equip++;
+               if (p_ptr->ryoute && !(mode & IGNORE_BOTHHAND_SLOT)) max_equip++;
        }
 
        /* Restrict equipment indexes */
        while ((e1 <= e2) && (!get_item_okay(e1))) e1++;
        while ((e1 <= e2) && (!get_item_okay(e2))) e2--;
 
-       if (equip && p_ptr->ryoute && !item_tester_no_ryoute)
+       if (equip && p_ptr->ryoute && !(mode & IGNORE_BOTHHAND_SLOT))
        {
                if (p_ptr->migite)
                {
@@ -4736,7 +3849,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        if (floor)
        {
                /* Scan all objects in the grid */
-               floor_num = scan_floor(floor_list, py, px, 0x03);
+               floor_num = scan_floor(floor_list, p_ptr->y, p_ptr->x, 0x03);
        }
 
        /* Accept inventory */
@@ -4753,14 +3866,10 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        {
                /* Cancel p_ptr->command_see */
                command_see = FALSE;
-
-               /* Oops */
                oops = TRUE;
-
-               /* Done */
                done = TRUE;
 
-               if (select_the_force) {
+               if (force) {
                    *cp = INVEN_FORCE;
                    item = TRUE;
                }
@@ -4803,14 +3912,13 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        /* Hack -- start out in "display" mode */
        if (command_see)
        {
-               /* Save screen */
                screen_save();
        }
 
        /* Repeat until done */
        while (!done)
        {
-               int get_item_label = 0;
+               COMMAND_CODE get_item_label = 0;
 
                /* Show choices */
                int ni = 0;
@@ -4840,11 +3948,8 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        toggle = !toggle;
                }
 
-               /* Update */
                p_ptr->window |= (PW_INVEN | PW_EQUIP);
-
-               /* Redraw windows */
-               window_stuff();
+               handle_stuff();
 
                /* Inventory screen */
                if (command_wrk == (USE_INVEN))
@@ -4854,7 +3959,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        n2 = I2A(i2);
 
                        /* Redraw if needed */
-                       if (command_see) get_item_label = show_inven(menu_line);
+                       if (command_see) get_item_label = show_inven(menu_line, mode);
                }
 
                /* Equipment screen */
@@ -4865,7 +3970,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        n2 = I2A(e2 - INVEN_RARM);
 
                        /* Redraw if needed */
-                       if (command_see) get_item_label = show_equip(menu_line);
+                       if (command_see) get_item_label = show_equip(menu_line, mode);
                }
 
                /* Floor screen */
@@ -4879,27 +3984,19 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        n2 = I2A(k - floor_top);
 
                        /* Redraw if needed */
-                       if (command_see) get_item_label = show_floor(menu_line, py, px, &min_width);
+                       if (command_see) get_item_label = show_floor(menu_line, p_ptr->y, p_ptr->x, &min_width);
                }
 
                /* Viewing inventory */
                if (command_wrk == (USE_INVEN))
                {
                        /* Begin the prompt */
-#ifdef JP
-                       sprintf(out_val, "持ち物:");
-#else
-                       sprintf(out_val, "Inven:");
-#endif
+                       sprintf(out_val, _("持ち物:", "Inven:"));
 
                        if (!use_menu)
                        {
                                /* Build the prompt */
-#ifdef JP
-                               sprintf(tmp_val, "%c-%c,'(',')',",
-#else
-                               sprintf(tmp_val, " %c-%c,'(',')',",
-#endif
+                               sprintf(tmp_val, _("%c-%c,'(',')',", " %c-%c,'(',')',"),
                                        index_to_label(i1), index_to_label(i2));
 
                                /* Append */
@@ -4907,50 +4004,28 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        }
 
                        /* Indicate ability to "view" */
-#ifdef JP
-                       if (!command_see && !use_menu) strcat(out_val, " '*'一覧,");
-#else
-                       if (!command_see && !use_menu) strcat(out_val, " * to see,");
-#endif
+                       if (!command_see && !use_menu) strcat(out_val, _(" '*'一覧,", " * to see,"));
 
                        /* Append */
                        if (allow_equip)
                        {
-#ifdef JP
                                if (!use_menu)
-                                       strcat(out_val, " '/' 装備品,");
+                                       strcat(out_val, _(" '/' 装備品,", " / for Equip,"));
                                else if (allow_floor)
-                                       strcat(out_val, " '6' 装備品,");
+                                       strcat(out_val, _(" '6' 装備品,", " 6 for Equip,"));
                                else
-                                       strcat(out_val, " '4'or'6' 装備品,");
-#else
-                               if (!use_menu)
-                                       strcat(out_val, " / for Equip,");
-                               else if (allow_floor)
-                                       strcat(out_val, " 6 for Equip,");
-                               else
-                                       strcat(out_val, " 4 or 6 for Equip,");
-#endif
+                                       strcat(out_val, _(" '4'or'6' 装備品,", " 4 or 6 for Equip,"));
                        }
 
                        /* Append */
                        if (allow_floor)
                        {
-#ifdef JP
-                               if (!use_menu)
-                                       strcat(out_val, " '-'床上,");
-                               else if (allow_equip)
-                                       strcat(out_val, " '4' 床上,");
-                               else
-                                       strcat(out_val, " '4'or'6' 床上,");
-#else
                                if (!use_menu)
-                                       strcat(out_val, " - for floor,");
+                                       strcat(out_val, _(" '-'床上,", " - for floor,"));
                                else if (allow_equip)
-                                       strcat(out_val, " 4 for floor,");
+                                       strcat(out_val, _(" '4' 床上,", " 4 for floor,"));
                                else
-                                       strcat(out_val, " 4 or 6 for floor,");
-#endif
+                                       strcat(out_val, _(" '4'or'6' 床上,", " 4 or 6 for floor,"));
                        }
                }
 
@@ -4958,20 +4033,12 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                else if (command_wrk == (USE_EQUIP))
                {
                        /* Begin the prompt */
-#ifdef JP
-                       sprintf(out_val, "装備品:");
-#else
-                       sprintf(out_val, "Equip:");
-#endif
+                       sprintf(out_val, _("装備品:", "Equip:"));
 
                        if (!use_menu)
                        {
                                /* Build the prompt */
-#ifdef JP
-                               sprintf(tmp_val, "%c-%c,'(',')',",
-#else
-                               sprintf(tmp_val, " %c-%c,'(',')',",
-#endif
+                               sprintf(tmp_val, _("%c-%c,'(',')',", " %c-%c,'(',')',"),
                                        index_to_label(e1), index_to_label(e2));
 
                                /* Append */
@@ -4979,50 +4046,28 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        }
 
                        /* Indicate ability to "view" */
-#ifdef JP
-                       if (!command_see && !use_menu) strcat(out_val, " '*'一覧,");
-#else
-                       if (!command_see && !use_menu) strcat(out_val, " * to see,");
-#endif
+                       if (!command_see && !use_menu) strcat(out_val, _(" '*'一覧,", " * to see,"));
 
                        /* Append */
                        if (allow_inven)
                        {
-#ifdef JP
-                               if (!use_menu)
-                                       strcat(out_val, " '/' 持ち物,");
-                               else if (allow_floor)
-                                       strcat(out_val, " '4' 持ち物,");
-                               else
-                                       strcat(out_val, " '4'or'6' 持ち物,");
-#else
                                if (!use_menu)
-                                       strcat(out_val, " / for Inven,");
+                                       strcat(out_val, _(" '/' 持ち物,", " / for Inven,"));
                                else if (allow_floor)
-                                       strcat(out_val, " 4 for Inven,");
+                                       strcat(out_val, _(" '4' 持ち物,", " 4 for Inven,"));
                                else
-                                       strcat(out_val, " 4 or 6 for Inven,");
-#endif
+                                       strcat(out_val, _(" '4'or'6' 持ち物,", " 4 or 6 for Inven,"));
                        }
 
                        /* Append */
                        if (allow_floor)
                        {
-#ifdef JP
-                               if (!use_menu)
-                                       strcat(out_val, " '-'床上,");
-                               else if (allow_inven)
-                                       strcat(out_val, " '6' 床上,");
-                               else
-                                       strcat(out_val, " '4'or'6' 床上,");
-#else
                                if (!use_menu)
-                                       strcat(out_val, " - for floor,");
+                                       strcat(out_val, _(" '-'床上,", " - for floor,"));
                                else if (allow_inven)
-                                       strcat(out_val, " 6 for floor,");
+                                       strcat(out_val, _(" '6' 床上,", " 6 for floor,"));
                                else
-                                       strcat(out_val, " 4 or 6 for floor,");
-#endif
+                                       strcat(out_val, _(" '4'or'6' 床上,", " 4 or 6 for floor,"));
                        }
                }
 
@@ -5030,94 +4075,54 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                else if (command_wrk == (USE_FLOOR))
                {
                        /* Begin the prompt */
-#ifdef JP
-                       sprintf(out_val, "床上:");
-#else
-                       sprintf(out_val, "Floor:");
-#endif
+                       sprintf(out_val, _("床上:", "Floor:"));
 
                        if (!use_menu)
                        {
                                /* Build the prompt */
-#ifdef JP
-                               sprintf(tmp_val, "%c-%c,'(',')',", n1, n2);
-#else
-                               sprintf(tmp_val, " %c-%c,'(',')',", n1, n2);
-#endif
+                               sprintf(tmp_val, _("%c-%c,'(',')',", " %c-%c,'(',')',"), n1, n2);
 
                                /* Append */
                                strcat(out_val, tmp_val);
                        }
 
                        /* Indicate ability to "view" */
-#ifdef JP
-                       if (!command_see && !use_menu) strcat(out_val, " '*'一覧,");
-#else
-                       if (!command_see && !use_menu) strcat(out_val, " * to see,");
-#endif
+                       if (!command_see && !use_menu) strcat(out_val, _(" '*'一覧,", " * to see,"));
 
                        if (use_menu)
                        {
                                if (allow_inven && allow_equip)
                                {
-#ifdef JP
-                                       strcat(out_val, " '4' 装備品, '6' 持ち物,");
-#else
-                                       strcat(out_val, " 4 for Equip, 6 for Inven,");
-#endif
+                                       strcat(out_val, _(" '4' 装備品, '6' 持ち物,", " 4 for Equip, 6 for Inven,"));
                                }
                                else if (allow_inven)
                                {
-#ifdef JP
-                                       strcat(out_val, " '4'or'6' 持ち物,");
-#else
-                                       strcat(out_val, " 4 or 6 for Inven,");
-#endif
+                                       strcat(out_val, _(" '4'or'6' 持ち物,", " 4 or 6 for Inven,"));
                                }
                                else if (allow_equip)
                                {
-#ifdef JP
-                                       strcat(out_val, " '4'or'6' 装備品,");
-#else
-                                       strcat(out_val, " 4 or 6 for Equip,");
-#endif
+                                       strcat(out_val, _(" '4'or'6' 装備品,", " 4 or 6 for Equip,"));
                                }
                        }
                        /* Append */
                        else if (allow_inven)
                        {
-#ifdef JP
-                               strcat(out_val, " '/' 持ち物,");
-#else
-                               strcat(out_val, " / for Inven,");
-#endif
+                               strcat(out_val, _(" '/' 持ち物,", " / for Inven,"));
                        }
                        else if (allow_equip)
                        {
-#ifdef JP
-                               strcat(out_val, " '/'装備品,");
-#else
-                               strcat(out_val, " / for Equip,");
-#endif
+                               strcat(out_val, _(" '/'装備品,", " / for Equip,"));
                        }
 
                        /* Append */
                        if (command_see && !use_menu)
                        {
-#ifdef JP
-                               strcat(out_val, " Enter 次,");
-#else
-                               strcat(out_val, " Enter for scroll down,");
-#endif
+                               strcat(out_val, _(" Enter 次,", " Enter for scroll down,"));
                        }
                }
 
                /* Append */
-#ifdef JP
-               if (select_the_force) strcat(out_val, " 'w'練気術,");
-#else
-               if (select_the_force) strcat(out_val, " w for the Force,");
-#endif
+               if (force) strcat(out_val, _(" 'w'練気術,", " w for the Force,"));
 
                /* Finish the prompt */
                strcat(out_val, " ESC");
@@ -5208,10 +4213,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -5269,10 +4271,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -5322,7 +4321,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        }
                        case 'w':
                        {
-                               if (select_the_force) {
+                               if (force) {
                                        *cp = INVEN_FORCE;
                                        item = TRUE;
                                        done = TRUE;
@@ -5352,15 +4351,12 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                {
                                        /* Flip flag */
                                        command_see = FALSE;
-
-                                       /* Load screen */
                                        screen_load();
                                }
 
                                /* Show the list */
                                else
                                {
-                                       /* Save screen */
                                        screen_save();
 
                                        /* Flip flag */
@@ -5373,8 +4369,9 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                        case '\r':
                        case '+':
                        {
-                               int i, o_idx;
-                               cave_type *c_ptr = &cave[py][px];
+                               int i;
+                               OBJECT_IDX o_idx;
+                               cave_type *c_ptr = &cave[p_ptr->y][p_ptr->x];
 
                                if (command_wrk != (USE_FLOOR)) break;
 
@@ -5396,15 +4393,12 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                o_list[i].next_o_idx = o_idx;
 
                                /* Re-scan floor list */ 
-                               floor_num = scan_floor(floor_list, py, px, 0x03);
+                               floor_num = scan_floor(floor_list, p_ptr->y, p_ptr->x, 0x03);
 
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -5451,10 +4445,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -5503,10 +4494,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                /* Hack -- Fix screen */
                                if (command_see)
                                {
-                                       /* Load screen */
                                        screen_load();
-
-                                       /* Save screen */
                                        screen_save();
                                }
 
@@ -5569,9 +4557,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                (*cp) = k;
                                item = TRUE;
                                done = TRUE;
-#ifdef ALLOW_REPEAT
                                cur_tag = which;
-#endif /* ALLOW_REPEAT */
                                break;
                        }
 
@@ -5638,7 +4624,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
 
                        case 'w':
                        {
-                               if (select_the_force) {
+                               if (force) {
                                        *cp = INVEN_FORCE;
                                        item = TRUE;
                                        done = TRUE;
@@ -5680,9 +4666,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                                (*cp) = k;
                                                item = TRUE;
                                                done = TRUE;
-#ifdef ALLOW_REPEAT
                                                cur_tag = which;
-#endif /* ALLOW_REPEAT */
                                                break;
                                        }
                                }
@@ -5698,16 +4682,14 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                                (*cp) = k;
                                                item = TRUE;
                                                done = TRUE;
-#ifdef ALLOW_REPEAT
                                                cur_tag = which;
-#endif /* ALLOW_REPEAT */
                                                break;
                                        }
                                }
 
                                /* Extract "query" setting */
                                ver = isupper(which);
-                               which = tolower(which);
+                               which = (char)tolower(which);
 
                                /* Convert letter to inventory index */
                                if (command_wrk == (USE_INVEN))
@@ -5749,12 +4731,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                                }
 
                                /* Verify the item */
-#ifdef JP
-if (ver && !verify("本当に", k))
-#else
-                               if (ver && !verify("Try", k))
-#endif
-
+                               if (ver && !verify(_("本当に", "Try"), k))
                                {
                                        done = TRUE;
                                        break;
@@ -5780,7 +4757,6 @@ if (ver && !verify("本当に", k))
        /* Fix the screen if necessary */
        if (command_see)
        {
-               /* Load screen */
                screen_load();
 
                /* Hack -- Cancel "display" */
@@ -5799,12 +4775,8 @@ if (ver && !verify("本当に", k))
        /* Toggle again if needed */
        if (toggle) toggle_inven_equip();
 
-       /* Update */
        p_ptr->window |= (PW_INVEN | PW_EQUIP);
-
-       /* Window stuff */
-       window_stuff();
-
+       handle_stuff();
 
        /* Clear the prompt line */
        prt("", 0, 0);
@@ -5814,15 +4786,10 @@ if (ver && !verify("本当に", k))
 
        if (item)
        {
-#ifdef ALLOW_REPEAT
                repeat_push(*cp);
                if (command_cmd) prev_tag = cur_tag;
-#endif /* ALLOW_REPEAT */
-
                command_cmd = 0; /* Hack -- command_cmd is no longer effective */
        }
-
-       /* Result */
        return (item);
 }
 
@@ -5832,23 +4799,16 @@ if (ver && !verify("本当に", k))
  */
 static bool py_pickup_floor_aux(void)
 {
-       s16b this_o_idx;
-
+       OBJECT_IDX this_o_idx;
        cptr q, s;
-
-       int item;
+       OBJECT_IDX item;
 
        /* Restrict the choices */
        item_tester_hook = inven_carry_okay;
 
        /* Get an object */
-#ifdef JP
-       q = "どれを拾いますか?";
-       s = "もうザックには床にあるどのアイテムも入らない。";
-#else
-       q = "Get which item? ";
-       s = "You no longer have any room for the objects on the floor.";
-#endif
+       q = _("どれを拾いますか?", "Get which item? ");
+       s = _("もうザックには床にあるどのアイテムも入らない。", "You no longer have any room for the objects on the floor.");
 
        if (get_item(&item, q, s, (USE_FLOOR)))
        {
@@ -5874,52 +4834,47 @@ static bool py_pickup_floor_aux(void)
  */
 void py_pickup_floor(bool pickup)
 {
-       s16b this_o_idx, next_o_idx = 0;
+       OBJECT_IDX this_o_idx, next_o_idx = 0;
 
-       char o_name[MAX_NLEN];
+       GAME_TEXT o_name[MAX_NLEN];
        object_type *o_ptr;
 
-       int floor_num = 0, floor_o_idx = 0;
+       int floor_num = 0;
+       OBJECT_IDX floor_o_idx = 0;
 
        int can_pickup = 0;
 
        /* Scan the pile of objects */
-       for (this_o_idx = cave[py][px].o_idx; this_o_idx; this_o_idx = next_o_idx)
+       for (this_o_idx = cave[p_ptr->y][p_ptr->x].o_idx; this_o_idx; this_o_idx = next_o_idx)
        {
-               object_type *o_ptr;
-
                /* Access the object */
                o_ptr = &o_list[this_o_idx];
 
-               /* Describe the object */
                object_desc(o_name, o_ptr, 0);
 
                /* Access the next object */
                next_o_idx = o_ptr->next_o_idx;
 
                /* Hack -- disturb */
-               disturb(0, 0);
+               disturb(FALSE, FALSE);
 
                /* Pick up gold */
                if (o_ptr->tval == TV_GOLD)
                {
-                       /* Message */
 #ifdef JP
-               msg_format(" $%ld の価値がある%sを見つけた。",
-                          (long)o_ptr->pval, o_name);
+                       msg_format(" $%ld の価値がある%sを見つけた。",
+                               (long)o_ptr->pval, o_name);
 #else
                        msg_format("You have found %ld gold pieces worth of %s.",
-                               (long) o_ptr->pval, o_name);
+                               (long)o_ptr->pval, o_name);
 #endif
 
-
                        /* Collect the gold */
                        p_ptr->au += o_ptr->pval;
 
                        /* Redraw gold */
                        p_ptr->redraw |= (PR_GOLD);
 
-                       /* Window stuff */
                        p_ptr->window |= (PW_PLAYER);
 
                        /* Delete the gold */
@@ -5973,31 +4928,17 @@ void py_pickup_floor(bool pickup)
 
 #endif /* ALLOW_EASY_SENSE */
 
-                       /* Describe the object */
                        object_desc(o_name, o_ptr, 0);
 
-                       /* Message */
-#ifdef JP
-                               msg_format("%sがある。", o_name);
-#else
-                       msg_format("You see %s.", o_name);
-#endif
-
+                       msg_format(_("%sがある。", "You see %s."), o_name);
                }
 
                /* Multiple objects */
                else
                {
-                       /* Message */
-#ifdef JP
-                       msg_format("%d 個のアイテムの山がある。", floor_num);
-#else
-                       msg_format("You see a pile of %d items.", floor_num);
-#endif
-
+                       msg_format(_("%d 個のアイテムの山がある。", "You see a pile of %d items."), floor_num);
                }
 
-               /* Done */
                return;
        }
 
@@ -6021,31 +4962,18 @@ void py_pickup_floor(bool pickup)
 
 #endif /* ALLOW_EASY_SENSE */
 
-                       /* Describe the object */
                        object_desc(o_name, o_ptr, 0);
 
-                       /* Message */
-#ifdef JP
-                               msg_format("ザックには%sを入れる隙間がない。", o_name);
-#else
-                       msg_format("You have no room for %s.", o_name);
-#endif
-
+                       msg_format(_("ザックには%sを入れる隙間がない。", "You have no room for %s."), o_name);
                }
 
                /* Multiple objects */
                else
                {
-                       /* Message */
-#ifdef JP
-                       msg_format("ザックには床にあるどのアイテムも入らない。", o_name);
-#else
-                       msg_print("You have no room for any of the objects on the floor.");
-#endif
+                       msg_print(_("ザックには床にあるどのアイテムも入らない。", "You have no room for any of the objects on the floor."));
 
                }
 
-               /* Done */
                return;
        }
 
@@ -6071,21 +4999,14 @@ void py_pickup_floor(bool pickup)
 
 #endif /* ALLOW_EASY_SENSE */
 
-                       /* Describe the object */
                        object_desc(o_name, o_ptr, 0);
 
                        /* Build a prompt */
-#ifdef JP
-                       (void) sprintf(out_val, "%sを拾いますか? ", o_name);
-#else
-                       (void) sprintf(out_val, "Pick up %s? ", o_name);
-#endif
-
+                       (void) sprintf(out_val, _("%sを拾いますか? ", "Pick up %s? "), o_name);
 
                        /* Ask the user to confirm */
                        if (!get_check(out_val))
                        {
-                               /* Done */
                                return;
                        }
                }
@@ -6117,5 +5038,3 @@ void py_pickup_floor(bool pickup)
                }
        }
 }
-
-#endif /* ALLOW_EASY_FLOOR */