Changeset 1150
- Timestamp:
- 11/16/07 10:06:45 (11 months ago)
- Files:
-
- 1.8.3/branches/devel/src/atr_tab.c (modified) (1 diff)
- 1.8.3/branches/devel/src/command.c (modified) (2 diffs)
- 1.8.3/branches/devel/src/conf.c (modified) (1 diff)
- 1.8.3/branches/devel/src/cque.c (modified) (1 diff)
- 1.8.3/branches/devel/src/create.c (modified) (1 diff)
- 1.8.3/branches/devel/src/extchat.c (modified) (2 diffs)
- 1.8.3/branches/devel/src/function.c (modified) (1 diff)
- 1.8.3/branches/devel/src/look.c (modified) (9 diffs)
- 1.8.3/branches/devel/src/parse.c (modified) (1 diff)
- 1.8.3/branches/devel/src/set.c (modified) (3 diffs)
- 1.8.3/branches/devel/src/speech.c (modified) (6 diffs)
- 1.8.3/branches/devel/src/strutil.c (modified) (1 diff)
- 1.8.3/branches/devel/src/wiz.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/devel/src/atr_tab.c
r1072 r1150 366 366 { 367 367 char *b = list_attribs(); 368 notify_format(player, "Attribs: %s", lc ? strlower(b) : b);368 notify_format(player, T("Attribs: %s"), lc ? strlower(b) : b); 369 369 } 370 370 1.8.3/branches/devel/src/command.c
r1148 r1150 1669 1669 { 1670 1670 char *b = list_commands(); 1671 notify_format(player, "Commands: %s", lc ? strlower(b) : b);1671 notify_format(player, T("Commands: %s"), lc ? strlower(b) : b); 1672 1672 } 1673 1673 … … 1943 1943 if (Wizard(player) || has_power_by_name(player, "HOOK", NOTYPE)) { 1944 1944 if (GoodObject(cmd->hooks.before.obj)) 1945 notify_format(player, "@hook/before: #%d/%s",1945 notify_format(player, T("@hook/before: #%d/%s"), 1946 1946 cmd->hooks.before.obj, cmd->hooks.before.attrname); 1947 1947 if (GoodObject(cmd->hooks.after.obj)) 1948 notify_format(player, "@hook/after: #%d/%s", cmd->hooks.after.obj,1948 notify_format(player, T("@hook/after: #%d/%s"), cmd->hooks.after.obj, 1949 1949 cmd->hooks.after.attrname); 1950 1950 if (GoodObject(cmd->hooks.ignore.obj)) 1951 notify_format(player, "@hook/ignore: #%d/%s",1951 notify_format(player, T("@hook/ignore: #%d/%s"), 1952 1952 cmd->hooks.ignore.obj, cmd->hooks.ignore.attrname); 1953 1953 if (GoodObject(cmd->hooks.override.obj)) 1954 notify_format(player, "@hook/override: #%d/%s",1954 notify_format(player, T("@hook/override: #%d/%s"), 1955 1955 cmd->hooks.override.obj, cmd->hooks.override.attrname); 1956 1956 } 1.8.3/branches/devel/src/conf.c
r1113 r1150 537 537 {NULL, NULL, 0} 538 538 }; 539 540 #if 0 541 /* Just to mark these strings for translation */ 542 PENNCONFGROUP dummy[] = { 543 {"attribs", T("Options affecting attributes"), 0}, 544 {"chat", T("Chat system options"), 0}, 545 {"cmds", T("Options affecting command behavior"), 0}, 546 {"compile", T("Compile-time options"), 0}, 547 {"cosmetic", T("Cosmetic options"), 0}, 548 {"costs", T("Costs"), 0}, 549 {"db", T("Database options"), 0}, 550 {"dump", T("Options affecting dumps and other periodic processes"), 0}, 551 {"files", T("Files used by the MUSH"), CGP_GOD}, 552 {"flags", T("Default flags for new objects"), 0}, 553 {"funcs", T("Options affecting function behavior"), 0}, 554 {"limits", T("Limits and other constants"), 0}, 555 {"log", T("Logging options"), 0}, 556 {"messages", T("Message files sent by the MUSH"), CGP_GOD}, 557 {"net", T("Networking and connection-related options"), 0}, 558 {"tiny", T("TinyMUSH compatibility options"), 0}, 559 {NULL, NULL, 0} 560 }; 561 #endif 539 562 540 563 /** Returns a pointer to a newly allocated PENNCONF object. 1.8.3/branches/devel/src/cque.c
r963 r1150 1018 1018 notify(player, T("------------ Queue Done ------------")); 1019 1019 notify_format(player, 1020 "Totals: Player...%d/%d[%ddel] Object...%d/%d[%ddel] Wait...%d/%d Semaphore...%d/%d", 1020 T 1021 ("Totals: Player...%d/%d[%ddel] Object...%d/%d[%ddel] Wait...%d/%d Semaphore...%d/%d"), 1021 1022 pq, tpq, dpq, oq, toq, doq, wq, twq, sq, tsq); 1022 1023 } 1.8.3/branches/devel/src/create.c
r915 r1150 473 473 474 474 /* and we're done */ 475 notify_format(player, "Created: Object %s.", unparse_dbref(thing));475 notify_format(player, T("Created: Object %s."), unparse_dbref(thing)); 476 476 current_state.things++; 477 477 local_data_create(thing); 1.8.3/branches/devel/src/extchat.c
r1141 r1150 2078 2078 notify_noenter(player, open_tag("SAMP")); 2079 2079 notify_format(player, "%-30s %-5s %8s %-16s %-8s %-3s", 2080 "Name", "Users", "Msgs", T("Chan Type"), "Status", "Buf"); 2080 T("Name"), T("Users"), T("Msgs"), T("Chan Type"), T("Status"), 2081 T("Buf")); 2081 2082 for (c = channels; c; c = c->next) { 2082 2083 strcpy(cleanname, remove_markup(ChanName(c), NULL)); … … 2127 2128 ChanCreator(c) == player ? '*' : '-', 2128 2129 /* User status */ 2129 u ? (Chanuser_Gag(u) ? "Gag" : "On") : "Off",2130 u ? (Chanuser_Gag(u) ? T("Gag") : T("On")) : T("Off"), 2130 2131 (u && Chanuser_Quiet(u)) ? 'Q' : ' ', 2131 2132 (u && Chanuser_Hide(u)) ? 'H' : ' ', 1.8.3/branches/devel/src/function.c
r1124 r1150 801 801 /* lists all built-in functions. */ 802 802 char *b = list_functions(NULL); 803 notify_format(player, "Functions: %s", lc ? strlower(b) : b);803 notify_format(player, T("Functions: %s"), lc ? strlower(b) : b); 804 804 } 805 805 1.8.3/branches/devel/src/look.c
r1066 r1150 722 722 look_simple(player, thing); 723 723 if (!(Opaque(thing))) 724 look_contents(player, thing, "Carrying:");724 look_contents(player, thing, T("Carrying:")); 725 725 break; 726 726 default: … … 1186 1186 if (Hearer(here) || Listener(here)) { 1187 1187 if (Connected(here)) 1188 notify_format(player, "%s [speech]. (connected)", Name(here));1188 notify_format(player, T("%s [speech]. (connected)"), Name(here)); 1189 1189 else 1190 notify_format(player, "%s [speech].", Name(here));1190 notify_format(player, T("%s [speech]."), Name(here)); 1191 1191 } 1192 1192 if (Commer(here)) 1193 notify_format(player, "%s [commands].", Name(here));1193 notify_format(player, T("%s [commands]."), Name(here)); 1194 1194 } 1195 1195 } … … 1202 1202 if (Audible(here)) { 1203 1203 strcpy(tbuf1, Name(here)); 1204 for (p = tbuf1; *p && (*p != ';'); p++);1204 p = seek_char(tbuf1, ';'); 1205 1205 *p = '\0'; 1206 notify_format(player, "%s [broadcasting].", tbuf1);1206 notify_format(player, T("%s [broadcasting]."), tbuf1); 1207 1207 } 1208 1208 } … … 1226 1226 if (Hearer(here) || Listener(here)) { 1227 1227 if (Connected(here)) 1228 notify_format(player, "%s [speech]. (connected)", Name(here));1228 notify_format(player, T("%s [speech]. (connected)"), Name(here)); 1229 1229 else 1230 notify_format(player, "%s [speech].", Name(here));1230 notify_format(player, T("%s [speech]."), Name(here)); 1231 1231 } 1232 1232 if (Commer(here)) 1233 notify_format(player, "%s [commands].", Name(here));1233 notify_format(player, T("%s [commands]."), Name(here)); 1234 1234 } 1235 1235 } … … 1349 1349 if (Location(counter) == place) { 1350 1350 notify_format(player, 1351 "%s(#%d) [from: %s(#%d)]", Name(counter),1351 T("%s(#%d) [from: %s(#%d)]"), Name(counter), 1352 1352 counter, Name(Source(counter)), Source(counter)); 1353 1353 exc++; … … 1358 1358 if (rd) { 1359 1359 if (Location(counter) == place) { 1360 notify_format(player, "%s(#%d) [dropto]", Name(counter), counter); 1360 notify_format(player, T("%s(#%d) [dropto]"), Name(counter), 1361 counter); 1361 1362 rc++; 1362 1363 } … … 1366 1367 if (td) { 1367 1368 if (Home(counter) == place) { 1368 notify_format(player, "%s(#%d) [home]", Name(counter), counter);1369 notify_format(player, T("%s(#%d) [home]"), Name(counter), counter); 1369 1370 tc++; 1370 1371 } … … 1374 1375 if (pd) { 1375 1376 if (Home(counter) == place) { 1376 notify_format(player, "%s(#%d) [home]", Name(counter), counter);1377 notify_format(player, T("%s(#%d) [home]"), Name(counter), counter); 1377 1378 pc++; 1378 1379 } … … 1389 1390 notify(player, T("---------- Entrances Done ----------")); 1390 1391 notify_format(player, 1391 "Totals: Rooms...%d Exits...%d Objects...%d Players...%d", 1392 T 1393 ("Totals: Rooms...%d Exits...%d Objects...%d Players...%d"), 1392 1394 rc, exc, tc, pc); 1393 1395 return; 1.8.3/branches/devel/src/parse.c
r1145 r1150 1317 1317 } 1318 1318 if ((nfargs < fp->minargs) || (nfargs > abs(fp->maxargs))) { 1319 safe_str(T("#-1 FUNCTION ("), buff, bp); 1320 safe_str(fp->name, buff, bp); 1321 safe_str(") EXPECTS ", buff, bp); 1319 safe_format(buff, bp, T("#-1 FUNCTION (%s) EXPECTS "), fp->name); 1322 1320 if (fp->minargs == abs(fp->maxargs)) { 1323 1321 safe_integer(fp->minargs, buff, bp); 1324 1322 } else if ((fp->minargs + 1) == abs(fp->maxargs)) { 1325 1323 safe_integer(fp->minargs, buff, bp); 1326 safe_str( " OR ", buff, bp);1324 safe_str(T(" OR "), buff, bp); 1327 1325 safe_integer(abs(fp->maxargs), buff, bp); 1328 1326 } else if (fp->maxargs == INT_MAX) { 1329 safe_str( "AT LEAST ", buff, bp);1327 safe_str(T("AT LEAST "), buff, bp); 1330 1328 safe_integer(fp->minargs, buff, bp); 1331 1329 } else { 1332 safe_str( "BETWEEN ", buff, bp);1330 safe_str(T("BETWEEN "), buff, bp); 1333 1331 safe_integer(fp->minargs, buff, bp); 1334 safe_str( " AND ", buff, bp);1332 safe_str(T(" AND "), buff, bp); 1335 1333 safe_integer(abs(fp->maxargs), buff, bp); 1336 1334 } 1337 safe_str( " ARGUMENTS BUT GOT ", buff, bp);1335 safe_str(T(" ARGUMENTS BUT GOT "), buff, bp); 1338 1336 safe_integer(nfargs, buff, bp); 1339 1337 } else { 1.8.3/branches/devel/src/set.c
r1090 r1150 732 732 if (copies) { 733 733 notify_format(player, T("Attribute %s (%d copies)"), 734 (move ? "moved" : "copied"), copies);734 (move ? T("moved") : T("copied")), copies); 735 735 if (move) 736 736 do_set_atr(oldobj, AL_NAME(a), NULL, player, 1); 737 737 } else { 738 738 notify_format(player, T("Unable to %s attribute."), 739 (move ? "move" : "copy"));739 (move ? T("move") : T("copy"))); 740 740 } 741 741 return; … … 887 887 !AreQuiet(player, thing)) { 888 888 if (!ansi_long_flag && ShowAnsi(player)) 889 notify_format(player, "%s - Set: %s", AL_NAME(a), tbuf_ansi);889 notify_format(player, T("%s - Set: %s"), AL_NAME(a), tbuf_ansi); 890 890 else 891 notify_format(player, "%s - Set: %s", AL_NAME(a), tbuf1);891 notify_format(player, T("%s - Set: %s"), AL_NAME(a), tbuf1); 892 892 } 893 893 } else { … … 1019 1019 return; 1020 1020 } else 1021 did_it(player, thing, "USE", "Used.", "OUSE", NULL, "AUSE", NOTHING);1021 did_it(player, thing, "USE", T("Used."), "OUSE", NULL, "AUSE", NOTHING); 1022 1022 } 1023 1023 } 1.8.3/branches/devel/src/speech.c
r1143 r1150 347 347 348 348 if (!gcount) { 349 mush_free( (Malloc_t)tbuf, "string");349 mush_free(tbuf, "string"); 350 350 return; 351 351 } … … 357 357 /* Set up list of good names */ 358 358 tp = tbuf; 359 safe_str( " to ", tbuf, &tp);359 safe_str(T(" to "), tbuf, &tp); 360 360 for (who = 0; who < gcount; who++) { 361 361 if (noisy && (get_random_long(0, 100) < WHISPER_LOUDNESS)) … … 372 372 } else { 373 373 notify_format(player, T("You whisper, \"%s\"%s."), arg2, tbuf); 374 p = tprintf( "%s whispers%s: %s", Name(player),374 p = tprintf(T("%s whispers%s: %s"), Name(player), 375 375 gcount > 1 ? tbuf : "", arg2); 376 376 } … … 385 385 if (!GoodObject(first)) 386 386 return; 387 p = tprintf( "%s whispers%s.", Name(player), tbuf);387 p = tprintf(T("%s whispers%s."), Name(player), tbuf); 388 388 DOLIST(first, first) { 389 389 overheard = 1; … … 398 398 } 399 399 } 400 mush_free( (Malloc_t)tbuf, "string");400 mush_free(tbuf, "string"); 401 401 } 402 402 … … 674 674 flag_broadcast(mask, 0, 675 675 "%s %s %s, \"%s\"", prefix, Name(player), 676 target == WALL_ALL ? "shouts" : "says", message);676 target == WALL_ALL ? T("shouts") : T("says"), message); 677 677 } 678 678 1.8.3/branches/devel/src/strutil.c
r1055 r1150 872 872 { 873 873 char *p = (char *) s; 874 while (p && *p && (*p != c)) 874 if (!p) 875 return NULL; 876 while (*p && (*p != c)) 875 877 p++; 876 878 return p; 1.8.3/branches/devel/src/wiz.c
r1146 r1150 590 590 591 591 if ((victim = match_controlled(player, what)) == NOTHING) { 592 notify(player, "Sorry.");592 notify(player, T("Sorry.")); 593 593 return; 594 594 } … … 1231 1231 1232 1232 if (nrooms) { 1233 notify(player, "\nROOMS:");1233 notify(player, T("\nROOMS:")); 1234 1234 for (n = 0; n < nrooms; n++) { 1235 1235 tbp = tbuf; 1236 safe_format(tbuf, &tbp, "%s [owner: ", object_header(player, rooms[n])); 1236 safe_format(tbuf, &tbp, T("%s [owner: "), 1237 object_header(player, rooms[n])); 1237 1238 safe_str(object_header(player, Owner(rooms[n])), tbuf, &tbp); 1238 1239 safe_chr(']', tbuf, &tbp); … … 1245 1246 dbref from, to; 1246 1247 1247 notify(player, "\nEXITS:");1248 notify(player, T("\nEXITS:")); 1248 1249 for (n = 0; n < nexits; n++) { 1249 1250 tbp = tbuf; … … 1253 1254 from = Source(exits[n]); 1254 1255 to = Destination(exits[n]); 1255 safe_format(tbuf, &tbp, "%s [from ", object_header(player, exits[n])); 1256 safe_str((from == NOTHING) ? "NOWHERE" : object_header(player, from), 1256 safe_format(tbuf, &tbp, T("%s [from "), 1257 object_header(player, exits[n])); 1258 safe_str((from == NOTHING) ? T("NOWHERE") : object_header(player, from), 1257 1259 tbuf, &tbp); 1258 safe_str( " to ", tbuf, &tbp);1259 safe_str((to == NOTHING) ? "NOWHERE": object_header(player, to),1260 safe_str(T(" to "), tbuf, &tbp); 1261 safe_str((to == NOTHING) ? T("NOWHERE") : object_header(player, to), 1260 1262 tbuf, &tbp); 1261 1263 safe_chr(']', tbuf, &tbp); … … 1266 1268 1267 1269 if (nthings) { 1268 notify(player, "\nTHINGS:");1270 notify(player, T("\nTHINGS:")); 1269 1271 for (n = 0; n < nthings; n++) { 1270 1272 tbp = tbuf; 1271 safe_format(tbuf, &tbp, "%s [owner: ",1273 safe_format(tbuf, &tbp, T("%s [owner: "), 1272 1274 object_header(player, things[n])); 1273 1275 safe_str(object_header(player, Owner(things[n])), tbuf, &tbp); … … 1280 1282 if (nplayers) { 1281 1283 int is_wizard = Search_All(player) || See_All(player); 1282 notify(player, "\nPLAYERS:");1284 notify(player, T("\nPLAYERS:")); 1283 1285 for (n = 0; n < nplayers; n++) { 1284 1286 tbp = tbuf; … … 1298 1300 ("Totals: Rooms...%d Exits...%d Things...%d Players...%d"), 1299 1301 nrooms, nexits, nthings, nplayers); 1300 mush_free( (Malloc_t)rooms, "dbref_list");1301 mush_free( (Malloc_t)exits, "dbref_list");1302 mush_free( (Malloc_t)things, "dbref_list");1303 mush_free( (Malloc_t)players, "dbref_list");1302 mush_free(rooms, "dbref_list"); 1303 mush_free(exits, "dbref_list"); 1304 mush_free(things, "dbref_list"); 1305 mush_free(players, "dbref_list"); 1304 1306 } 1305 1307 if (results)
