PennMUSH Community

Changeset 1150

Show
Ignore:
Timestamp:
11/16/07 10:06:45 (11 months ago)
Author:
shawnw
Message:

#7435: Strings for translation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/src/atr_tab.c

    r1072 r1150  
    366366{ 
    367367  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); 
    369369} 
    370370 
  • 1.8.3/branches/devel/src/command.c

    r1148 r1150  
    16691669{ 
    16701670  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); 
    16721672} 
    16731673 
     
    19431943  if (Wizard(player) || has_power_by_name(player, "HOOK", NOTYPE)) { 
    19441944    if (GoodObject(cmd->hooks.before.obj)) 
    1945       notify_format(player, "@hook/before: #%d/%s"
     1945      notify_format(player, T("@hook/before: #%d/%s")
    19461946                    cmd->hooks.before.obj, cmd->hooks.before.attrname); 
    19471947    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, 
    19491949                    cmd->hooks.after.attrname); 
    19501950    if (GoodObject(cmd->hooks.ignore.obj)) 
    1951       notify_format(player, "@hook/ignore: #%d/%s"
     1951      notify_format(player, T("@hook/ignore: #%d/%s")
    19521952                    cmd->hooks.ignore.obj, cmd->hooks.ignore.attrname); 
    19531953    if (GoodObject(cmd->hooks.override.obj)) 
    1954       notify_format(player, "@hook/override: #%d/%s"
     1954      notify_format(player, T("@hook/override: #%d/%s")
    19551955                    cmd->hooks.override.obj, cmd->hooks.override.attrname); 
    19561956  } 
  • 1.8.3/branches/devel/src/conf.c

    r1113 r1150  
    537537  {NULL, NULL, 0} 
    538538}; 
     539 
     540#if 0 
     541/* Just to mark these strings for translation */ 
     542PENNCONFGROUP 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 
    539562 
    540563/** Returns a pointer to a newly allocated PENNCONF object. 
  • 1.8.3/branches/devel/src/cque.c

    r963 r1150  
    10181018      notify(player, T("------------  Queue Done  ------------")); 
    10191019    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"), 
    10211022                  pq, tpq, dpq, oq, toq, doq, wq, twq, sq, tsq); 
    10221023  } 
  • 1.8.3/branches/devel/src/create.c

    r915 r1150  
    473473 
    474474    /* 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)); 
    476476    current_state.things++; 
    477477    local_data_create(thing); 
  • 1.8.3/branches/devel/src/extchat.c

    r1141 r1150  
    20782078    notify_noenter(player, open_tag("SAMP")); 
    20792079  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")); 
    20812082  for (c = channels; c; c = c->next) { 
    20822083    strcpy(cleanname, remove_markup(ChanName(c), NULL)); 
     
    21272128                    ChanCreator(c) == player ? '*' : '-', 
    21282129                    /* User status */ 
    2129                     u ? (Chanuser_Gag(u) ? "Gag" : "On") : "Off"
     2130                    u ? (Chanuser_Gag(u) ? T("Gag") : T("On")) : T("Off")
    21302131                    (u && Chanuser_Quiet(u)) ? 'Q' : ' ', 
    21312132                    (u && Chanuser_Hide(u)) ? 'H' : ' ', 
  • 1.8.3/branches/devel/src/function.c

    r1124 r1150  
    801801  /* lists all built-in functions. */ 
    802802  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); 
    804804} 
    805805 
  • 1.8.3/branches/devel/src/look.c

    r1066 r1150  
    722722    look_simple(player, thing); 
    723723    if (!(Opaque(thing))) 
    724       look_contents(player, thing, "Carrying:"); 
     724      look_contents(player, thing, T("Carrying:")); 
    725725    break; 
    726726  default: 
     
    11861186        if (Hearer(here) || Listener(here)) { 
    11871187          if (Connected(here)) 
    1188             notify_format(player, "%s [speech]. (connected)", Name(here)); 
     1188            notify_format(player, T("%s [speech]. (connected)"), Name(here)); 
    11891189          else 
    1190             notify_format(player, "%s [speech].", Name(here)); 
     1190            notify_format(player, T("%s [speech]."), Name(here)); 
    11911191        } 
    11921192        if (Commer(here)) 
    1193           notify_format(player, "%s [commands].", Name(here)); 
     1193          notify_format(player, T("%s [commands]."), Name(here)); 
    11941194      } 
    11951195    } 
     
    12021202        if (Audible(here)) { 
    12031203          strcpy(tbuf1, Name(here)); 
    1204           for (p = tbuf1; *p && (*p != ';'); p++)
     1204          p = seek_char(tbuf1, ';')
    12051205          *p = '\0'; 
    1206           notify_format(player, "%s [broadcasting].", tbuf1); 
     1206          notify_format(player, T("%s [broadcasting]."), tbuf1); 
    12071207        } 
    12081208      } 
     
    12261226        if (Hearer(here) || Listener(here)) { 
    12271227          if (Connected(here)) 
    1228             notify_format(player, "%s [speech]. (connected)", Name(here)); 
     1228            notify_format(player, T("%s [speech]. (connected)"), Name(here)); 
    12291229          else 
    1230             notify_format(player, "%s [speech].", Name(here)); 
     1230            notify_format(player, T("%s [speech]."), Name(here)); 
    12311231        } 
    12321232        if (Commer(here)) 
    1233           notify_format(player, "%s [commands].", Name(here)); 
     1233          notify_format(player, T("%s [commands]."), Name(here)); 
    12341234      } 
    12351235    } 
     
    13491349          if (Location(counter) == place) { 
    13501350            notify_format(player, 
    1351                           "%s(#%d) [from: %s(#%d)]", Name(counter), 
     1351                          T("%s(#%d) [from: %s(#%d)]"), Name(counter), 
    13521352                          counter, Name(Source(counter)), Source(counter)); 
    13531353            exc++; 
     
    13581358        if (rd) { 
    13591359          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); 
    13611362            rc++; 
    13621363          } 
     
    13661367        if (td) { 
    13671368          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); 
    13691370            tc++; 
    13701371          } 
     
    13741375        if (pd) { 
    13751376          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); 
    13771378            pc++; 
    13781379          } 
     
    13891390    notify(player, T("----------  Entrances Done  ----------")); 
    13901391    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"), 
    13921394                  rc, exc, tc, pc); 
    13931395    return; 
  • 1.8.3/branches/devel/src/parse.c

    r1145 r1150  
    13171317          } 
    13181318          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); 
    13221320            if (fp->minargs == abs(fp->maxargs)) { 
    13231321              safe_integer(fp->minargs, buff, bp); 
    13241322            } else if ((fp->minargs + 1) == abs(fp->maxargs)) { 
    13251323              safe_integer(fp->minargs, buff, bp); 
    1326               safe_str(" OR ", buff, bp); 
     1324              safe_str(T(" OR "), buff, bp); 
    13271325              safe_integer(abs(fp->maxargs), buff, bp); 
    13281326            } else if (fp->maxargs == INT_MAX) { 
    1329               safe_str("AT LEAST ", buff, bp); 
     1327              safe_str(T("AT LEAST "), buff, bp); 
    13301328              safe_integer(fp->minargs, buff, bp); 
    13311329            } else { 
    1332               safe_str("BETWEEN ", buff, bp); 
     1330              safe_str(T("BETWEEN "), buff, bp); 
    13331331              safe_integer(fp->minargs, buff, bp); 
    1334               safe_str(" AND ", buff, bp); 
     1332              safe_str(T(" AND "), buff, bp); 
    13351333              safe_integer(abs(fp->maxargs), buff, bp); 
    13361334            } 
    1337             safe_str(" ARGUMENTS BUT GOT ", buff, bp); 
     1335            safe_str(T(" ARGUMENTS BUT GOT "), buff, bp); 
    13381336            safe_integer(nfargs, buff, bp); 
    13391337          } else { 
  • 1.8.3/branches/devel/src/set.c

    r1090 r1150  
    732732  if (copies) { 
    733733    notify_format(player, T("Attribute %s (%d copies)"), 
    734                   (move ? "moved" : "copied"), copies); 
     734                  (move ? T("moved") : T("copied")), copies); 
    735735    if (move) 
    736736      do_set_atr(oldobj, AL_NAME(a), NULL, player, 1); 
    737737  } else { 
    738738    notify_format(player, T("Unable to %s attribute."), 
    739                   (move ? "move" : "copy")); 
     739                  (move ? T("move") : T("copy"))); 
    740740  } 
    741741  return; 
     
    887887        !AreQuiet(player, thing)) { 
    888888      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); 
    890890      else 
    891         notify_format(player, "%s - Set: %s", AL_NAME(a), tbuf1); 
     891        notify_format(player, T("%s - Set: %s"), AL_NAME(a), tbuf1); 
    892892    } 
    893893  } else { 
     
    10191019      return; 
    10201020    } else 
    1021       did_it(player, thing, "USE", "Used.", "OUSE", NULL, "AUSE", NOTHING); 
     1021      did_it(player, thing, "USE", T("Used."), "OUSE", NULL, "AUSE", NOTHING); 
    10221022  } 
    10231023} 
  • 1.8.3/branches/devel/src/speech.c

    r1143 r1150  
    347347 
    348348  if (!gcount) { 
    349     mush_free((Malloc_t) tbuf, "string"); 
     349    mush_free(tbuf, "string"); 
    350350    return; 
    351351  } 
     
    357357  /* Set up list of good names */ 
    358358  tp = tbuf; 
    359   safe_str(" to ", tbuf, &tp); 
     359  safe_str(T(" to "), tbuf, &tp); 
    360360  for (who = 0; who < gcount; who++) { 
    361361    if (noisy && (get_random_long(0, 100) < WHISPER_LOUDNESS)) 
     
    372372  } else { 
    373373    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), 
    375375                gcount > 1 ? tbuf : "", arg2); 
    376376  } 
     
    385385    if (!GoodObject(first)) 
    386386      return; 
    387     p = tprintf("%s whispers%s.", Name(player), tbuf); 
     387    p = tprintf(T("%s whispers%s."), Name(player), tbuf); 
    388388    DOLIST(first, first) { 
    389389      overheard = 1; 
     
    398398    } 
    399399  } 
    400   mush_free((Malloc_t) tbuf, "string"); 
     400  mush_free(tbuf, "string"); 
    401401} 
    402402 
     
    674674    flag_broadcast(mask, 0, 
    675675                   "%s %s %s, \"%s\"", prefix, Name(player), 
    676                    target == WALL_ALL ? "shouts" : "says", message); 
     676                   target == WALL_ALL ? T("shouts") : T("says"), message); 
    677677} 
    678678 
  • 1.8.3/branches/devel/src/strutil.c

    r1055 r1150  
    872872{ 
    873873  char *p = (char *) s; 
    874   while (p && *p && (*p != c)) 
     874  if (!p) 
     875    return NULL; 
     876  while (*p && (*p != c)) 
    875877    p++; 
    876878  return p; 
  • 1.8.3/branches/devel/src/wiz.c

    r1146 r1150  
    590590 
    591591  if ((victim = match_controlled(player, what)) == NOTHING) { 
    592     notify(player, "Sorry."); 
     592    notify(player, T("Sorry.")); 
    593593    return; 
    594594  } 
     
    12311231 
    12321232    if (nrooms) { 
    1233       notify(player, "\nROOMS:"); 
     1233      notify(player, T("\nROOMS:")); 
    12341234      for (n = 0; n < nrooms; n++) { 
    12351235        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])); 
    12371238        safe_str(object_header(player, Owner(rooms[n])), tbuf, &tbp); 
    12381239        safe_chr(']', tbuf, &tbp); 
     
    12451246      dbref from, to; 
    12461247 
    1247       notify(player, "\nEXITS:"); 
     1248      notify(player, T("\nEXITS:")); 
    12481249      for (n = 0; n < nexits; n++) { 
    12491250        tbp = tbuf; 
     
    12531254          from = Source(exits[n]); 
    12541255        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), 
    12571259                 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), 
    12601262                 tbuf, &tbp); 
    12611263        safe_chr(']', tbuf, &tbp); 
     
    12661268 
    12671269    if (nthings) { 
    1268       notify(player, "\nTHINGS:"); 
     1270      notify(player, T("\nTHINGS:")); 
    12691271      for (n = 0; n < nthings; n++) { 
    12701272        tbp = tbuf; 
    1271         safe_format(tbuf, &tbp, "%s [owner: "
     1273        safe_format(tbuf, &tbp, T("%s [owner: ")
    12721274                    object_header(player, things[n])); 
    12731275        safe_str(object_header(player, Owner(things[n])), tbuf, &tbp); 
     
    12801282    if (nplayers) { 
    12811283      int is_wizard = Search_All(player) || See_All(player); 
    1282       notify(player, "\nPLAYERS:"); 
     1284      notify(player, T("\nPLAYERS:")); 
    12831285      for (n = 0; n < nplayers; n++) { 
    12841286        tbp = tbuf; 
     
    12981300                  ("Totals: Rooms...%d  Exits...%d  Things...%d  Players...%d"), 
    12991301                  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"); 
    13041306  } 
    13051307  if (results)