|
Ticket #144: rrdtool-6662646-g11n-i18n-ui-head.diff
| File rrdtool-6662646-g11n-i18n-ui-head.diff,
17.5 KB
(added by human, 4 years ago) |
|
Patch for Makefile.am, configure.ac, po/LINGUAS, po/POTFILES.in, rrdtool.spec, src/Makefile.am, src/getopt.c, src/rrd_i18n.h, src/rrd_tool.c
|
-
|
old
|
new
|
|
| 2 | 2 | RSYNC = rsync --rsh=ssh |
| 3 | 3 | |
| 4 | 4 | # build the following subdirectories |
| 5 | | SUBDIRS = src examples doc bindings |
| | 5 | SUBDIRS = po src examples doc bindings |
| 6 | 6 | |
| 7 | 7 | # the following files are not mentioned in any other Makefile |
| 8 | 8 | EXTRA_DIST = COPYRIGHT CHANGES WIN32-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \ |
-
|
old
|
new
|
char *strchr (), *strrchr (); |
| 287 | 287 | dnl Process Special Options |
| 288 | 288 | dnl ----------------------------------- |
| 289 | 289 | |
| | 290 | dnl gettext |
| | 291 | GETTEXT_PACKAGE=rrdtool |
| | 292 | AC_SUBST(GETTEXT_PACKAGE) |
| | 293 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package]) |
| | 294 | IT_PROG_INTLTOOL([0.35.0]) |
| | 295 | |
| | 296 | AM_GLIB_GNU_GETTEXT |
| | 297 | |
| 290 | 298 | dnl How the vertical axis label is printed |
| 291 | 299 | AC_ARG_VAR(RRDGRAPH_YLEGEND_ANGLE, |
| 292 | 300 | [Vertical label angle: -90.0 (default) or 90.0]) |
| … |
… |
CONFIGURE_PART(Checking for Header Files |
| 360 | 368 | dnl Checks for header files. |
| 361 | 369 | AC_HEADER_STDC |
| 362 | 370 | AC_HEADER_DIRENT |
| 363 | | AC_CHECK_HEADERS(features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h) |
| | 371 | AC_CHECK_HEADERS(features.h sys/stat.h sys/types.h fcntl.h libintl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h) |
| 364 | 372 | |
| 365 | 373 | dnl Checks for typedefs, structures, and compiler characteristics. |
| 366 | 374 | AC_C_CONST |
| … |
… |
AC_CONFIG_FILES([examples/4charts.pl]) |
| 830 | 838 | AC_CONFIG_FILES([examples/perftest.pl]) |
| 831 | 839 | AC_CONFIG_FILES([examples/Makefile]) |
| 832 | 840 | AC_CONFIG_FILES([doc/Makefile]) |
| | 841 | AC_CONFIG_FILES([po/Makefile.in]) |
| 833 | 842 | AC_CONFIG_FILES([src/Makefile]) |
| 834 | 843 | AC_CONFIG_FILES([bindings/Makefile]) |
| 835 | 844 | AC_CONFIG_FILES([bindings/tcl/Makefile]) |
-
-
|
old
|
new
|
|
| | 1 | src/rrd_getopt.c |
| | 2 | src/rrd_tool.c |
-
|
old
|
new
|
The %{name}-ruby package includes RRDtoo |
| 149 | 149 | configure Makefile.in php4/configure php4/ltconfig* |
| 150 | 150 | |
| 151 | 151 | %build |
| | 152 | intltoolize --automake -c -f |
| | 153 | aclocal |
| | 154 | autoheader |
| | 155 | autoconf |
| | 156 | automake -a -c -f |
| 152 | 157 | %configure \ |
| 153 | 158 | --with-perl-options='INSTALLDIRS="vendor"' \ |
| 154 | 159 | %if %{with_tcl} |
-
|
old
|
new
|
if STATIC_PROGRAMS |
| 9 | 9 | AM_LDFLAGS = -all-static |
| 10 | 10 | endif |
| 11 | 11 | |
| | 12 | INCLUDES = -DLOCALEDIR="\"$(datadir)/locale\"" |
| 12 | 13 | RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@ |
| 13 | 14 | AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@ |
| 14 | 15 | |
| … |
… |
RRD_C_FILES = \ |
| 50 | 51 | noinst_HEADERS = \ |
| 51 | 52 | unused.h \ |
| 52 | 53 | rrd_getopt.h parsetime.h \ |
| | 54 | rrd_i18n.h \ |
| 53 | 55 | rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_rpncalc.h \ |
| 54 | 56 | rrd_hw.h rrd_hw_math.h rrd_hw_update.h \ |
| 55 | 57 | fnv.h rrd_graph.h \ |
-
|
old
|
new
|
|
| 34 | 34 | #include "../rrd_config.h" |
| 35 | 35 | #endif |
| 36 | 36 | |
| | 37 | #include "rrd_i18n.h" |
| | 38 | |
| 37 | 39 | #if !defined (__STDC__) || !__STDC__ |
| 38 | 40 | /* This is a separate conditional since some stdc systems |
| 39 | 41 | reject `defined (const)'. */ |
| … |
… |
|
| 85 | 87 | #define getpid() GetCurrentProcessId() |
| 86 | 88 | #endif |
| 87 | 89 | |
| 88 | | #ifndef _ |
| 89 | | /* This is for other GNU distributions with internationalized messages. |
| 90 | | When compiling libc, the _ macro is predefined. */ |
| 91 | | #ifdef HAVE_LIBINTL_H |
| 92 | | # include <libintl.h> |
| 93 | | # define _(msgid) gettext (msgid) |
| 94 | | #else |
| 95 | | # define _(msgid) (msgid) |
| 96 | | #endif |
| 97 | | #endif |
| 98 | | |
| 99 | 90 | /* This version of `getopt' appears to the caller like standard Unix `getopt' |
| 100 | 91 | but it behaves differently for the user, since it allows the user |
| 101 | 92 | to intersperse the options with the other arguments. |
-
|
old
|
new
|
|
| | 1 | /***************************************************************************** |
| | 2 | * RRDtool 1.2.19 Copyright by Takao Fujiwara, 2008 |
| | 3 | ***************************************************************************** |
| | 4 | * rrd_i18n.h Common Header File |
| | 5 | *****************************************************************************/ |
| | 6 | #ifdef __cplusplus |
| | 7 | extern "C" { |
| | 8 | #endif |
| | 9 | |
| | 10 | |
| | 11 | #ifndef _RRD_I18N_H |
| | 12 | #define _RRD_I18N_H |
| | 13 | |
| | 14 | #ifndef _ |
| | 15 | /* This is for other GNU distributions with internationalized messages. |
| | 16 | When compiling libc, the _ macro is predefined. */ |
| | 17 | #ifdef HAVE_LIBINTL_H |
| | 18 | # include <libintl.h> |
| | 19 | #define _(String) gettext (String) |
| | 20 | #else |
| | 21 | #define _(String) (String) |
| | 22 | #endif |
| | 23 | #define N_(String) (String) |
| | 24 | #endif |
| | 25 | |
| | 26 | |
| | 27 | #endif |
| | 28 | |
| | 29 | #ifdef __cplusplus |
| | 30 | } |
| | 31 | #endif |
-
|
old
|
new
|
|
| 4 | 4 | * rrd_tool.c Startup wrapper |
| 5 | 5 | *****************************************************************************/ |
| 6 | 6 | |
| | 7 | #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H) |
| | 8 | #include "../win32/config.h" |
| | 9 | #else |
| | 10 | #ifdef HAVE_CONFIG_H |
| | 11 | #include "../rrd_config.h" |
| | 12 | #endif |
| | 13 | #endif |
| | 14 | |
| 7 | 15 | #include "rrd_tool.h" |
| 8 | 16 | #include "rrd_xport.h" |
| | 17 | #include "rrd_i18n.h" |
| | 18 | |
| | 19 | #ifdef HAVE_LOCALE_H |
| | 20 | #include <locale.h> |
| | 21 | #endif |
| 9 | 22 | |
| 10 | 23 | void PrintUsage( |
| 11 | 24 | char *cmd); |
| … |
… |
void PrintUsage( |
| 33 | 46 | { |
| 34 | 47 | |
| 35 | 48 | char help_main[] = |
| 36 | | "RRDtool " PACKAGE_VERSION |
| | 49 | N_("RRDtool %s" |
| 37 | 50 | " Copyright 1997-2007 by Tobias Oetiker <tobi@oetiker.ch>\n" |
| 38 | | " Compiled " __DATE__ " " __TIME__ "\n\n" |
| 39 | | "Usage: rrdtool [options] command command_options\n\n"; |
| | 51 | " Compiled %s %s\n\n" |
| | 52 | "Usage: rrdtool [options] command command_options\n\n"); |
| 40 | 53 | |
| 41 | 54 | char help_list[] = |
| 42 | | "Valid commands: create, update, updatev, graph, dump, restore,\n" |
| | 55 | N_("Valid commands: create, update, updatev, graph, dump, restore,\n" |
| 43 | 56 | "\t\tlast, lastupdate, first, info, fetch, tune,\n" |
| 44 | | "\t\tresize, xport\n\n"; |
| | 57 | "\t\tresize, xport\n\n"); |
| 45 | 58 | |
| 46 | 59 | char help_listremote[] = |
| 47 | | "Valid remote commands: quit, ls, cd, mkdir, pwd\n\n"; |
| | 60 | N_("Valid remote commands: quit, ls, cd, mkdir, pwd\n\n"); |
| 48 | 61 | |
| 49 | 62 | |
| 50 | 63 | char help_create[] = |
| 51 | | "* create - create a new RRD\n\n" |
| | 64 | N_("* create - create a new RRD\n\n" |
| 52 | 65 | "\trrdtool create filename [--start|-b start time]\n" |
| 53 | 66 | "\t\t[--step|-s step]\n" |
| 54 | 67 | "\t\t[DS:ds-name:DST:dst arguments]\n" |
| 55 | | "\t\t[RRA:CF:cf arguments]\n\n"; |
| | 68 | "\t\t[RRA:CF:cf arguments]\n\n"); |
| 56 | 69 | |
| 57 | 70 | char help_dump[] = |
| 58 | | "* dump - dump an RRD to XML\n\n" |
| 59 | | "\trrdtool dump filename.rrd >filename.xml\n\n"; |
| | 71 | N_("* dump - dump an RRD to XML\n\n" |
| | 72 | "\trrdtool dump filename.rrd >filename.xml\n\n"); |
| 60 | 73 | |
| 61 | 74 | char help_info[] = |
| 62 | | "* info - returns the configuration and status of the RRD\n\n" |
| 63 | | "\trrdtool info filename.rrd\n\n"; |
| | 75 | N_("* info - returns the configuration and status of the RRD\n\n" |
| | 76 | "\trrdtool info filename.rrd\n\n"); |
| 64 | 77 | |
| 65 | 78 | char help_restore[] = |
| 66 | | "* restore - restore an RRD file from its XML form\n\n" |
| 67 | | "\trrdtool restore [--range-check|-r] [--force-overwrite|-f] filename.xml filename.rrd\n\n"; |
| | 79 | N_("* restore - restore an RRD file from its XML form\n\n" |
| | 80 | "\trrdtool restore [--range-check|-r] [--force-overwrite|-f] filename.xml filename.rrd\n\n"); |
| 68 | 81 | |
| 69 | 82 | char help_last[] = |
| 70 | | "* last - show last update time for RRD\n\n" |
| 71 | | "\trrdtool last filename.rrd\n\n"; |
| | 83 | N_("* last - show last update time for RRD\n\n" |
| | 84 | "\trrdtool last filename.rrd\n\n"); |
| 72 | 85 | |
| 73 | 86 | char help_lastupdate[] = |
| 74 | | "* lastupdate - returns the most recent datum stored for\n" |
| 75 | | " each DS in an RRD\n\n" "\trrdtool lastupdate filename.rrd\n\n"; |
| | 87 | N_("* lastupdate - returns the most recent datum stored for\n" |
| | 88 | " each DS in an RRD\n\n" "\trrdtool lastupdate filename.rrd\n\n"); |
| 76 | 89 | |
| 77 | 90 | char help_first[] = |
| 78 | | "* first - show first update time for RRA within an RRD\n\n" |
| 79 | | "\trrdtool first filename.rrd [--rraindex number]\n\n"; |
| | 91 | N_("* first - show first update time for RRA within an RRD\n\n" |
| | 92 | "\trrdtool first filename.rrd [--rraindex number]\n\n"); |
| 80 | 93 | |
| 81 | 94 | char help_update[] = |
| 82 | | "* update - update an RRD\n\n" |
| | 95 | N_("* update - update an RRD\n\n" |
| 83 | 96 | "\trrdtool update filename\n" |
| 84 | 97 | "\t\t--template|-t ds-name:ds-name:...\n" |
| 85 | 98 | "\t\ttime|N:value[:value...]\n\n" |
| 86 | 99 | "\t\tat-time@value[:value...]\n\n" |
| 87 | | "\t\t[ time:value[:value...] ..]\n\n"; |
| | 100 | "\t\t[ time:value[:value...] ..]\n\n"); |
| 88 | 101 | |
| 89 | 102 | char help_updatev[] = |
| 90 | | "* updatev - a verbose version of update\n" |
| | 103 | N_("* updatev - a verbose version of update\n" |
| 91 | 104 | "\treturns information about values, RRAs, and datasources updated\n\n" |
| 92 | 105 | "\trrdtool updatev filename\n" |
| 93 | 106 | "\t\t--template|-t ds-name:ds-name:...\n" |
| 94 | 107 | "\t\ttime|N:value[:value...]\n\n" |
| 95 | 108 | "\t\tat-time@value[:value...]\n\n" |
| 96 | | "\t\t[ time:value[:value...] ..]\n\n"; |
| | 109 | "\t\t[ time:value[:value...] ..]\n\n"); |
| 97 | 110 | |
| 98 | 111 | char help_fetch[] = |
| 99 | | "* fetch - fetch data out of an RRD\n\n" |
| | 112 | N_("* fetch - fetch data out of an RRD\n\n" |
| 100 | 113 | "\trrdtool fetch filename.rrd CF\n" |
| 101 | 114 | "\t\t[-r|--resolution resolution]\n" |
| 102 | | "\t\t[-s|--start start] [-e|--end end]\n\n"; |
| | 115 | "\t\t[-s|--start start] [-e|--end end]\n\n"); |
| 103 | 116 | |
| 104 | 117 | /* break up very large strings (help_graph, help_tune) for ISO C89 compliance*/ |
| 105 | 118 | |
| 106 | 119 | char help_graph1[] = |
| 107 | | "* graph - generate a graph from one or several RRD\n\n" |
| | 120 | N_("* graph - generate a graph from one or several RRD\n\n" |
| 108 | 121 | "\trrdtool graph filename [-s|--start seconds] [-e|--end seconds]\n" |
| 109 | 122 | "\t\t[-x|--x-grid x-axis grid and label]\n" |
| 110 | 123 | "\t\t[-Y|--alt-y-grid]\n" |
| … |
… |
void PrintUsage( |
| 114 | 127 | "\t\t[-u|--upper-limit value] [-z|--lazy]\n" |
| 115 | 128 | "\t\t[-l|--lower-limit value] [-r|--rigid]\n" |
| 116 | 129 | "\t\t[-g|--no-legend]\n" |
| 117 | | "\t\t[-F|--force-rules-legend]\n" "\t\t[-j|--only-graph]\n"; |
| | 130 | "\t\t[-F|--force-rules-legend]\n" "\t\t[-j|--only-graph]\n"); |
| 118 | 131 | char help_graph2[] = |
| 119 | 132 | "\t\t[-n|--font FONTTAG:size:font]\n" |
| 120 | 133 | "\t\t[-m|--zoom factor]\n" |
| … |
… |
void PrintUsage( |
| 148 | 161 | "\t\t[STACK:vname[#rrggbb[aa][:legend]]] (deprecated)\n\n"; |
| 149 | 162 | |
| 150 | 163 | char help_tune1[] = |
| 151 | | " * tune - Modify some basic properties of an RRD\n\n" |
| | 164 | N_(" * tune - Modify some basic properties of an RRD\n\n" |
| 152 | 165 | "\trrdtool tune filename\n" |
| 153 | 166 | "\t\t[--heartbeat|-h ds-name:heartbeat]\n" |
| 154 | 167 | "\t\t[--data-source-type|-d ds-name:DST]\n" |
| … |
… |
void PrintUsage( |
| 157 | 170 | "\t\t[--deltapos scale-value] [--deltaneg scale-value]\n" |
| 158 | 171 | "\t\t[--failure-threshold integer]\n" |
| 159 | 172 | "\t\t[--window-length integer]\n" |
| 160 | | "\t\t[--alpha adaptation-parameter]\n"; |
| | 173 | "\t\t[--alpha adaptation-parameter]\n"); |
| 161 | 174 | char help_tune2[] = |
| 162 | | " * tune - Modify some basic properties of an RRD\n\n" |
| | 175 | N_(" * tune - Modify some basic properties of an RRD\n\n" |
| 163 | 176 | "\t\t[--beta adaptation-parameter]\n" |
| 164 | 177 | "\t\t[--gamma adaptation-parameter]\n" |
| 165 | 178 | "\t\t[--gamma-deviation adaptation-parameter]\n" |
| 166 | | "\t\t[--aberrant-reset ds-name]\n\n"; |
| | 179 | "\t\t[--aberrant-reset ds-name]\n\n"); |
| 167 | 180 | |
| 168 | 181 | char help_resize[] = |
| 169 | | " * resize - alter the length of one of the RRAs in an RRD\n\n" |
| 170 | | "\trrdtool resize filename rranum GROW|SHRINK rows\n\n"; |
| | 182 | N_(" * resize - alter the length of one of the RRAs in an RRD\n\n" |
| | 183 | "\trrdtool resize filename rranum GROW|SHRINK rows\n\n"); |
| 171 | 184 | |
| 172 | 185 | char help_xport[] = |
| 173 | | "* xport - generate XML dump from one or several RRD\n\n" |
| | 186 | N_("* xport - generate XML dump from one or several RRD\n\n" |
| 174 | 187 | "\trrdtool xport [-s|--start seconds] [-e|--end seconds]\n" |
| 175 | 188 | "\t\t[-m|--maxrows rows]\n" |
| 176 | 189 | "\t\t[--step seconds]\n" |
| 177 | 190 | "\t\t[--enumds]\n" |
| 178 | 191 | "\t\t[DEF:vname=rrd:ds-name:CF]\n" |
| 179 | | "\t\t[CDEF:vname=rpn-expression]\n" "\t\t[XPORT:vname:legend]\n\n"; |
| | 192 | "\t\t[CDEF:vname=rpn-expression]\n" "\t\t[XPORT:vname:legend]\n\n"); |
| 180 | 193 | |
| 181 | 194 | char help_quit[] = |
| 182 | | " * quit - closing a session in remote mode\n\n" "\trrdtool quit\n\n"; |
| | 195 | N_(" * quit - closing a session in remote mode\n\n" "\trrdtool quit\n\n"); |
| 183 | 196 | |
| 184 | 197 | char help_ls[] = |
| 185 | | " * ls - lists all *.rrd files in current directory\n\n" |
| 186 | | "\trrdtool ls\n\n"; |
| | 198 | N_(" * ls - lists all *.rrd files in current directory\n\n" |
| | 199 | "\trrdtool ls\n\n"); |
| 187 | 200 | |
| 188 | 201 | char help_cd[] = |
| 189 | | " * cd - changes the current directory\n\n" |
| 190 | | "\trrdtool cd new directory\n\n"; |
| | 202 | N_(" * cd - changes the current directory\n\n" |
| | 203 | "\trrdtool cd new directory\n\n"); |
| 191 | 204 | |
| 192 | 205 | char help_mkdir[] = |
| 193 | | " * mkdir - creates a new directory\n\n" |
| 194 | | "\trrdtool mkdir newdirectoryname\n\n"; |
| | 206 | N_(" * mkdir - creates a new directory\n\n" |
| | 207 | "\trrdtool mkdir newdirectoryname\n\n"); |
| 195 | 208 | |
| 196 | 209 | char help_pwd[] = |
| 197 | | " * pwd - returns the current working directory\n\n" |
| 198 | | "\trrdtool pwd\n\n"; |
| | 210 | N_(" * pwd - returns the current working directory\n\n" |
| | 211 | "\trrdtool pwd\n\n"); |
| 199 | 212 | |
| 200 | 213 | char help_lic[] = |
| 201 | | "RRDtool is distributed under the Terms of the GNU General\n" |
| | 214 | N_("RRDtool is distributed under the Terms of the GNU General\n" |
| 202 | 215 | "Public License Version 2. (www.gnu.org/copyleft/gpl.html)\n\n" |
| 203 | | "For more information read the RRD manpages\n\n"; |
| | 216 | "For more information read the RRD manpages\n\n"); |
| 204 | 217 | |
| 205 | 218 | enum { C_NONE, C_CREATE, C_DUMP, C_INFO, C_RESTORE, C_LAST, |
| 206 | 219 | C_LASTUPDATE, C_FIRST, C_UPDATE, C_FETCH, C_GRAPH, C_TUNE, |
| … |
… |
void PrintUsage( |
| 250 | 263 | else if (!strcmp(cmd, "pwd")) |
| 251 | 264 | help_cmd = C_PWD; |
| 252 | 265 | } |
| 253 | | fputs(help_main, stdout); |
| | 266 | fprintf (stdout, _(help_main), PACKAGE_VERSION, __DATE__, __TIME__); |
| | 267 | fflush (stdout); |
| 254 | 268 | switch (help_cmd) { |
| 255 | 269 | case C_NONE: |
| 256 | | fputs(help_list, stdout); |
| | 270 | fputs(_(help_list), stdout); |
| 257 | 271 | if (RemoteMode) { |
| 258 | | fputs(help_listremote, stdout); |
| | 272 | fputs(_(help_listremote), stdout); |
| 259 | 273 | } |
| 260 | 274 | break; |
| 261 | 275 | case C_CREATE: |
| 262 | | fputs(help_create, stdout); |
| | 276 | fputs(_(help_create), stdout); |
| 263 | 277 | break; |
| 264 | 278 | case C_DUMP: |
| 265 | | fputs(help_dump, stdout); |
| | 279 | fputs(_(help_dump), stdout); |
| 266 | 280 | break; |
| 267 | 281 | case C_INFO: |
| 268 | | fputs(help_info, stdout); |
| | 282 | fputs(_(help_info), stdout); |
| 269 | 283 | break; |
| 270 | 284 | case C_RESTORE: |
| 271 | | fputs(help_restore, stdout); |
| | 285 | fputs(_(help_restore), stdout); |
| 272 | 286 | break; |
| 273 | 287 | case C_LAST: |
| 274 | | fputs(help_last, stdout); |
| | 288 | fputs(_(help_last), stdout); |
| 275 | 289 | break; |
| 276 | 290 | case C_LASTUPDATE: |
| 277 | | fputs(help_lastupdate, stdout); |
| | 291 | fputs(_(help_lastupdate), stdout); |
| 278 | 292 | break; |
| 279 | 293 | case C_FIRST: |
| 280 | | fputs(help_first, stdout); |
| | 294 | fputs(_(help_first), stdout); |
| 281 | 295 | break; |
| 282 | 296 | case C_UPDATE: |
| 283 | | fputs(help_update, stdout); |
| | 297 | fputs(_(help_update), stdout); |
| 284 | 298 | break; |
| 285 | 299 | case C_UPDATEV: |
| 286 | | fputs(help_updatev, stdout); |
| | 300 | fputs(_(help_updatev), stdout); |
| 287 | 301 | break; |
| 288 | 302 | case C_FETCH: |
| 289 | | fputs(help_fetch, stdout); |
| | 303 | fputs(_(help_fetch), stdout); |
| 290 | 304 | break; |
| 291 | 305 | case C_GRAPH: |
| 292 | | fputs(help_graph1, stdout); |
| | 306 | fputs(_(help_graph1), stdout); |
| 293 | 307 | fputs(help_graph2, stdout); |
| 294 | 308 | fputs(help_graph3, stdout); |
| 295 | 309 | break; |
| 296 | 310 | case C_TUNE: |
| 297 | | fputs(help_tune1, stdout); |
| 298 | | fputs(help_tune2, stdout); |
| | 311 | fputs(_(help_tune1), stdout); |
| | 312 | fputs(_(help_tune2), stdout); |
| 299 | 313 | break; |
| 300 | 314 | case C_RESIZE: |
| 301 | | fputs(help_resize, stdout); |
| | 315 | fputs(_(help_resize), stdout); |
| 302 | 316 | break; |
| 303 | 317 | case C_XPORT: |
| 304 | | fputs(help_xport, stdout); |
| | 318 | fputs(_(help_xport), stdout); |
| 305 | 319 | break; |
| 306 | 320 | case C_QUIT: |
| 307 | | fputs(help_quit, stdout); |
| | 321 | fputs(_(help_quit), stdout); |
| 308 | 322 | break; |
| 309 | 323 | case C_LS: |
| 310 | | fputs(help_ls, stdout); |
| | 324 | fputs(_(help_ls), stdout); |
| 311 | 325 | break; |
| 312 | 326 | case C_CD: |
| 313 | | fputs(help_cd, stdout); |
| | 327 | fputs(_(help_cd), stdout); |
| 314 | 328 | break; |
| 315 | 329 | case C_MKDIR: |
| 316 | | fputs(help_mkdir, stdout); |
| | 330 | fputs(_(help_mkdir), stdout); |
| 317 | 331 | break; |
| 318 | 332 | case C_PWD: |
| 319 | | fputs(help_pwd, stdout); |
| | 333 | fputs(_(help_pwd), stdout); |
| 320 | 334 | break; |
| 321 | 335 | } |
| 322 | | fputs(help_lic, stdout); |
| | 336 | fputs(_(help_lic), stdout); |
| 323 | 337 | } |
| 324 | 338 | |
| 325 | 339 | static char *fgetslong( |
| … |
… |
int main( |
| 364 | 378 | #ifdef MUST_DISABLE_FPMASK |
| 365 | 379 | fpsetmask(0); |
| 366 | 380 | #endif |
| | 381 | #ifdef HAVE_LOCALE_H |
| | 382 | setlocale (LC_ALL, ""); |
| | 383 | #endif |
| | 384 | #ifdef HAVE_LIBINTL_H |
| | 385 | bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
| | 386 | bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
| | 387 | textdomain (GETTEXT_PACKAGE); |
| | 388 | #endif |
| 367 | 389 | if (argc == 1) { |
| 368 | 390 | PrintUsage(""); |
| 369 | 391 | return 0; |
Download in other formats:
|