|
Ticket #144: rrdtool-6662646-g11n-i18n-ui.diff
| File rrdtool-6662646-g11n-i18n-ui.diff,
16.6 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 bindings doc examples |
| | 5 | SUBDIRS = po src bindings doc examples |
| 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 (); |
| 155 | 155 | dnl Process Special Options |
| 156 | 156 | dnl ----------------------------------- |
| 157 | 157 | |
| | 158 | dnl gettext |
| | 159 | GETTEXT_PACKAGE=rrdtool |
| | 160 | AC_SUBST(GETTEXT_PACKAGE) |
| | 161 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package]) |
| | 162 | IT_PROG_INTLTOOL([0.35.0]) |
| | 163 | |
| | 164 | AM_GLIB_GNU_GETTEXT |
| | 165 | |
| 158 | 166 | dnl How the vertical axis label is printed |
| 159 | 167 | AC_ARG_VAR(RRDGRAPH_YLEGEND_ANGLE, |
| 160 | 168 | [Vertical label angle: 90.0 (default) or 270.0]) |
| … |
… |
CONFIGURE_PART(Checking for Header Files |
| 218 | 226 | dnl Checks for header files. |
| 219 | 227 | AC_HEADER_STDC |
| 220 | 228 | AC_HEADER_DIRENT |
| 221 | | AC_CHECK_HEADERS(sys/stat.h sys/types.h fcntl.h time.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/time.h sys/times.h sys/param.h sys/resource.h float.h) |
| | 229 | AC_CHECK_HEADERS(sys/stat.h sys/types.h fcntl.h time.h libintl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/time.h sys/times.h sys/param.h sys/resource.h float.h) |
| 222 | 230 | |
| 223 | 231 | dnl Checks for typedefs, structures, and compiler characteristics. |
| 224 | 232 | AC_C_CONST |
| … |
… |
AC_CONFIG_FILES([examples/4charts.pl]) |
| 605 | 614 | AC_CONFIG_FILES([examples/perftest.pl]) |
| 606 | 615 | AC_CONFIG_FILES([examples/Makefile]) |
| 607 | 616 | AC_CONFIG_FILES([doc/Makefile]) |
| | 617 | AC_CONFIG_FILES([po/Makefile.in]) |
| 608 | 618 | AC_CONFIG_FILES([src/Makefile]) |
| 609 | 619 | AC_CONFIG_FILES([bindings/Makefile]) |
| 610 | 620 | AC_CONFIG_FILES([bindings/tcl/Makefile]) |
-
-
|
old
|
new
|
|
| | 1 | src/getopt.c |
| | 2 | src/rrd_tool.c |
-
|
old
|
new
|
Python RRDtool bindings. |
| 77 | 77 | configure Makefile.in |
| 78 | 78 | |
| 79 | 79 | %build |
| | 80 | intltoolize --automake -c -f |
| | 81 | aclocal |
| | 82 | autoheader |
| | 83 | autoconf |
| | 84 | automake -a -c -f |
| 80 | 85 | %configure \ |
| 81 | 86 | --program-prefix="%{?_program_prefix}" \ |
| 82 | 87 | --libdir=%{_libdir} \ |
-
|
old
|
new
|
fonts_DATA = DejaVuSansMono-Roman.ttf |
| 9 | 9 | |
| 10 | 10 | #INCLUDES = $(FREETYPE_INCLUDES) $(ART_INCLUDES) \ |
| 11 | 11 | # $(PNG_INCLUDES) $(ZLIB_INCLUDES) |
| | 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 | |
| … |
… |
noinst_HEADERS = \ |
| 52 | 53 | unused.h \ |
| 53 | 54 | rrd_gfx.h \ |
| 54 | 55 | getopt.h parsetime.h \ |
| | 56 | rrd_i18n.h \ |
| 55 | 57 | rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_hw.h rrd_rpncalc.h \ |
| 56 | 58 | rrd_nan_inf.h fnv.h rrd_graph.h rrd_afm.h rrd_afm_data.h \ |
| 57 | 59 | rrd_is_thread_safe.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(char *cmd); |
| 11 | 24 | int CountArgs(char *aLine); |
| … |
… |
void PrintUsage(char *cmd) |
| 22 | 35 | { |
| 23 | 36 | |
| 24 | 37 | char help_main[] = |
| 25 | | "RRDtool " PACKAGE_VERSION " Copyright 1997-2007 by Tobias Oetiker <tobi@oetiker.ch>\n" |
| 26 | | " Compiled " __DATE__ " " __TIME__ "\n\n" |
| 27 | | "Usage: rrdtool [options] command command_options\n\n"; |
| | 38 | N_("RRDtool %s Copyright 1997-2007 by Tobias Oetiker <tobi@oetiker.ch>\n" |
| | 39 | " Compiled %s %s\n\n" |
| | 40 | "Usage: rrdtool [options] command command_options\n\n"); |
| 28 | 41 | |
| 29 | 42 | char help_list[] = |
| 30 | | "Valid commands: create, update, updatev, graph, dump, restore,\n" |
| | 43 | N_("Valid commands: create, update, updatev, graph, dump, restore,\n" |
| 31 | 44 | "\t\tlast, lastupdate, first, info, fetch, tune,\n" |
| 32 | | " resize, xport\n\n"; |
| | 45 | " resize, xport\n\n"); |
| 33 | 46 | |
| 34 | 47 | char help_listremote[] = |
| 35 | | "Valid remote commands: quit, ls, cd, mkdir, pwd\n\n"; |
| | 48 | N_("Valid remote commands: quit, ls, cd, mkdir, pwd\n\n"); |
| 36 | 49 | |
| 37 | 50 | |
| 38 | 51 | char help_create[] = |
| 39 | | "* create - create a new RRD\n\n" |
| | 52 | N_("* create - create a new RRD\n\n" |
| 40 | 53 | "\trrdtool create filename [--start|-b start time]\n" |
| 41 | 54 | "\t\t[--step|-s step]\n" |
| 42 | 55 | "\t\t[DS:ds-name:DST:dst arguments]\n" |
| 43 | | "\t\t[RRA:CF:cf arguments]\n\n"; |
| | 56 | "\t\t[RRA:CF:cf arguments]\n\n"); |
| 44 | 57 | |
| 45 | 58 | char help_dump[] = |
| 46 | | "* dump - dump an RRD to XML\n\n" |
| 47 | | "\trrdtool dump filename.rrd >filename.xml\n\n"; |
| | 59 | N_("* dump - dump an RRD to XML\n\n" |
| | 60 | "\trrdtool dump filename.rrd >filename.xml\n\n"); |
| 48 | 61 | |
| 49 | 62 | char help_info[] = |
| 50 | | "* info - returns the configuration and status of the RRD\n\n" |
| 51 | | "\trrdtool info filename.rrd\n\n"; |
| | 63 | N_("* info - returns the configuration and status of the RRD\n\n" |
| | 64 | "\trrdtool info filename.rrd\n\n"); |
| 52 | 65 | |
| 53 | 66 | char help_restore[] = |
| 54 | | "* restore - restore an RRD file from its XML form\n\n" |
| 55 | | "\trrdtool restore [--range-check|-r] [--force-overwrite|-f] filename.xml filename.rrd\n\n"; |
| | 67 | N_("* restore - restore an RRD file from its XML form\n\n" |
| | 68 | "\trrdtool restore [--range-check|-r] [--force-overwrite|-f] filename.xml filename.rrd\n\n"); |
| 56 | 69 | |
| 57 | 70 | char help_last[] = |
| 58 | | "* last - show last update time for RRD\n\n" |
| 59 | | "\trrdtool last filename.rrd\n\n"; |
| | 71 | N_("* last - show last update time for RRD\n\n" |
| | 72 | "\trrdtool last filename.rrd\n\n"); |
| 60 | 73 | |
| 61 | 74 | char help_lastupdate[] = |
| 62 | | "* lastupdate - returns the most recent datum stored for\n" |
| | 75 | N_("* lastupdate - returns the most recent datum stored for\n" |
| 63 | 76 | " each DS in an RRD\n\n" |
| 64 | | "\trrdtool lastupdate filename.rrd\n\n"; |
| | 77 | "\trrdtool lastupdate filename.rrd\n\n"); |
| 65 | 78 | |
| 66 | 79 | char help_first[] = |
| 67 | | "* first - show first update time for RRA within an RRD\n\n" |
| 68 | | "\trrdtool first filename.rrd [--rraindex number]\n\n"; |
| | 80 | N_("* first - show first update time for RRA within an RRD\n\n" |
| | 81 | "\trrdtool first filename.rrd [--rraindex number]\n\n"); |
| 69 | 82 | |
| 70 | 83 | char help_update[] = |
| 71 | | "* update - update an RRD\n\n" |
| | 84 | N_("* update - update an RRD\n\n" |
| 72 | 85 | "\trrdtool update filename\n" |
| 73 | 86 | "\t\t--template|-t ds-name:ds-name:...\n" |
| 74 | 87 | "\t\ttime|N:value[:value...]\n\n" |
| 75 | 88 | "\t\tat-time@value[:value...]\n\n" |
| 76 | | "\t\t[ time:value[:value...] ..]\n\n"; |
| | 89 | "\t\t[ time:value[:value...] ..]\n\n"); |
| 77 | 90 | |
| 78 | 91 | char help_updatev[] = |
| 79 | | "* updatev - a verbose version of update\n" |
| | 92 | N_("* updatev - a verbose version of update\n" |
| 80 | 93 | "\treturns information about values, RRAs, and datasources updated\n\n" |
| 81 | 94 | "\trrdtool updatev filename\n" |
| 82 | 95 | "\t\t--template|-t ds-name:ds-name:...\n" |
| 83 | 96 | "\t\ttime|N:value[:value...]\n\n" |
| 84 | 97 | "\t\tat-time@value[:value...]\n\n" |
| 85 | | "\t\t[ time:value[:value...] ..]\n\n"; |
| | 98 | "\t\t[ time:value[:value...] ..]\n\n"); |
| 86 | 99 | |
| 87 | 100 | char help_fetch[] = |
| 88 | | "* fetch - fetch data out of an RRD\n\n" |
| | 101 | N_("* fetch - fetch data out of an RRD\n\n" |
| 89 | 102 | "\trrdtool fetch filename.rrd CF\n" |
| 90 | 103 | "\t\t[-r|--resolution resolution]\n" |
| 91 | | "\t\t[-s|--start start] [-e|--end end]\n\n"; |
| | 104 | "\t\t[-s|--start start] [-e|--end end]\n\n"); |
| 92 | 105 | |
| 93 | 106 | /* break up very large strings (help_graph, help_tune) for ISO C89 compliance*/ |
| 94 | 107 | |
| 95 | 108 | char help_graph1[] = |
| 96 | | "* graph - generate a graph from one or several RRD\n\n" |
| | 109 | N_("* graph - generate a graph from one or several RRD\n\n" |
| 97 | 110 | "\trrdtool graph filename [-s|--start seconds] [-e|--end seconds]\n" |
| 98 | 111 | "\t\t[-x|--x-grid x-axis grid and label]\n" |
| 99 | 112 | "\t\t[-Y|--alt-y-grid]\n" |
| … |
… |
void PrintUsage(char *cmd) |
| 104 | 117 | "\t\t[-l|--lower-limit value] [-r|--rigid]\n" |
| 105 | 118 | "\t\t[-g|--no-legend]\n" |
| 106 | 119 | "\t\t[-F|--force-rules-legend]\n" |
| 107 | | "\t\t[-j|--only-graph]\n"; |
| | 120 | "\t\t[-j|--only-graph]\n"); |
| 108 | 121 | char help_graph2[] = |
| 109 | 122 | "\t\t[-n|--font FONTTAG:size:font]\n" |
| 110 | 123 | "\t\t[-m|--zoom factor]\n" |
| … |
… |
void PrintUsage(char *cmd) |
| 139 | 152 | "\t\t[STACK:vname[#rrggbb[aa][:legend]]] (deprecated)\n\n"; |
| 140 | 153 | |
| 141 | 154 | char help_tune1[] = |
| 142 | | " * tune - Modify some basic properties of an RRD\n\n" |
| | 155 | N_(" * tune - Modify some basic properties of an RRD\n\n" |
| 143 | 156 | "\trrdtool tune filename\n" |
| 144 | 157 | "\t\t[--heartbeat|-h ds-name:heartbeat]\n" |
| 145 | 158 | "\t\t[--data-source-type|-d ds-name:DST]\n" |
| … |
… |
void PrintUsage(char *cmd) |
| 148 | 161 | "\t\t[--deltapos scale-value] [--deltaneg scale-value]\n" |
| 149 | 162 | "\t\t[--failure-threshold integer]\n" |
| 150 | 163 | "\t\t[--window-length integer]\n" |
| 151 | | "\t\t[--alpha adaptation-parameter]\n"; |
| | 164 | "\t\t[--alpha adaptation-parameter]\n"); |
| 152 | 165 | char help_tune2[] = |
| 153 | | " * tune - Modify some basic properties of an RRD\n\n" |
| | 166 | N_(" * tune - Modify some basic properties of an RRD\n\n" |
| 154 | 167 | "\t\t[--beta adaptation-parameter]\n" |
| 155 | 168 | "\t\t[--gamma adaptation-parameter]\n" |
| 156 | 169 | "\t\t[--gamma-deviation adaptation-parameter]\n" |
| 157 | | "\t\t[--aberrant-reset ds-name]\n\n"; |
| | 170 | "\t\t[--aberrant-reset ds-name]\n\n"); |
| 158 | 171 | |
| 159 | 172 | char help_resize[] = |
| 160 | | " * resize - alter the length of one of the RRAs in an RRD\n\n" |
| 161 | | "\trrdtool resize filename rranum GROW|SHRINK rows\n\n"; |
| | 173 | N_(" * resize - alter the length of one of the RRAs in an RRD\n\n" |
| | 174 | "\trrdtool resize filename rranum GROW|SHRINK rows\n\n"); |
| 162 | 175 | |
| 163 | 176 | char help_xport[] = |
| 164 | | "* xport - generate XML dump from one or several RRD\n\n" |
| | 177 | N_("* xport - generate XML dump from one or several RRD\n\n" |
| 165 | 178 | "\trrdtool xport [-s|--start seconds] [-e|--end seconds]\n" |
| 166 | 179 | "\t\t[-m|--maxrows rows]\n" |
| 167 | 180 | "\t\t[--step seconds]\n" |
| 168 | 181 | "\t\t[--enumds]\n" |
| 169 | 182 | "\t\t[DEF:vname=rrd:ds-name:CF]\n" |
| 170 | 183 | "\t\t[CDEF:vname=rpn-expression]\n" |
| 171 | | "\t\t[XPORT:vname:legend]\n\n"; |
| | 184 | "\t\t[XPORT:vname:legend]\n\n"); |
| 172 | 185 | |
| 173 | 186 | char help_quit[] = |
| 174 | | " * quit - closing a session in remote mode\n\n" |
| 175 | | "\trrdtool quit\n\n"; |
| | 187 | N_(" * quit - closing a session in remote mode\n\n" |
| | 188 | "\trrdtool quit\n\n"); |
| 176 | 189 | |
| 177 | 190 | char help_ls[] = |
| 178 | | " * ls - lists all *.rrd files in current directory\n\n" |
| 179 | | "\trrdtool ls\n\n"; |
| | 191 | N_(" * ls - lists all *.rrd files in current directory\n\n" |
| | 192 | "\trrdtool ls\n\n"); |
| 180 | 193 | |
| 181 | 194 | char help_cd[] = |
| 182 | | " * cd - changes the current directory\n\n" |
| 183 | | "\trrdtool cd new directory\n\n"; |
| | 195 | N_(" * cd - changes the current directory\n\n" |
| | 196 | "\trrdtool cd new directory\n\n"); |
| 184 | 197 | |
| 185 | 198 | char help_mkdir[] = |
| 186 | | " * mkdir - creates a new directory\n\n" |
| 187 | | "\trrdtool mkdir newdirectoryname\n\n"; |
| | 199 | N_(" * mkdir - creates a new directory\n\n" |
| | 200 | "\trrdtool mkdir newdirectoryname\n\n"); |
| 188 | 201 | |
| 189 | 202 | char help_pwd[] = |
| 190 | | " * pwd - returns the current working directory\n\n" |
| 191 | | "\trrdtool pwd\n\n"; |
| | 203 | N_(" * pwd - returns the current working directory\n\n" |
| | 204 | "\trrdtool pwd\n\n"); |
| 192 | 205 | |
| 193 | 206 | char help_lic[] = |
| 194 | | "RRDtool is distributed under the Terms of the GNU General\n" |
| | 207 | N_("RRDtool is distributed under the Terms of the GNU General\n" |
| 195 | 208 | "Public License Version 2. (www.gnu.org/copyleft/gpl.html)\n\n" |
| 196 | 209 | |
| 197 | | "For more information read the RRD manpages\n\n"; |
| | 210 | "For more information read the RRD manpages\n\n"); |
| 198 | 211 | |
| 199 | 212 | enum { C_NONE, C_CREATE, C_DUMP, C_INFO, C_RESTORE, C_LAST, |
| 200 | 213 | C_LASTUPDATE, C_FIRST, C_UPDATE, C_FETCH, C_GRAPH, C_TUNE, |
| … |
… |
void PrintUsage(char *cmd) |
| 244 | 257 | else if (!strcmp(cmd,"pwd")) |
| 245 | 258 | help_cmd = C_PWD; |
| 246 | 259 | } |
| 247 | | fputs(help_main, stdout); |
| | 260 | fprintf(stdout, _(help_main), PACKAGE_VERSION, __DATE__, __TIME__); |
| | 261 | fflush (stdout); |
| 248 | 262 | switch (help_cmd) |
| 249 | 263 | { |
| 250 | 264 | case C_NONE: |
| 251 | | fputs(help_list, stdout); |
| | 265 | fputs(_(help_list), stdout); |
| 252 | 266 | if (RemoteMode){ |
| 253 | | fputs(help_listremote, stdout); |
| | 267 | fputs(_(help_listremote), stdout); |
| 254 | 268 | } |
| 255 | 269 | break; |
| 256 | 270 | case C_CREATE: |
| 257 | | fputs(help_create, stdout); |
| | 271 | fputs(_(help_create), stdout); |
| 258 | 272 | break; |
| 259 | 273 | case C_DUMP: |
| 260 | | fputs(help_dump, stdout); |
| | 274 | fputs(_(help_dump), stdout); |
| 261 | 275 | break; |
| 262 | 276 | case C_INFO: |
| 263 | | fputs(help_info, stdout); |
| | 277 | fputs(_(help_info), stdout); |
| 264 | 278 | break; |
| 265 | 279 | case C_RESTORE: |
| 266 | | fputs(help_restore, stdout); |
| | 280 | fputs(_(help_restore), stdout); |
| 267 | 281 | break; |
| 268 | 282 | case C_LAST: |
| 269 | | fputs(help_last, stdout); |
| | 283 | fputs(_(help_last), stdout); |
| 270 | 284 | break; |
| 271 | 285 | case C_LASTUPDATE: |
| 272 | | fputs(help_lastupdate, stdout); |
| | 286 | fputs(_(help_lastupdate), stdout); |
| 273 | 287 | break; |
| 274 | 288 | case C_FIRST: |
| 275 | | fputs(help_first, stdout); |
| | 289 | fputs(_(help_first), stdout); |
| 276 | 290 | break; |
| 277 | 291 | case C_UPDATE: |
| 278 | | fputs(help_update, stdout); |
| | 292 | fputs(_(help_update), stdout); |
| 279 | 293 | break; |
| 280 | 294 | case C_UPDATEV: |
| 281 | | fputs(help_updatev, stdout); |
| | 295 | fputs(_(help_updatev), stdout); |
| 282 | 296 | break; |
| 283 | 297 | case C_FETCH: |
| 284 | | fputs(help_fetch, stdout); |
| | 298 | fputs(_(help_fetch), stdout); |
| 285 | 299 | break; |
| 286 | 300 | case C_GRAPH: |
| 287 | | fputs(help_graph1, stdout); |
| | 301 | fputs(_(help_graph1), stdout); |
| 288 | 302 | fputs(help_graph2, stdout); |
| 289 | 303 | fputs(help_graph3, stdout); |
| 290 | 304 | break; |
| 291 | 305 | case C_TUNE: |
| 292 | | fputs(help_tune1, stdout); |
| 293 | | fputs(help_tune2, stdout); |
| | 306 | fputs(_(help_tune1), stdout); |
| | 307 | fputs(_(help_tune2), stdout); |
| 294 | 308 | break; |
| 295 | 309 | case C_RESIZE: |
| 296 | | fputs(help_resize, stdout); |
| | 310 | fputs(_(help_resize), stdout); |
| 297 | 311 | break; |
| 298 | 312 | case C_XPORT: |
| 299 | | fputs(help_xport, stdout); |
| | 313 | fputs(_(help_xport), stdout); |
| 300 | 314 | break; |
| 301 | 315 | case C_QUIT: |
| 302 | | fputs(help_quit, stdout); |
| | 316 | fputs(_(help_quit), stdout); |
| 303 | 317 | break; |
| 304 | 318 | case C_LS: |
| 305 | | fputs(help_ls, stdout); |
| | 319 | fputs(_(help_ls), stdout); |
| 306 | 320 | break; |
| 307 | 321 | case C_CD: |
| 308 | | fputs(help_cd, stdout); |
| | 322 | fputs(_(help_cd), stdout); |
| 309 | 323 | break; |
| 310 | 324 | case C_MKDIR: |
| 311 | | fputs(help_mkdir, stdout); |
| | 325 | fputs(_(help_mkdir), stdout); |
| 312 | 326 | break; |
| 313 | 327 | case C_PWD: |
| 314 | | fputs(help_pwd, stdout); |
| | 328 | fputs(_(help_pwd), stdout); |
| 315 | 329 | break; |
| 316 | 330 | } |
| 317 | | fputs(help_lic, stdout); |
| | 331 | fputs(_(help_lic), stdout); |
| 318 | 332 | } |
| 319 | 333 | |
| 320 | 334 | static char *fgetslong(char **aLinePtr, FILE *stream) |
| … |
… |
int main(int argc, char *argv[]) |
| 352 | 366 | #ifdef MUST_DISABLE_FPMASK |
| 353 | 367 | fpsetmask(0); |
| 354 | 368 | #endif |
| | 369 | #ifdef HAVE_LOCALE_H |
| | 370 | setlocale (LC_ALL, ""); |
| | 371 | #endif |
| | 372 | |
| | 373 | bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
| | 374 | bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
| | 375 | textdomain (GETTEXT_PACKAGE); |
| | 376 | |
| | 377 | fpsetmask(0); |
| 355 | 378 | if (argc == 1) |
| 356 | 379 | { |
| 357 | 380 | PrintUsage(""); |
Download in other formats:
|