Changeset 45af761 in git


Ignore:
Timestamp:
21/09/11 05:08:47 (8 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/trunk, travis-osx
Children:
2341559
Parents:
1b1aaf4
Message:

lib/,src/: Extract all the help strings in --help output and make
them available for translation.

git-svn-id: file:///home/survex-svn/survex/trunk@3741 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Files:
22 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r1b1aaf4 r45af761  
     1Wed Sep 21 04:07:29 GMT 2011  Olly Betts <olly@survex.com>
     2
     3        * lib/,src/: Extract all the help strings in --help output and make
     4          them available for translation.
     5
    16Wed Sep 21 04:04:31 GMT 2011  Olly Betts <olly@survex.com>
    27
  • lib/ca.po

    r1b1aaf4 r45af761  
    10171017msgstr "Esperant dada, trobat `%s'"
    10181018
    1019 msgid "Only load the sub-survey with prefix"
    1020 msgstr "Sols carrega la sub-topografia amb prefix"
     1019#. TRANSLATORS: --help output for --survey option
     1020#. "this" has been added to English translation
     1021#, fuzzy
     1022msgid "only load the sub-survey with this prefix"
     1023msgstr "sols carrega la sub-topografia amb prefix"
    10211024
    10221025#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/codes.po

    r1b1aaf4 r45af761  
    581581msgstr "99"
    582582
     583msgid "do not generate station markers"
     584msgstr "100"
     585
     586msgid "do not generate station labels"
     587msgstr "101"
     588
     589msgid "do not generate the survey legs"
     590msgstr "102"
     591
     592msgid "produce an elevation view"
     593msgstr "103"
     594
    583595#. TRANSLATORS: A computer mouse, not the rodent sort ;)
    584596#. Actually, mouse is somewhat imprecise as it could refer to a trackerball
     
    586598#. correct.
    587599#~ msgid "No mouse detected"
    588 #~ msgstr "100"
     600#~ msgstr ""
    589601
    590602#. TRANSLATORS: %05.1f will be replaced by something like "123.4"
    591603#~ msgid "Plan, %05.1f up screen"
    592 #~ msgstr "101"
     604#~ msgstr ""
    593605
    594606#. TRANSLATORS: %05.1f will be replaced by something like "123.4"
    595607#~ msgid "View towards %05.1f"
    596 #~ msgstr "102"
     608#~ msgstr ""
    597609
    598610#~ msgid "You need to calibrate your printer - see the manual for details."
    599 #~ msgstr "103"
     611#~ msgstr ""
    600612
    601613#: ../src/commands.c:996
     
    687699
    688700#~ msgid "3d file"
    689 #~ msgstr "119"
     701#~ msgstr ""
    690702
    691703#: ../src/cavern.c:332
     
    742754
    743755#: ../src/cavern.c:426
     756#, c-format
    744757msgid "Total length of survey legs = %7.2fm (%7.2fm adjusted)"
    745758msgstr "132"
    746759
    747760#: ../src/cavern.c:429
     761#, c-format
    748762msgid "Total plan length of survey legs = %7.2fm"
    749763msgstr "133"
    750764
    751765#: ../src/cavern.c:432
     766#, c-format
    752767msgid "Total vertical length of survey legs = %7.2fm"
    753768msgstr "134"
     
    755770#. TRANSLATORS: numbers are altitudes of highest and lowest stations
    756771#: ../src/cavern.c:457
     772#, c-format
    757773msgid "Vertical range = %4.2fm (from %s at %4.2fm to %s at %4.2fm)"
    758774msgstr "135"
     
    760776#. TRANSLATORS: c.f. previous message
    761777#: ../src/cavern.c:458
     778#, c-format
    762779msgid "North-South range = %4.2fm (from %s at %4.2fm to %s at %4.2fm)"
    763780msgstr "136"
     
    765782#. TRANSLATORS: c.f. previous two messages
    766783#: ../src/cavern.c:459
     784#, c-format
    767785msgid "East-West range = %4.2fm (from %s at %4.2fm to %s at %4.2fm)"
    768786msgstr "137"
     
    778796
    779797#: ../src/cavern.c:354
     798#, c-format
    780799msgid "CPU time used %5.2fs"
    781800msgstr "140"
    782801
    783802#: ../src/cavern.c:357
     803#, c-format
    784804msgid "Time used %5.2fs"
    785805msgstr "141"
     
    790810
    791811#: ../src/cavern.c:362
     812#, c-format
    792813msgid "Time used %5.2fs (%5.2fs CPU time)"
    793814msgstr "143"
     
    798819
    799820#: ../src/netskel.c:717
     821#, c-format
    800822msgid "Original length%7.2fm (%3d legs), moved%7.2fm (%5.2fm/leg). "
    801823msgstr "145"
    802824
    803825#: ../src/netskel.c:720
     826#, c-format
    804827msgid "Error%7.2f%%"
    805828msgstr "146"
     
    813836msgstr "147"
    814837
     838#, c-format
     839msgid "generate grid (default %sm)"
     840msgstr "148"
     841
     842#, c-format
     843msgid "station labels text height (default %s)"
     844msgstr "149"
     845
     846#, c-format
     847msgid "station marker size (default %s)"
     848msgstr "152"
     849
     850#, c-format
     851msgid "factor to scale down by (default %s)"
     852msgstr "155"
     853
     854msgid "produce DXF output"
     855msgstr "156"
     856
     857msgid "produce Sketch output"
     858msgstr "158"
     859
     860msgid "produce Compass PLT output for Carto"
     861msgstr "159"
     862
     863msgid "produce SVG output"
     864msgstr "160"
     865
    815866#~ msgid "North-South range = %4.2fm (from "
    816 #~ msgstr "148"
     867#~ msgstr ""
    817868
    818869#~ msgid "East-West range = %4.2fm (from "
    819 #~ msgstr "149"
     870#~ msgstr ""
    820871
    821872#. TRANSLATORS: description of --help option
     
    831882#. TRANSLATORS: As in "printer driver"
    832883#~ msgid "Driver"
    833 #~ msgstr "152"
     884#~ msgstr ""
    834885
    835886#. TRANSLATORS: in command line usage messages e.g. Usage: cavern [OPTION]...
     
    845896
    846897#~ msgid "Continue"
    847 #~ msgstr "155"
     898#~ msgstr ""
    848899
    849900#~ msgid "Exiting."
    850 #~ msgstr "156"
     901#~ msgstr ""
    851902
    852903#: ../src/cmdline.c:172
     
    856907
    857908#~ msgid "Plan or Elevation"
    858 #~ msgstr "158"
     909#~ msgstr ""
    859910
    860911#. TRANSLATORS: Degrees are the angular measurement where there are 360 in a
    861912#. full circle.
    862913#~ msgid "Bearing up page (degrees): "
    863 #~ msgstr "159"
     914#~ msgstr ""
    864915
    865916#~ msgid "View towards: "
    866 #~ msgstr "160"
     917#~ msgstr ""
    867918
    868919#. TRANSLATORS: Degrees are the angular measurement where there are 360 in a
    869920#. full circle.
    870921#~ msgid "Tilt (degrees): "
    871 #~ msgstr "161"
     922#~ msgstr ""
    872923
    873924#, c-format
    874925#~ msgid "Please enter Map Scale = X:Y (default 1:%d)\n: "
    875 #~ msgstr "162"
     926#~ msgstr ""
    876927
    877928#~ msgid "Using scale %.0f:%.0f"
    878 #~ msgstr "163"
     929#~ msgstr ""
    879930
    880931#~ msgid "Print which pages?\n(RETURN for all; 'n' for one page, 'm-n', 'm-', '-n' for a range)\n: "
    881 #~ msgstr "164"
     932#~ msgstr ""
    882933
    883934#. TRANSLATORS: e.g. "Printing to `somefile.ps'..." / "Printing to `Laserjet4 on amachine...'
    884935#, c-format
    885936#~ msgid "Printing to `%s'…"
    886 #~ msgstr "165"
     937#~ msgstr ""
    887938
    888939#: ../src/avenprcore.cc:262
     
    911962#, c-format
    912963#~ msgid "This will need %d pages (%dx%d)."
    913 #~ msgstr "170"
     964#~ msgstr ""
    914965
    915966#~ msgid "This will need 1 page."
    916 #~ msgstr "171"
     967#~ msgstr ""
    917968
    918969#: ../src/cavern.c:400
     
    9541005#, c-format
    9551006#~ msgid "Bad list of pages to print `%s'"
    956 #~ msgstr "179"
     1007#~ msgstr ""
    9571008
    9581009#. TRANSLATORS: menu commands for (ynq) style choices (may become menu entries later)
    9591010#~ msgid "yes"
    960 #~ msgstr "180"
     1011#~ msgstr ""
    9611012
    9621013#. TRANSLATORS: menu commands for (ynq) style choices (may become menu entries later)
    9631014#~ msgid "no"
    964 #~ msgstr "181"
     1015#~ msgstr ""
    9651016
    9661017#. TRANSLATORS: menu commands for (ynq) style choices (may become menu entries later)
    9671018#~ msgid "quit"
    968 #~ msgstr "182"
     1019#~ msgstr ""
    9691020
    9701021#. TRANSLATORS: menu commands for (pe) style choices (may become menu entries later)
    9711022#~ msgid "plan"
    972 #~ msgstr "183"
     1023#~ msgstr ""
    9731024
    9741025#. TRANSLATORS: menu commands for (pe) style choices (may become menu entries later)
     
    10441095msgstr "198"
    10451096
    1046 #~ msgid "Only load the sub-survey with prefix"
    1047 #~ msgstr "199"
     1097#. TRANSLATORS: --help output for --survey option
     1098#. "this" has been added to English translation
     1099msgid "only load the sub-survey with this prefix"
     1100msgstr "199"
     1101
     1102#. TRANSLATORS: --help output for aven --print option
     1103msgid "print and exit (requires a 3d file)"
     1104msgstr "119"
     1105
     1106#. TRANSLATORS: --help output for cavern --percentage option
     1107msgid "display percentage progress"
     1108msgstr "161"
     1109
     1110#. TRANSLATORS: --help output for cavern --output option
     1111msgid "set location for output files"
     1112msgstr "162"
     1113
     1114#. TRANSLATORS: --help output for cavern --quiet option
     1115msgid "only show brief summary (-qq for errors only)"
     1116msgstr "163"
     1117
     1118#. TRANSLATORS: --help output for cavern --no-auxiliary-files option
     1119msgid "do not create .err file"
     1120msgstr "164"
     1121
     1122#. TRANSLATORS: --help output for cavern --warnings-are-errors option
     1123msgid "turn warnings into errors"
     1124msgstr "165"
     1125
     1126#. TRANSLATORS: --help output for cavern --log option
     1127msgid "log output to .log file"
     1128msgstr "170"
     1129
     1130#. TRANSLATORS: --help output for cavern --3d-version option
     1131msgid "specify the 3d file format version to output"
     1132msgstr "171"
     1133
     1134#. TRANSLATORS: --help output for sorterr --horizontal option
     1135msgid "sort by horizontal error factor"
     1136msgstr "179"
     1137
     1138#. TRANSLATORS: --help output for sorterr --vertical option
     1139msgid "sort by vertical error factor"
     1140msgstr "180"
     1141
     1142#. TRANSLATORS: --help output for sorterr --percentage option
     1143msgid "sort by percentage error"
     1144msgstr "181"
     1145
     1146#. TRANSLATORS: --help output for sorterr --per-leg option
     1147msgid "sort by error per leg"
     1148msgstr "182"
     1149
     1150#. TRANSLATORS: --help output for sorterr --replace option
     1151msgid "replace .err file with resorted version"
     1152msgstr "183"
    10481153
    10491154#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/de.po

    r1b1aaf4 r45af761  
    10591059msgstr "Datum erwartet, `%s' gelesen"
    10601060
    1061 msgid "Only load the sub-survey with prefix"
    1062 msgstr "Nur Teilvermessung mit Präfix laden"
     1061#. TRANSLATORS: --help output for --survey option
     1062#. "this" has been added to English translation
     1063#, fuzzy
     1064msgid "only load the sub-survey with this prefix"
     1065msgstr "nur Teilvermessung mit Präfix laden"
    10631066
    10641067#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/de_CH.po

    r1b1aaf4 r45af761  
    10591059msgstr "Datum erwartet, `%s' gelesen"
    10601060
    1061 msgid "Only load the sub-survey with prefix"
    1062 msgstr "Nur Teilvermessung mit Präfix laden"
     1061#. TRANSLATORS: --help output for --survey option
     1062#. "this" has been added to English translation
     1063#, fuzzy
     1064msgid "only load the sub-survey with this prefix"
     1065msgstr "nur Teilvermessung mit Präfix laden"
    10631066
    10641067#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/en_US.po

    r1b1aaf4 r45af761  
    10331033msgstr "Expecting date, found `%s'"
    10341034
    1035 msgid "Only load the sub-survey with prefix"
    1036 msgstr "Only load the sub-survey with prefix"
     1035#. TRANSLATORS: --help output for --survey option
     1036#. "this" has been added to English translation
     1037msgid "only load the sub-survey with this prefix"
     1038msgstr "only load the sub-survey with this prefix"
    10371039
    10381040#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/es.po

    r1b1aaf4 r45af761  
    10251025msgstr "Esperando dato, encontrado `%s'"
    10261026
    1027 msgid "Only load the sub-survey with prefix"
    1028 msgstr "Solo carga la sub-topografía con prefijo"
     1027#. TRANSLATORS: --help output for --survey option
     1028#. "this" has been added to English translation
     1029#, fuzzy
     1030msgid "only load the sub-survey with this prefix"
     1031msgstr "solo carga la sub-topografía con prefijo"
    10291032
    10301033#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/fr.po

    r1b1aaf4 r45af761  
    10321032msgstr "On attendait une date, on a trouvé `%s'"
    10331033
    1034 msgid "Only load the sub-survey with prefix"
    1035 msgstr "Ne charge que la partie de topo avec le prefixe"
     1034#. TRANSLATORS: --help output for --survey option
     1035#. "this" has been added to English translation
     1036#, fuzzy
     1037msgid "only load the sub-survey with this prefix"
     1038msgstr "ne charge que la partie de topo avec le prefixe"
    10361039
    10371040#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/it.po

    r1b1aaf4 r45af761  
    10291029msgstr "Attesa una data, trovato `%s'"
    10301030
    1031 msgid "Only load the sub-survey with prefix"
    1032 msgstr "Carica un sotto-rilievo con prefisso"
     1031#. TRANSLATORS: --help output for --survey option
     1032#. "this" has been added to English translation
     1033#, fuzzy
     1034msgid "only load the sub-survey with this prefix"
     1035msgstr "carica un sotto-rilievo con prefisso"
    10331036
    10341037#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/pt.po

    r1b1aaf4 r45af761  
    10371037msgstr "Esperando data, encontrado `%s'"
    10381038
    1039 msgid "Only load the sub-survey with prefix"
    1040 msgstr "Carregue apenas a sub-topografia com prefixo"
     1039#. TRANSLATORS: --help output for --survey option
     1040#. "this" has been added to English translation
     1041#, fuzzy
     1042msgid "only load the sub-survey with this prefix"
     1043msgstr "carregue apenas a sub-topografia com prefixo"
    10411044
    10421045#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/pt_BR.po

    r1b1aaf4 r45af761  
    10371037msgstr "Esperando data, encontrado `%s'"
    10381038
    1039 msgid "Only load the sub-survey with prefix"
    1040 msgstr "Carregue apenas a sub-topografia com prefixo"
     1039#. TRANSLATORS: --help output for --survey option
     1040#. "this" has been added to English translation
     1041#, fuzzy
     1042msgid "only load the sub-survey with this prefix"
     1043msgstr "carregue apenas a sub-topografia com prefixo"
    10411044
    10421045#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/ro.po

    r1b1aaf4 r45af761  
    10291029msgstr "Date asteptate, `%s' gasit"
    10301030
    1031 msgid "Only load the sub-survey with prefix"
    1032 msgstr "Incarcati doar sub-topografia cu prefixul"
     1031#. TRANSLATORS: --help output for --survey option
     1032#. "this" has been added to English translation
     1033#, fuzzy
     1034msgid "only load the sub-survey with this prefix"
     1035msgstr "incarcati doar sub-topografia cu prefixul"
    10331036
    10341037#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • lib/sk.po

    r1b1aaf4 r45af761  
    10261026msgstr "Predpokladá sa čas, najdené `%s'"
    10271027
    1028 msgid "Only load the sub-survey with prefix"
    1029 msgstr "S prefixom sa natiahla iba časť merania"
     1028#. TRANSLATORS: --help output for --survey option
     1029#. "this" has been added to English translation
     1030#, fuzzy
     1031msgid "only load the sub-survey with this prefix"
     1032msgstr "s prefixom sa natiahla iba časť merania"
    10301033
    10311034#. TRANSLATORS: error message given by "*units tape 0 feet" - it's meaningless to say
  • src/3dtopos.c

    r1b1aaf4 r45af761  
    11/* 3dtopos.c */
    22/* Produce a .pos file from a .3d file */
    3 /* Copyright (C) 2001,2002 Olly Betts
     3/* Copyright (C) 2001,2002,2011 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    4747
    4848static struct help_msg help[] = {
    49 /*                              <-- */
    50    {HLP_ENCODELONG(0),          "only load the sub-survey with this prefix"},
    51    {0, 0}
     49   /*                           <-- */
     50   {HLP_ENCODELONG(0),        /*only load the sub-survey with this prefix*/199, 0},
     51   {0, 0, 0}
    5252};
    5353
  • src/aven.cc

    r1b1aaf4 r45af761  
    5858
    5959static struct help_msg help[] = {
    60     /*                       <-- */
    61     {HLP_ENCODELONG(0),          "only load the sub-survey with this prefix"},
    62     {HLP_ENCODELONG(1),          "print and exit (requires a 3d file)"},
    63     {0, 0}
     60    /*                          <-- */
     61    {HLP_ENCODELONG(0),       /*only load the sub-survey with this prefix*/199, 0},
     62    {HLP_ENCODELONG(1),       /*print and exit (requires a 3d file)*/119, 0},
     63    {0, 0, 0}
    6464};
    6565
  • src/cad3d.c

    r1b1aaf4 r45af761  
    620620   /* TRANSLATE */
    621621   static struct help_msg help[] = {
    622         {HLP_ENCODELONG(0), "only load the sub-survey with this prefix"},
    623         {HLP_ENCODELONG(1), "do not generate station markers"},
    624         {HLP_ENCODELONG(2), "do not generate station labels"},
    625         {HLP_ENCODELONG(3), "do not generate the survey legs"},
    626         {HLP_ENCODELONG(4), "generate grid (default "STRING(GRID_SPACING)"m)"},
    627         {HLP_ENCODELONG(5), "station labels text height (default "STRING(TEXT_HEIGHT)")"},
    628         {HLP_ENCODELONG(6), "station marker size (default "STRING(MARKER_SIZE)")"},
    629         {HLP_ENCODELONG(7), "produce an elevation view"},
    630         {HLP_ENCODELONG(8), "factor to scale down by (default 500)"},
    631         {HLP_ENCODELONG(9), "produce DXF output"},
    632         {HLP_ENCODELONG(10), "produce Sketch output"},
    633         {HLP_ENCODELONG(11), "produce Compass PLT output for Carto"},
    634         {HLP_ENCODELONG(12), "produce SVG output"},
    635         {0,0}
     622        /*                      <-- */
     623        {HLP_ENCODELONG(0),   /*only load the sub-survey with this prefix*/199, 0},
     624        {HLP_ENCODELONG(1),   /*do not generate station markers*/100, 0},
     625        {HLP_ENCODELONG(2),   /*do not generate station labels*/101, 0},
     626        {HLP_ENCODELONG(3),   /*do not generate the survey legs*/102, 0},
     627        {HLP_ENCODELONG(4),   /*generate grid (default %sm)*/148, STRING(GRID_SPACING)},
     628        {HLP_ENCODELONG(5),   /*station labels text height (default %s)*/149, STRING(TEXT_HEIGHT)},
     629        {HLP_ENCODELONG(6),   /*station marker size (default %s)*/152, STRING(MARKER_SIZE)},
     630        {HLP_ENCODELONG(7),   /*produce an elevation view*/103, 0},
     631        {HLP_ENCODELONG(8),   /*factor to scale down by (default %s)*/155, "500"},
     632        {HLP_ENCODELONG(9),   /*produce DXF output*/156, 0},
     633        {HLP_ENCODELONG(10),  /*produce Sketch output*/158, 0},
     634        {HLP_ENCODELONG(11),  /*produce Compass PLT output for Carto*/159, 0},
     635        {HLP_ENCODELONG(12),  /*produce SVG output*/160, 0},
     636        {0, 0, 0}
    636637   };
    637638
  • src/cavern.c

    r1b1aaf4 r45af761  
    120120static struct help_msg help[] = {
    121121/*                              <-- */
    122    {HLP_ENCODELONG(0),          "display percentage progress"},
    123    {HLP_ENCODELONG(2),          "set location for output files"},
    124    {HLP_ENCODELONG(3),          "only show brief summary (-qq for errors only)"},
    125    {HLP_ENCODELONG(4),          "do not create .err file"},
    126    {HLP_ENCODELONG(5),          "turn warnings into errors"},
    127    {HLP_ENCODELONG(6),          "log output to .log file"},
    128    {HLP_ENCODELONG(7),          "specify the 3d file format version to output"},
     122   {HLP_ENCODELONG(0),        /*display percentage progress*/161, 0},
     123   {HLP_ENCODELONG(2),        /*set location for output files*/162, 0},
     124   {HLP_ENCODELONG(3),        /*only show brief summary (-qq for errors only)*/163, 0},
     125   {HLP_ENCODELONG(4),        /*do not create .err file*/164, 0},
     126   {HLP_ENCODELONG(5),        /*turn warnings into errors*/165, 0},
     127   {HLP_ENCODELONG(6),        /*log output to .log file*/170, 0},
     128   {HLP_ENCODELONG(7),        /*specify the 3d file format version to output*/171, 0},
    129129 /*{'z',                        "set optimizations for network reduction"},*/
    130    {0, 0}
     130   {0, 0, 0}
    131131};
    132132
  • src/cmdline.c

    r1b1aaf4 r45af761  
    11/* cmdline.c
    22 * Wrapper for GNU getopt which deals with standard options
    3  * Copyright (C) 1998-2001,2003,2004 Olly Betts
     3 * Copyright (C) 1998-2001,2003,2004,2011 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    3232
    3333#include "cmdline.h"
     34#include "debug.h"
    3435#include "filename.h"
    3536
     
    122123      }
    123124
    124       puts(help->msg);
     125      if (help->arg) {
     126          SVX_ASSERT(strstr(msg(help->msg_no), "%s") != NULL);
     127          printf(msg(help->msg_no), help->arg);
     128          putnl();
     129      } else {
     130          SVX_ASSERT(strstr(msg(help->msg_no), "%s") == NULL);
     131          puts(msg(help->msg_no));
     132      }
    125133      help++;
    126134   }
    127    printf("      --help\t\t\t%s\n", msg(/*display this help and exit*/150));
    128    printf("      --version\t\t\t%s\n", msg(/*output version information and exit*/151));
     135   fputs("      --help\t\t\t", stdout);
     136   puts(msg(/*display this help and exit*/150));
     137   fputs("      --version\t\t\t", stdout);
     138   puts(msg(/*output version information and exit*/151));
    129139
    130140   if (extra_msg) {
  • src/cmdline.h

    r1b1aaf4 r45af761  
    11/* cmdline.h
    22 * Wrapper for GNU getopt which deals with standard options
    3  * Copyright (C) 1998-2001,2003 Olly Betts
     3 * Copyright (C) 1998-2001,2003,2011 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    5151struct help_msg {
    5252   int opt;
    53    const char *msg;
     53   int msg_no;
     54   const char * arg;
    5455};
    5556
  • src/diffpos.c

    r1b1aaf4 r45af761  
    11/* diffpos.c */
    22/* Utility to compare two SURVEX .pos or .3d files */
    3 /* Copyright (C) 1994,1996,1998-2003,2010 Olly Betts
     3/* Copyright (C) 1994,1996,1998-2003,2010,2011 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    5555static struct help_msg help[] = {
    5656/*                              <-- */
    57    {HLP_ENCODELONG(0),          "only load the sub-survey with this prefix"},
    58    {0, 0}
     57   {HLP_ENCODELONG(0),        /*only load the sub-survey with this prefix*/199, 0},
     58   {0, 0, 0}
    5959};
    6060
  • src/extend.c

    r1b1aaf4 r45af761  
    11/* extend.c
    22 * Produce an extended elevation
    3  * Copyright (C) 1995-2002,2005,2010 Olly Betts
     3 * Copyright (C) 1995-2002,2005,2010,2011 Olly Betts
    44 * Copyright (C) 2004,2005 John Pybus
    55 *
     
    441441static struct help_msg help[] = {
    442442/*                              <-- */
    443    {HLP_ENCODELONG(0),          "only load the sub-survey with this prefix"},
    444    {HLP_ENCODELONG(1),          "apply specifications from the named file"},
    445    {0, 0}
     443   {HLP_ENCODELONG(0),        /*only load the sub-survey with this prefix*/199, 0},
     444   {0, 0, 0}
    446445};
    447446
  • src/sorterr.c

    r1b1aaf4 r45af761  
    11/* sorterr.c */
    22/* Sort a survex .err file */
    3 /* Copyright (C) 2001,2002,2005,2010 Olly Betts
     3/* Copyright (C) 2001,2002,2005,2010,2011 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    5050static struct help_msg help[] = {
    5151/*                              <-- */
    52    {HLP_ENCODELONG(0),          "Sort by horizontal error factor"},
    53    {HLP_ENCODELONG(1),          "Sort by vertical error factor"},
    54    {HLP_ENCODELONG(2),          "Sort by percentage error"},
    55    {HLP_ENCODELONG(3),          "Sort by error per leg"},
    56    {HLP_ENCODELONG(4),          "Replace .err file with resorted version"},
    57    {0, 0}
     52   {HLP_ENCODELONG(0),        /*sort by horizontal error factor*/179, 0},
     53   {HLP_ENCODELONG(1),        /*sort by vertical error factor*/180, 0},
     54   {HLP_ENCODELONG(2),        /*sort by percentage error*/181, 0},
     55   {HLP_ENCODELONG(3),        /*sort by error per leg*/182, 0},
     56   {HLP_ENCODELONG(4),        /*replace .err file with resorted version*/183, 0},
     57   {0, 0, 0}
    5858};
    5959
Note: See TracChangeset for help on using the changeset viewer.