More translation. cmd-know now nearly has draft translation finished (but not checked).
@@ -107,55 +107,55 @@ | ||
107 | 107 | static struct |
108 | 108 | { |
109 | 109 | const _TCHAR *chars; |
110 | - const _TCHAR *name; | |
110 | + const _TCHAR *name[2]; | |
111 | 111 | } monster_group[] = |
112 | -{ | |
113 | - { (const _TCHAR *)-1, __T("Uniques") }, /* TODO -1 probably doesn't work? */ | |
114 | - { __T("A"), __T("Angels") }, | |
115 | - { __T("a"), __T("Ants") }, | |
116 | - { __T("b"), __T("Bats") }, | |
117 | - { __T("B"), __T("Birds") }, | |
118 | - { __T("C"), __T("Canines") }, | |
119 | - { __T("c"), __T("Centipedes") }, | |
120 | - { __T("uU"), __T("Demons") }, | |
121 | - { __T("dD"), __T("Dragons") }, | |
122 | - { __T("vE"), __T("Elementals/Vortices") }, | |
123 | - { __T("e"), __T("Eyes/Beholders") }, | |
124 | - { __T("f"), __T("Felines") }, | |
125 | - { __T("G"), __T("Ghosts") }, | |
126 | - { __T("OP"), __T("Giants/Ogres") }, | |
127 | - { __T("g"), __T("Golems") }, | |
128 | - { __T("H"), __T("Harpies/Hybrids") }, | |
129 | - { __T("h"), __T("Hominids (Elves, Dwarves)") }, | |
130 | - { __T("M"), __T("Hydras") }, | |
131 | - { __T("i"), __T("Icky Things") }, | |
132 | - { __T("lFI"), __T("Insects") }, | |
133 | - { __T("j"), __T("Jellies") }, | |
134 | - { __T("K"), __T("Killer Beetles") }, | |
135 | - { __T("k"), __T("Kobolds") }, | |
136 | - { __T("L"), __T("Lichs") }, | |
137 | - { __T("tp"), __T("Men") }, | |
138 | - { __T(".$?!_"), __T("Mimics") }, | |
139 | - { __T("m"), __T("Molds") }, | |
140 | - { __T(","), __T("Mushroom Patches") }, | |
141 | - { __T("n"), __T("Nagas") }, | |
142 | - { __T("o"), __T("Orcs") }, | |
143 | - { __T("q"), __T("Quadrupeds") }, | |
144 | - { __T("Q"), __T("Quylthulgs") }, | |
145 | - { __T("R"), __T("Reptiles/Amphibians") }, | |
146 | - { __T("r"), __T("Rodents") }, | |
147 | - { __T("S"), __T("Scorpions/Spiders") }, | |
148 | - { __T("s"), __T("Skeletons/Drujs") }, | |
149 | - { __T("J"), __T("Snakes") }, | |
150 | - { __T("T"), __T("Trolls") }, | |
151 | - { __T("V"), __T("Vampires") }, | |
152 | - { __T("W"), __T("Wights/Wraiths") }, | |
153 | - { __T("w"), __T("Worms/Worm Masses") }, | |
154 | - { __T("X"), __T("Xorns/Xarens") }, | |
155 | - { __T("y"), __T("Yeeks") }, | |
156 | - { __T("Y"), __T("Yeti") }, | |
157 | - { __T("Z"), __T("Zephyr Hounds") }, | |
158 | - { __T("z"), __T("Zombies") }, | |
112 | +{ /* Translation TBC */ | |
113 | + { (const _TCHAR *)-1, {__T("Uniques"),__T("j[N")} }, /* TODO -1 probably doesn't work? */ | |
114 | + { __T("A"), {__T("Angels"),__T("Vg")} }, | |
115 | + { __T("a"), {__T("Ants"),__T("a")} }, | |
116 | + { __T("b"), {__T("Bats"),__T("åå")} }, | |
117 | + { __T("B"), {__T("Birds"),__T("¹")} }, | |
118 | + { __T("C"), {__T("Canines"),__T("¢")} }, | |
119 | + { __T("c"), {__T("Centipedes"),__T("S«")} }, | |
120 | + { __T("uU"), {__T("Demons"),__T("«")} }, | |
121 | + { __T("dD"), {__T("Dragons"),__T("³")} }, | |
122 | + { __T("vE"), {__T("Elementals/Vortices"),__T("³ª")} }, | |
123 | + { __T("e"), {__T("Eyes/Beholders"),__T("ÚÊ")} }, | |
124 | + { __T("f"), {__T("Felines"),__T("L")} }, | |
125 | + { __T("G"), {__T("Ghosts"),__T("Hì")} }, | |
126 | + { __T("OP"), {__T("Giants/Ogres"),__T("l")} }, | |
127 | + { __T("g"), {__T("Golems"),__T("S[")} }, | |
128 | + { __T("H"), {__T("Harpies/Hybrids"),__T("n[s[E¼lÔ")} }, | |
129 | + { __T("h"), {__T("Hominids (Elves, Dwarves)"),__T("q [}mCh(GtAh[t)")} }, | |
130 | + { __T("M"), {__T("Hydras"),__T("qh")} }, | |
131 | + { __T("i"), {__T("Icky Things"),__T("lolo")} }, | |
132 | + { __T("lFI"), {__T("Insects"),__T("Þ")} }, | |
133 | + { __T("j"), {__T("Jellies"),__T("[[")} }, | |
134 | + { __T("K"), {__T("Killer Beetles"),__T("åNK^")} }, | |
135 | + { __T("k"), {__T("Kobolds"),__T("R{g")} }, | |
136 | + { __T("L"), {__T("Lichs"),__T("b`")} }, | |
137 | + { __T("tp"), {__T("Men"),__T("lÔ")} }, | |
138 | + { __T(".$?!_"), {__T("Mimics"),__T("~~bN")} }, | |
139 | + { __T("m"), {__T("Molds"),__T("Jr")} }, | |
140 | + { __T(","), {__T("Mushroom Patches"),__T("LmR")} }, | |
141 | + { __T("n"), {__T("Nagas"),__T("i[K")} }, | |
142 | + { __T("o"), {__T("Orcs"),__T("I[N")} }, | |
143 | + { __T("q"), {__T("Quadrupeds"),__T("l«b")} }, | |
144 | + { __T("Q"), {__T("Quylthulgs"),__T("NBXO")} }, | |
145 | + { __T("R"), {__T("Reptiles/Amphibians"),__T("à¦ÞE^Ùê")} }, | |
146 | + { __T("r"), {__T("Rodents"),__T("lY~")} }, | |
147 | + { __T("S"), {__T("Scorpions/Spiders"),__T("T\Ewå")} }, | |
148 | + { __T("s"), {__T("Skeletons/Drujs"),__T("[EhDW")} }, | |
149 | + { __T("J"), {__T("Snakes"),__T("Ö")} }, | |
150 | + { __T("T"), {__T("Trolls"),__T("g[")} }, | |
151 | + { __T("V"), {__T("Vampires"),__T("@pCA")} }, | |
152 | + { __T("W"), {__T("Wights/Wraiths"),__T("CgECX")} }, | |
153 | + { __T("w"), {__T("Worms/Worm Masses"),__T("~~Y")} }, | |
154 | + { __T("X"), {__T("Xorns/Xarens"),__T("][EU")} }, | |
155 | + { __T("y"), {__T("Yeeks"),__T("C[N")} }, | |
156 | + { __T("Y"), {__T("Yeti"),__T("CGeB")} }, | |
157 | + { __T("Z"), {__T("Zephyr Hounds"),__T("[t@[nEh")} }, | |
158 | + { __T("z"), {__T("Zombies"),__T("]r")} }, | |
159 | 159 | { NULL, NULL } |
160 | 160 | }; |
161 | 161 |
@@ -162,18 +162,18 @@ | ||
162 | 162 | /* |
163 | 163 | * Description of each feature group. |
164 | 164 | */ |
165 | -const _TCHAR *feature_group_text[] = | |
165 | +const _TCHAR *feature_group_text[][2] = | |
166 | 166 | { |
167 | - __T("Floors"), | |
168 | - __T("Traps"), | |
169 | - __T("Doors"), | |
170 | - __T("Stairs"), | |
171 | - __T("Walls"), | |
172 | - __T("Streamers"), | |
173 | - __T("Obstructions"), | |
174 | - __T("Stores"), | |
175 | - __T("Other"), | |
176 | - NULL | |
167 | + {__T("Floors"),__T("°")}, /* Translation TBC */ | |
168 | + {__T("Traps"),__T("ã©")}, | |
169 | + {__T("Doors"),__T("Ë")}, | |
170 | + {__T("Stairs"),__T("Ki")}, | |
171 | + {__T("Walls"),__T("Ç")}, | |
172 | + {__T("Streamers"),__T("¬êén`")}, /* Bad translation */ | |
173 | + {__T("Obstructions"),__T("áQ")}, | |
174 | + {__T("Stores"),__T("X")}, | |
175 | + {__T("Other"),__T("»Ì¼")}, | |
176 | + {NULL, NULL} | |
177 | 177 | }; |
178 | 178 | |
179 | 179 | /* Useful method declarations */ |
@@ -319,8 +319,9 @@ | ||
319 | 319 | |
320 | 320 | static const _TCHAR *recall_prompt(int oid) |
321 | 321 | { |
322 | - (void)oid; | |
323 | - return __T(", 'r' to recall"); | |
322 | + UNREFERENCED_PARAMETER(oid); | |
323 | + | |
324 | + return LS(__T(", 'r' to recall"),__T("A'r'ÅÚ×ðv¢o·")); /* Translation TBC */ | |
324 | 325 | } |
325 | 326 | |
326 | 327 | #define swap(a, b, what_type) (swapspace = (void*)(a)), ((a) = (what_type*)(b)), ((b) = (what_type*)swapspace) |
@@ -459,10 +460,10 @@ | ||
459 | 460 | if (redraw) |
460 | 461 | { |
461 | 462 | /* Print the title bits */ |
462 | - region_erase(&title_area); | |
463 | - prt(format(__T("Knowledge - %s"), title), 2, 0); | |
464 | - prt(__T("Group"), 4, 0); | |
465 | - prt(__T("Name"), 4, g_name_len + 3); | |
463 | + region_erase(&title_area); /* Translation TBC */ | |
464 | + prt(format(LS(__T("Knowledge - %s"),__T("m¯ - %s")), title), 2, 0); | |
465 | + prt(LS(__T("Group"),__T("°")), 4, 0); | |
466 | + prt(LS(__T("Name"),__T("¼O")), 4, g_name_len + 3); | |
466 | 467 | |
467 | 468 | if (otherfields) |
468 | 469 | prt(otherfields, 4, 55); |
@@ -477,7 +478,6 @@ | ||
477 | 478 | /* Reset redraw flag */ |
478 | 479 | redraw = FALSE; |
479 | 480 | } |
480 | - | |
481 | 481 | if (g_cur != grp_old) |
482 | 482 | { |
483 | 483 | grp_old = g_cur; |
@@ -487,7 +487,6 @@ | ||
487 | 487 | group_menu.cursor = g_cur; |
488 | 488 | object_menu.cursor = 0; |
489 | 489 | } |
490 | - | |
491 | 490 | /* HACK ... */ |
492 | 491 | if (!visual_list) |
493 | 492 | { |
@@ -503,20 +502,20 @@ | ||
503 | 502 | menu_set_filter(&object_menu, obj_list + o_cur + g_offset[g_cur], 1); |
504 | 503 | object_menu.cursor = 0; |
505 | 504 | } |
506 | - | |
507 | 505 | oid = obj_list[g_offset[g_cur]+o_cur]; |
508 | 506 | |
509 | 507 | /* Print prompt */ |
510 | 508 | { |
511 | - const _TCHAR *pedit = (!o_funcs.xattr) ? __T("") : | |
512 | - (!(attr_idx|char_idx) ? __T(", 'c' to copy") : __T(", 'c', 'p' to paste")); | |
509 | + const _TCHAR *pedit = (!o_funcs.xattr) ? __T("") : /* Translation TBC */ | |
510 | + (!(attr_idx|char_idx) ? LS(__T(", 'c' to copy"),__T("A'c'ÅRs[")) | |
511 | + : LS(__T(", 'c', 'p' to paste"),__T("A'c'A'p'Åy[Xg"))); | |
513 | 512 | const _TCHAR *xtra = o_funcs.xtra_prompt ? o_funcs.xtra_prompt(oid) : __T(""); |
514 | 513 | const _TCHAR *pvs = __T(""); |
515 | 514 | |
516 | - if (visual_list) | |
517 | - pvs = __T(", ENTER to accept"); | |
515 | + if (visual_list) /* Translation TBC */ | |
516 | + pvs = LS(__T(", ENTER to accept"),__T("AENTERųø")); | |
518 | 517 | else if (o_funcs.xattr) |
519 | - pvs = __T(", 'v' for visuals"); | |
518 | + pvs = LS(__T(", 'v' for visuals"),__T("A'v'ÅrW A")); | |
520 | 519 | |
521 | 520 | prt(format(__T("<dir>%s%s%s, ESC"), pvs, pedit, xtra), hgt - 1, 0); |
522 | 521 | } |
@@ -678,8 +677,8 @@ | ||
678 | 677 | OPT(rogue_like_commands) = omode; |
679 | 678 | |
680 | 679 | /* Prompt */ |
681 | - if (!grp_cnt) | |
682 | - prt(format(__T("No %s known."), title), 15, 0); | |
680 | + if (!grp_cnt) /* Translation TBC */ | |
681 | + prt(format(LS(__T("No %s known."),__T("%s É¢ĽàmèܹñB")), title), 15, 0); | |
683 | 682 | |
684 | 683 | FREE(g_names); |
685 | 684 | FREE(g_offset); |
@@ -964,8 +963,9 @@ | ||
964 | 963 | big_pad(66, row, a, c); |
965 | 964 | |
966 | 965 | /* Display kills */ |
967 | - if (r_ptr->flags[0] & (RF0_UNIQUE)) | |
968 | - put_str(format(__T("%s"), (r_ptr->max_num == 0)? __T(" dead") : __T("alive")), row, 70); | |
966 | + if (r_ptr->flags[0] & (RF0_UNIQUE)) /* Translation TBC */ | |
967 | + put_str(format(__T("%s"), (r_ptr->max_num == 0)? LS(__T(" dead"),__T("ªñÅé")) : | |
968 | + LS(__T("alive"),__T("ª¶«Ä¢é"))), row, 70); | |
969 | 969 | else |
970 | 970 | put_str(format(__T("%5d"), l_ptr->pkills), row, 70); |
971 | 971 | } |
@@ -997,7 +997,7 @@ | ||
997 | 997 | |
998 | 998 | static _TCHAR *m_xchar(int oid) { return &r_info[default_join[oid].oid].x_char; } |
999 | 999 | static byte *m_xattr(int oid) { return &r_info[default_join[oid].oid].x_attr; } |
1000 | -static const _TCHAR *race_name(int gid) { return monster_group[gid].name; } | |
1000 | +static const _TCHAR *race_name(int gid) { return monster_group[gid].name[arg_language]; } | |
1001 | 1001 | |
1002 | 1002 | static void mon_lore(int oid) |
1003 | 1003 | { |
@@ -1036,8 +1036,9 @@ | ||
1036 | 1036 | |
1037 | 1037 | /* Different display for the first item if we've got uniques to show */ |
1038 | 1038 | if (gid == 0 && ((&r_info[default_join[object_list[0]].oid])->flags[0] & (RF0_UNIQUE))) |
1039 | - { | |
1040 | - c_prt(TERM_L_BLUE, format(__T("%d known uniques, %d slain."), n, kills), | |
1039 | + { /* Translation TBC */ | |
1040 | + c_prt(TERM_L_BLUE, format(LS(__T("%d known uniques, %d slain."), | |
1041 | + __T("%dÌmÁÄ¢éj[NÌA%dðEµ½B")), n, kills), | |
1041 | 1042 | row, col); |
1042 | 1043 | } |
1043 | 1044 | else |
@@ -1046,8 +1047,9 @@ | ||
1046 | 1047 | |
1047 | 1048 | for (i = 0; i < z_info->r_max; i++) |
1048 | 1049 | tkills += l_list[i].pkills; |
1049 | - | |
1050 | - c_prt(TERM_L_BLUE, format(__T("Creatures slain: %d/%d (in group/in total)"), | |
1050 | + /* Translation TBC */ | |
1051 | + c_prt(TERM_L_BLUE, format(LS(__T("Creatures slain: %d/%d (in group/in total)"), | |
1052 | + __T("Eµ½mF%d/%d (°Ì/S)")), | |
1051 | 1053 | kills, tkills), row, col); |
1052 | 1054 | } |
1053 | 1055 | } |
@@ -1090,8 +1092,8 @@ | ||
1090 | 1092 | int i; |
1091 | 1093 | size_t j; |
1092 | 1094 | |
1093 | - (void)obj; | |
1094 | - (void)name; | |
1095 | + UNREFERENCED_PARAMETER(obj); | |
1096 | + UNREFERENCED_PARAMETER(name); | |
1095 | 1097 | |
1096 | 1098 | for (i = 0; i < z_info->r_max; i++) |
1097 | 1099 | { |
@@ -1130,8 +1132,8 @@ | ||
1130 | 1132 | default_join[m_count++].gid = j; |
1131 | 1133 | } |
1132 | 1134 | } |
1133 | - display_knowledge(__T("monsters"), monsters, m_count, r_funcs, m_funcs, | |
1134 | - __T(" Sym Kills")); | |
1135 | + display_knowledge(LS(__T("monsters"),__T("X^[")), monsters, m_count, r_funcs, m_funcs, | |
1136 | + LS(__T(" Sym Kills"),__T(" L EQ"))); | |
1135 | 1137 | FREE(default_join); |
1136 | 1138 | FREE(monsters); |
1137 | 1139 | } |
@@ -1196,8 +1198,9 @@ | ||
1196 | 1198 | |
1197 | 1199 | Term_gotoxy(0, 0); |
1198 | 1200 | object_info_header(o_ptr); |
1199 | - if (!object_info(o_ptr, FALSE)) | |
1200 | - text_out(__T("\n\nThis item does not seem to possess any special abilities.")); | |
1201 | + if (!object_info(o_ptr, FALSE)) /* Translation TBC */ | |
1202 | + text_out(LS(__T("\n\nThis item does not seem to possess any special abilities."), | |
1203 | + __T("\n\n±ÌACeÍÁ¥È@\ðÁĢȢ椾B"))); | |
1201 | 1204 | |
1202 | 1205 | text_out_c(TERM_L_BLUE, LS(__T("\n\n[Press any key to continue]\n"), |
1203 | 1206 | spaceme(langbuf,__T("\n\n[½©L[ðµÄ¾³¢]\n")))); |
@@ -1310,7 +1313,8 @@ | ||
1310 | 1313 | /* Collect valid artifacts */ |
1311 | 1314 | a_count = collect_known_artifacts(artifacts, z_info->a_max); |
1312 | 1315 | |
1313 | - display_knowledge(__T("artifacts"), artifacts, a_count, obj_f, art_f, 0); | |
1316 | + display_knowledge(LS(__T("artifacts"), /* Translation TBC */ | |
1317 | + __T("A[eBt@Ng")), artifacts, a_count, obj_f, art_f, 0); | |
1314 | 1318 | FREE(artifacts); |
1315 | 1319 | } |
1316 | 1320 |
@@ -1338,8 +1342,18 @@ | ||
1338 | 1342 | static void desc_ego_fake(int oid) |
1339 | 1343 | { |
1340 | 1344 | /* Hack: dereference the join */ |
1341 | - const _TCHAR *cursed[] = { __T("permanently cursed"), __T("heavily cursed"), __T("cursed") }; | |
1342 | - const _TCHAR *xtra[] = { __T("sustain"), __T("higher resistance"), __T("ability") }; | |
1345 | + const _TCHAR *cursed[][2] = | |
1346 | + { /* Translation TBC */ | |
1347 | + {__T("permanently cursed"),__T("iÌô¢ª é")}, | |
1348 | + {__T("heavily cursed"),__T("°ëµ¢ô¢ª é")}, | |
1349 | + {__T("cursed"),__T("ôÁÄ¢é")} | |
1350 | + }; | |
1351 | + const _TCHAR *xtra[][2] = | |
1352 | + { /* Translation TBC */ | |
1353 | + {__T("sustain"),__T("Û")}, | |
1354 | + {__T("higher resistance"), __T("Ï«")}, | |
1355 | + {__T("ability"),__T("\Í")} | |
1356 | + }; | |
1343 | 1357 | u32b f2, i; |
1344 | 1358 | _TCHAR langbuf[200]; |
1345 | 1359 |
@@ -1374,14 +1388,14 @@ | ||
1374 | 1388 | dummy.name2 = e_idx; |
1375 | 1389 | object_info_spoil(&dummy); |
1376 | 1390 | |
1377 | - if (e_ptr->xtra) | |
1378 | - text_out(format(__T("It provides one random %s."), xtra[e_ptr->xtra - 1])); | |
1391 | + if (e_ptr->xtra) /* Translation TBC */ | |
1392 | + text_out(format(LS(__T("It provides one random %s."),__T("êÂÌ%sðKÉñ·éB")), xtra[e_ptr->xtra - 1])); | |
1379 | 1393 | |
1380 | 1394 | for (i = 0, f2 = TR2_PERMA_CURSE; i < 3 ; f2 >>= 1, i++) |
1381 | 1395 | { |
1382 | 1396 | if (e_ptr->flags[2] & f2) |
1383 | 1397 | { |
1384 | - text_out_c(TERM_RED, format(__T("It is %s."), cursed[i])); | |
1398 | + text_out_c(TERM_RED, format(LS(__T("It is %s."),__T("%s")), cursed[i])); | |
1385 | 1399 | break; |
1386 | 1400 | } |
1387 | 1401 | } |
@@ -1444,7 +1458,7 @@ | ||
1444 | 1458 | } |
1445 | 1459 | } |
1446 | 1460 | } |
1447 | - display_knowledge(__T("ego items"), egoitems, e_count, obj_f, ego_f, __T("")); | |
1461 | + display_knowledge(LS(__T("ego items"),__T("GSACe")), egoitems, e_count, obj_f, ego_f, __T("")); | |
1448 | 1462 | |
1449 | 1463 | FREE(default_join); |
1450 | 1464 | FREE(egoitems); |
@@ -1510,7 +1524,7 @@ | ||
1510 | 1524 | } |
1511 | 1525 | /* If the type is "tried", display that */ |
1512 | 1526 | if (k_ptr->tried && !aware) |
1513 | - _tcscat_s(o_name, _countof(o_name), __T(" {tried}")); | |
1527 | + _tcscat_s(o_name, _countof(o_name), LS(__T(" {tried}"),__T(" {µ½}"))); /* TODO This probably doesn't work properly */ | |
1514 | 1528 | |
1515 | 1529 | /* Display the name */ |
1516 | 1530 | c_prt(attr, o_name, row, col); |
@@ -1567,7 +1581,8 @@ | ||
1567 | 1581 | Term_gotoxy(0,0); |
1568 | 1582 | object_info_header(o_ptr); |
1569 | 1583 | if (!object_info(o_ptr, FALSE)) |
1570 | - text_out(__T("\n\nThis item does not seem to possess any special abilities.")); | |
1584 | + text_out(LS(__T("\n\nThis item does not seem to possess any special abilities."), | |
1585 | + __T("\n\n±ÌACeÍÁ¥È@\ðÁĢȢ椾B"))); | |
1571 | 1586 | |
1572 | 1587 | text_out_c(TERM_L_BLUE, LS(__T("\n\n[Press any key to continue]\n"), |
1573 | 1588 | spaceme(langbuf,__T("\n\n[½©L[ðµÄ¾³¢]\n")))); |
@@ -1644,8 +1659,9 @@ | ||
1644 | 1659 | object_kind *k_ptr = &k_info[oid]; |
1645 | 1660 | s16b idx = get_autoinscription_index(oid); |
1646 | 1661 | |
1647 | - const _TCHAR *no_insc = __T(", 'r' to recall, '{'"); | |
1648 | - const _TCHAR *with_insc = __T(", 'r' to recall, '{', '}'"); | |
1662 | + /* Translation TBC */ | |
1663 | + const _TCHAR *no_insc = LS(__T(", 'r' to recall, '{'"),__T("A'r'ÅÚ×ðv¢o·A'{'")); | |
1664 | + const _TCHAR *with_insc = LS(__T(", 'r' to recall, '{', '}'"),__T("A'r'ÅÚ×ðv¢o·A'{'A'}'")); | |
1649 | 1665 | |
1650 | 1666 | /* Forget it if we've never seen the thing */ |
1651 | 1667 | if (k_ptr->flavor && !k_ptr->aware) |
@@ -1685,8 +1701,8 @@ | ||
1685 | 1701 | /* Avoid the prompt getting in the way */ |
1686 | 1702 | screen_save(); |
1687 | 1703 | |
1688 | - /* Prompt */ | |
1689 | - prt(__T("Inscribe with: "), 0, 0); | |
1704 | + /* Prompt */ /* Translation TBC */ | |
1705 | + prt(LS(__T("Inscribe with: "),__T("½ðÝÜ·©B ")), 0, 0); | |
1690 | 1706 | |
1691 | 1707 | /* Default note */ |
1692 | 1708 | if (idx != -1) |
@@ -1706,7 +1722,6 @@ | ||
1706 | 1722 | p_ptr->notice |= (PN_AUTOINSCRIBE); |
1707 | 1723 | p_ptr->redraw |= (PR_INVEN | PR_EQUIP); |
1708 | 1724 | } |
1709 | - | |
1710 | 1725 | /* Reload the screen */ |
1711 | 1726 | screen_load(); |
1712 | 1727 | } |
@@ -1738,10 +1753,9 @@ | ||
1738 | 1753 | if (c >= 0) objects[o_count++] = i; |
1739 | 1754 | } |
1740 | 1755 | } |
1756 | + display_knowledge(LS(__T("known objects"),__T("mÁÄ¢éACe")), objects, o_count, kind_f, obj_f, | |
1757 | + LS(__T("Inscribed Sym"),__T("ñ¾ L"))); | |
1741 | 1758 | |
1742 | - display_knowledge(__T("known objects"), objects, o_count, kind_f, obj_f, | |
1743 | - __T("Inscribed Sym")); | |
1744 | - | |
1745 | 1759 | FREE(objects); |
1746 | 1760 | } |
1747 | 1761 |
@@ -1789,7 +1803,7 @@ | ||
1789 | 1803 | return _tcscmp(f_name + fa->name, f_name + fb->name); |
1790 | 1804 | } |
1791 | 1805 | |
1792 | -static const _TCHAR *fkind_name(int gid) { return feature_group_text[gid]; } | |
1806 | +static const _TCHAR *fkind_name(int gid) { return feature_group_text[gid][arg_language]; } | |
1793 | 1807 | static byte *f_xattr(int oid) { return &f_info[oid].x_attr; } |
1794 | 1808 | static _TCHAR *f_xchar(int oid) { return &f_info[oid].x_char; } |
1795 | 1809 | static void feat_lore(int oid) { (void)oid; /* noop */ } |
@@ -1822,7 +1836,7 @@ | ||
1822 | 1836 | features[f_count++] = i; /* Currently no filter for features */ |
1823 | 1837 | } |
1824 | 1838 | |
1825 | - display_knowledge(__T("features"), features, f_count, fkind_f, feat_f, __T(" Sym")); | |
1839 | + display_knowledge(LS(__T("features"),__T("n`")), features, f_count, fkind_f, feat_f, LS(__T(" Sym"),__T(" L"))); | |
1826 | 1840 | FREE(features); |
1827 | 1841 | } |
1828 | 1842 |
@@ -1830,8 +1844,8 @@ | ||
1830 | 1844 | |
1831 | 1845 | static void do_cmd_self_knowledge(void *obj, const _TCHAR *name) |
1832 | 1846 | { |
1833 | - (void)obj; | |
1834 | - (void)name; | |
1847 | + UNREFERENCED_PARAMETER(obj); | |
1848 | + UNREFERENCED_PARAMETER(name); | |
1835 | 1849 | |
1836 | 1850 | /* display self knowledge we already know about. */ |
1837 | 1851 | self_knowledge(FALSE); |
@@ -1839,15 +1853,15 @@ | ||
1839 | 1853 | |
1840 | 1854 | static void do_cmd_knowledge_scores(void *obj, const _TCHAR *name) |
1841 | 1855 | { |
1842 | - (void)obj; | |
1843 | - (void)name; | |
1856 | + UNREFERENCED_PARAMETER(obj); | |
1857 | + UNREFERENCED_PARAMETER(name); | |
1844 | 1858 | show_scores(); |
1845 | 1859 | } |
1846 | 1860 | |
1847 | 1861 | static void do_cmd_knowledge_history(void *obj, const _TCHAR *name) |
1848 | 1862 | { |
1849 | - (void)obj; | |
1850 | - (void)name; | |
1863 | + UNREFERENCED_PARAMETER(obj); | |
1864 | + UNREFERENCED_PARAMETER(name); | |
1851 | 1865 | history_display(); |
1852 | 1866 | } |
1853 | 1867 |
@@ -4,9 +4,7 @@ | ||
4 | 4 | * - Fixed __T on this page. |
5 | 5 | * |
6 | 6 | * Translation Status: |
7 | - * - Started work on whole phrases on this page. | |
8 | - * - plog() done on this page (weren't any). | |
9 | - * - prt() done on this page (only one). | |
7 | + * - Done, but not checked. | |
10 | 8 | */ |
11 | 9 | /* |
12 | 10 | * File: cave.c |
@@ -174,7 +172,6 @@ | ||
174 | 172 | /* Assume los */ |
175 | 173 | return (TRUE); |
176 | 174 | } |
177 | - | |
178 | 175 | /* Extract some signs */ |
179 | 176 | sx = (dx < 0) ? -1 : 1; |
180 | 177 | sy = (dy < 0) ? -1 : 1; |
@@ -914,7 +911,6 @@ | ||
914 | 911 | { |
915 | 912 | g->f_idx = FEAT_NONE; |
916 | 913 | } |
917 | - | |
918 | 914 | /* Objects */ |
919 | 915 | for (o_ptr = get_first_object(y, x); o_ptr; o_ptr = get_next_object(o_ptr)) |
920 | 916 | { |
@@ -2207,7 +2203,8 @@ | ||
2207 | 2203 | /* Paranoia */ |
2208 | 2204 | if (hack->num_slopes >= VINFO_MAX_SLOPES) |
2209 | 2205 | { |
2210 | - quit_fmt(__T("Too many slopes (%d)!"), | |
2206 | + quit_fmt(LS(__T("Too many slopes (%d)!"), | |
2207 | + __T("斜線が多すぎます!(%d)")), /* Translation TBC */ | |
2211 | 2208 | VINFO_MAX_SLOPES); |
2212 | 2209 | } |
2213 | 2210 |
@@ -2215,7 +2212,6 @@ | ||
2215 | 2212 | hack->slopes[hack->num_slopes++] = m; |
2216 | 2213 | } |
2217 | 2214 | } |
2218 | - | |
2219 | 2215 | /* Track slope range */ |
2220 | 2216 | if (hack->slopes_min[y][x] > m) hack->slopes_min[y][x] = m; |
2221 | 2217 | if (hack->slopes_max[y][x] < m) hack->slopes_max[y][x] = m; |
@@ -2268,7 +2264,8 @@ | ||
2268 | 2264 | /* Paranoia */ |
2269 | 2265 | if (num_grids >= VINFO_MAX_GRIDS) |
2270 | 2266 | { |
2271 | - quit_fmt(__T("Too many grids (%d >= %d)!"), | |
2267 | + quit_fmt(LS(__T("Too many grids (%d >= %d)!"), | |
2268 | + __T("マスが多すぎます!(%d >= %d)")), /* Translation TBC */ | |
2272 | 2269 | num_grids, VINFO_MAX_GRIDS); |
2273 | 2270 | } |
2274 | 2271 |
@@ -2304,7 +2301,8 @@ | ||
2304 | 2301 | /* Enforce maximal efficiency */ |
2305 | 2302 | if (num_grids < VINFO_MAX_GRIDS) |
2306 | 2303 | { |
2307 | - quit_fmt(__T("Too few grids (%d < %d)!"), | |
2304 | + quit_fmt(LS(__T("Too few grids (%d < %d)!"), | |
2305 | + __T("マスが少なすぎます!(%d < %d)")), /* Translation TBC */ | |
2308 | 2306 | num_grids, VINFO_MAX_GRIDS); |
2309 | 2307 | } |
2310 | 2308 |
@@ -2311,7 +2309,8 @@ | ||
2311 | 2309 | /* Enforce maximal efficiency */ |
2312 | 2310 | if (hack->num_slopes < VINFO_MAX_SLOPES) |
2313 | 2311 | { |
2314 | - quit_fmt(__T("Too few slopes (%d < %d)!"), | |
2312 | + quit_fmt(LS(__T("Too few slopes (%d < %d)!"), | |
2313 | + __T("斜線が少なすぎます!(%d < %d)")), /* Translation TBC */ | |
2315 | 2314 | hack->num_slopes, VINFO_MAX_SLOPES); |
2316 | 2315 | } |
2317 | 2316 |
@@ -2371,7 +2370,6 @@ | ||
2371 | 2370 | } |
2372 | 2371 | } |
2373 | 2372 | } |
2374 | - | |
2375 | 2373 | /* Default */ |
2376 | 2374 | vinfo[e].next_0 = &vinfo[0]; |
2377 | 2375 |
@@ -2389,7 +2387,6 @@ | ||
2389 | 2387 | |
2390 | 2388 | vinfo[e].next_0 = &vinfo[queue_tail - 1]; |
2391 | 2389 | } |
2392 | - | |
2393 | 2390 | /* Default */ |
2394 | 2391 | vinfo[e].next_1 = &vinfo[0]; |
2395 | 2392 |
@@ -2407,7 +2404,6 @@ | ||
2407 | 2404 | |
2408 | 2405 | vinfo[e].next_1 = &vinfo[queue_tail - 1]; |
2409 | 2406 | } |
2410 | - | |
2411 | 2407 | /* Hack -- main diagonal has special children */ |
2412 | 2408 | if (y == x) vinfo[e].next_0 = vinfo[e].next_1; |
2413 | 2409 |
@@ -2424,9 +2420,9 @@ | ||
2424 | 2420 | ((vinfo[1].bits_1 | vinfo[2].bits_1) != VINFO_BITS_1) || |
2425 | 2421 | ((vinfo[1].bits_0 | vinfo[2].bits_0) != VINFO_BITS_0)) |
2426 | 2422 | { |
2427 | - quit(__T("Incorrect bit masks!")); | |
2423 | + quit(LS(__T("Incorrect bit masks!"), | |
2424 | + __T("間違ったビット・マスクです!"))); /* Translation TBC */ | |
2428 | 2425 | } |
2429 | - | |
2430 | 2426 | /* Kill hack */ |
2431 | 2427 | FREE(hack); |
2432 | 2428 |
@@ -2755,9 +2751,7 @@ | ||
2755 | 2751 | fast_view_g[fast_view_n++] = g; |
2756 | 2752 | } |
2757 | 2753 | } |
2758 | - | |
2759 | - /* Handle non-wall */ | |
2760 | - else | |
2754 | + else /* Handle non-wall */ | |
2761 | 2755 | { |
2762 | 2756 | /* Enqueue child */ |
2763 | 2757 | if (last != p->next_0) |
@@ -2786,7 +2780,6 @@ | ||
2786 | 2780 | /* Mark as "CAVE_LITE" */ |
2787 | 2781 | /* info |= (CAVE_LITE); */ |
2788 | 2782 | } |
2789 | - | |
2790 | 2783 | /* Perma-lit grids */ |
2791 | 2784 | else if (info & (CAVE_GLOW)) |
2792 | 2785 | { |
@@ -2793,7 +2786,6 @@ | ||
2793 | 2786 | /* Mark as "CAVE_SEEN" */ |
2794 | 2787 | info |= (CAVE_SEEN); |
2795 | 2788 | } |
2796 | - | |
2797 | 2789 | /* Save cave info */ |
2798 | 2790 | fast_cave_info[g] = info; |
2799 | 2791 |
@@ -2804,7 +2796,6 @@ | ||
2804 | 2796 | } |
2805 | 2797 | } |
2806 | 2798 | } |
2807 | - | |
2808 | 2799 | /*** Step 3 -- Complete the algorithm ***/ |
2809 | 2800 | |
2810 | 2801 | /* Handle blindness */ |
@@ -2820,7 +2811,6 @@ | ||
2820 | 2811 | fast_cave_info[g] &= ~(CAVE_SEEN); |
2821 | 2812 | } |
2822 | 2813 | } |
2823 | - | |
2824 | 2814 | /* Process "new" grids */ |
2825 | 2815 | for (i = 0; i < fast_view_n; i++) |
2826 | 2816 | { |
@@ -3156,7 +3146,6 @@ | ||
3156 | 3146 | /* Forget the object */ |
3157 | 3147 | o_ptr->marked = FALSE; |
3158 | 3148 | } |
3159 | - | |
3160 | 3149 | /* Fully update the visuals */ |
3161 | 3150 | p_ptr->update |= (PU_FORGET_VIEW | PU_UPDATE_VIEW | PU_MONSTERS); |
3162 | 3151 |