~vcs-imports/texinfo/main

« back to all changes in this revision

Viewing changes to makeinfo/node.c

  • Committer: karl
  • Date: 2007-09-15 23:48:45 UTC
  • Revision ID: vcs-imports@canonical.com-20070915234845-u6upcrx2slfm9heg
use gdt, not __, for doc translation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* node.c -- nodes for Texinfo.
2
 
   $Id: node.c,v 1.37 2007/07/08 13:11:48 karl Exp $
 
2
   $Id: node.c,v 1.38 2007/09/15 23:48:46 karl Exp $
3
3
 
4
4
   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
5
5
   Free Software Foundation, Inc.
988
988
          if (next)
989
989
            {
990
990
              tem = expansion (next, 0);
991
 
              add_word ((char *) __("Next:"));
 
991
              add_word ((char *) gdt("Next:"));
992
992
              add_word (" ");
993
993
              
994
994
              add_word ("<a rel=\"next\" accesskey=\"n\" href=\"");
1004
1004
          if (prev)
1005
1005
            {
1006
1006
              tem = expansion (prev, 0);
1007
 
              add_word ((char *) __("Previous:"));
 
1007
              add_word ((char *) gdt("Previous:"));
1008
1008
              add_word ("&nbsp;");
1009
1009
              add_word ("<a rel=\"previous\" accesskey=\"p\" href=\"");
1010
1010
              add_anchor_name (tem, 1);
1018
1018
          if (up)
1019
1019
            {
1020
1020
              tem = expansion (up, 0);
1021
 
              add_word ((char *) __("Up:"));
 
1021
              add_word ((char *) gdt("Up:"));
1022
1022
              add_word ("&nbsp;");
1023
1023
              add_word ("<a rel=\"up\" accesskey=\"u\" href=\"");
1024
1024
              add_anchor_name (tem, 1);
1373
1373
  switch (type)
1374
1374
    {
1375
1375
    case menu_reference:
1376
 
      return __("Menu");
 
1376
      return gdt("Menu");
1377
1377
    case followed_reference:
1378
 
      return __("Cross");
 
1378
      return gdt("Cross");
1379
1379
    default:
1380
1380
      return "Internal-bad-reference-type";
1381
1381
    }
1434
1434
      /* If this node has a Next, then make sure that the Next exists. */
1435
1435
      if (tags->next)
1436
1436
        {
1437
 
          validate (tags->next, tags->line_no, __("Next"));
 
1437
          validate (tags->next, tags->line_no, gdt("Next"));
1438
1438
 
1439
1439
          /* If the Next node exists, and there is no Up, then make sure
1440
1440
             that the Prev of the Next points back.  But do nothing if
1472
1472
         field at this stage. */
1473
1473
      if (!(tags->flags & TAG_FLAG_PREV_ERROR) && tags->prev)
1474
1474
        {
1475
 
          int valid_p = validate (tags->prev, tags->line_no, __("Prev"));
 
1475
          int valid_p = validate (tags->prev, tags->line_no, gdt("Prev"));
1476
1476
 
1477
1477
          if (!valid_p)
1478
1478
            tags->flags |= TAG_FLAG_PREV_ERROR;
1534
1534
        line_error (_("`%s' has no Up field (perhaps incorrect sectioning?)"), tags->node);
1535
1535
      else if (tags->up)
1536
1536
        {
1537
 
          int valid_p = validate (tags->up, tags->line_no, __("Up"));
 
1537
          int valid_p = validate (tags->up, tags->line_no, gdt("Up"));
1538
1538
 
1539
1539
          /* If node X has Up: Y, then warn if Y fails to have a menu item
1540
1540
             or note pointing at X, if Y isn't of the form "(Y)". */