From 12c320db846886db3c3b4fb09202dd6c3d43b412 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 21 Feb 2008 07:12:27 +0000 Subject: [PATCH] make inbternationalized version actually build git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1292 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/MakeMakefile | 2 +- program/configure.ac | 3 +- program/po/LINGUAS | 3 +- program/po/de.po | 334 +++++++++++++++++++++++++++++++++++++++++ program/src/rrd_tool.c | 8 +- 5 files changed, 342 insertions(+), 8 deletions(-) create mode 100644 program/po/de.po diff --git a/program/MakeMakefile b/program/MakeMakefile index 026f0a9d..a95542e4 100755 --- a/program/MakeMakefile +++ b/program/MakeMakefile @@ -33,7 +33,7 @@ then else automake=automake-1.9 aclocal="aclocal-1.9" - for d in /usr/pack/automake-1.9.5-to/share/aclocal-1.9 /usr/share/aclocal-1.9; do + for d in /usr/pack/automake-1.9.5-to/share/aclocal-1.9 /usr/share/aclocal-1.9 /usr/pack/rrdtool-1.3svn-to/share/aclocal /usr/pack/intltool-0.37.0-to/share/aclocal ; do [ -d $d ] && aclocal="$aclocal -I $d" done fi diff --git a/program/configure.ac b/program/configure.ac index 6ee7b2f9..0b092c1f 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -291,8 +291,7 @@ dnl gettext GETTEXT_PACKAGE=rrdtool AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package]) -IT_PROG_INTLTOOL([0.35.0]) - +IT_PROG_INTLTOOL([0.35.0],[no-xml]) AM_GLIB_GNU_GETTEXT dnl How the vertical axis label is printed diff --git a/program/po/LINGUAS b/program/po/LINGUAS index 792d6005..46ae20d6 100644 --- a/program/po/LINGUAS +++ b/program/po/LINGUAS @@ -1 +1,2 @@ -# +de + diff --git a/program/po/de.po b/program/po/de.po new file mode 100644 index 00000000..4c556c78 --- /dev/null +++ b/program/po/de.po @@ -0,0 +1,334 @@ +#: ../src/rrd_getopt.c:615 +#, c-format +msgid "%s: option `%s' is ambiguous\n" +msgstr "" + +#: ../src/rrd_getopt.c:637 +#, c-format +msgid "%s: option `--%s' doesn't allow an argument\n" +msgstr "" + +#: ../src/rrd_getopt.c:643 +#, c-format +msgid "%s: option `%c%s' doesn't allow an argument\n" +msgstr "" + +#: ../src/rrd_getopt.c:658 ../src/rrd_getopt.c:811 +#, c-format +msgid "%s: option `%s' requires an argument\n" +msgstr "" + +#. --option +#: ../src/rrd_getopt.c:684 +#, c-format +msgid "%s: unrecognized option `--%s'\n" +msgstr "" + +#. +option or -option +#: ../src/rrd_getopt.c:688 +#, c-format +msgid "%s: unrecognized option `%c%s'\n" +msgstr "" + +#. 1003.2 specifies the format of this message. +#: ../src/rrd_getopt.c:712 +#, c-format +msgid "%s: illegal option -- %c\n" +msgstr "" + +#: ../src/rrd_getopt.c:715 +#, c-format +msgid "%s: invalid option -- %c\n" +msgstr "" + +#: ../src/rrd_getopt.c:741 ../src/rrd_getopt.c:849 +#, c-format +msgid "%s: option requires an argument -- %c\n" +msgstr "" + +#: ../src/rrd_getopt.c:783 +#, c-format +msgid "%s: option `-W %s' is ambiguous\n" +msgstr "" + +#: ../src/rrd_getopt.c:798 +#, c-format +msgid "%s: option `-W %s' doesn't allow an argument\n" +msgstr "" + +#: ../src/rrd_tool.c:49 +#, c-format +msgid "" +"RRDtool %s Copyright 1997-2007 by Tobias Oetiker \n" +" Compiled %s %s\n" +"\n" +"Usage: rrdtool [options] command command_options\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:55 +msgid "" +"Valid commands: create, update, updatev, graph, dump, restore,\n" +"\t\tlast, lastupdate, first, info, fetch, tune,\n" +"\t\tresize, xport\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:60 +msgid "" +"Valid remote commands: quit, ls, cd, mkdir, pwd\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:64 +msgid "" +"* create - create a new RRD\n" +"\n" +"\trrdtool create filename [--start|-b start time]\n" +"\t\t[--step|-s step]\n" +"\t\t[DS:ds-name:DST:dst arguments]\n" +"\t\t[RRA:CF:cf arguments]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:71 +msgid "" +"* dump - dump an RRD to XML\n" +"\n" +"\trrdtool dump filename.rrd >filename.xml\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:75 +msgid "" +"* info - returns the configuration and status of the RRD\n" +"\n" +"\trrdtool info filename.rrd\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:79 +msgid "" +"* restore - restore an RRD file from its XML form\n" +"\n" +"\trrdtool restore [--range-check|-r] [--force-overwrite|-f] filename.xml " +"filename.rrd\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:83 +msgid "" +"* last - show last update time for RRD\n" +"\n" +"\trrdtool last filename.rrd\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:87 +msgid "" +"* lastupdate - returns the most recent datum stored for\n" +" each DS in an RRD\n" +"\n" +"\trrdtool lastupdate filename.rrd\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:91 +msgid "" +"* first - show first update time for RRA within an RRD\n" +"\n" +"\trrdtool first filename.rrd [--rraindex number]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:95 +msgid "" +"* update - update an RRD\n" +"\n" +"\trrdtool update filename\n" +"\t\t--template|-t ds-name:ds-name:...\n" +"\t\ttime|N:value[:value...]\n" +"\n" +"\t\tat-time@value[:value...]\n" +"\n" +"\t\t[ time:value[:value...] ..]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:103 +msgid "" +"* updatev - a verbose version of update\n" +"\treturns information about values, RRAs, and datasources updated\n" +"\n" +"\trrdtool updatev filename\n" +"\t\t--template|-t ds-name:ds-name:...\n" +"\t\ttime|N:value[:value...]\n" +"\n" +"\t\tat-time@value[:value...]\n" +"\n" +"\t\t[ time:value[:value...] ..]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:112 +msgid "" +"* fetch - fetch data out of an RRD\n" +"\n" +"\trrdtool fetch filename.rrd CF\n" +"\t\t[-r|--resolution resolution]\n" +"\t\t[-s|--start start] [-e|--end end]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:120 +msgid "" +"* graph - generate a graph from one or several RRD\n" +"\n" +"\trrdtool graph filename [-s|--start seconds] [-e|--end seconds]\n" +"\t\t[-x|--x-grid x-axis grid and label]\n" +"\t\t[-Y|--alt-y-grid]\n" +"\t\t[-y|--y-grid y-axis grid and label]\n" +"\t\t[-v|--vertical-label string] [-w|--width pixels]\n" +"\t\t[-h|--height pixels] [-o|--logarithmic]\n" +"\t\t[-u|--upper-limit value] [-z|--lazy]\n" +"\t\t[-l|--lower-limit value] [-r|--rigid]\n" +"\t\t[-g|--no-legend]\n" +"\t\t[-F|--force-rules-legend]\n" +"\t\t[-j|--only-graph]\n" +msgstr "" + +#: ../src/rrd_tool.c:132 +msgid "" +"\t\t[-n|--font FONTTAG:size:font]\n" +"\t\t[-m|--zoom factor]\n" +"\t\t[-A|--alt-autoscale]\n" +"\t\t[-M|--alt-autoscale-max]\n" +"\t\t[-R|--font-render-mode {normal,light,mono}]\n" +"\t\t[-B|--font-smoothing-threshold size]\n" +"\t\t[-E|--slope-mode]\n" +"\t\t[-N|--no-gridfit]\n" +"\t\t[-X|--units-exponent value]\n" +"\t\t[-L|--units-length value]\n" +"\t\t[-S|--step seconds]\n" +"\t\t[-f|--imginfo printfstr]\n" +"\t\t[-a|--imgformat PNG]\n" +"\t\t[-c|--color COLORTAG#rrggbb[aa]] [-t|--title string]\n" +"\t\t[-W|--watermark string]\n" +"\t\t[DEF:vname=rrd:ds-name:CF]\n" +msgstr "" + +#: ../src/rrd_tool.c:148 +msgid "" +"\t\t[CDEF:vname=rpn-expression]\n" +"\t\t[VDEF:vdefname=rpn-expression]\n" +"\t\t[PRINT:vdefname:format]\n" +"\t\t[GPRINT:vdefname:format]\n" +"\t\t[COMMENT:text]\n" +"\t\t[SHIFT:vname:offset]\n" +"\t\t[TICK:vname#rrggbb[aa][:[fraction][:legend]]]\n" +"\t\t[HRULE:value#rrggbb[aa][:legend]]\n" +"\t\t[VRULE:value#rrggbb[aa][:legend]]\n" +"\t\t[LINE[width]:vname[#rrggbb[aa][:[legend][:STACK]]]]\n" +"\t\t[AREA:vname[#rrggbb[aa][:[legend][:STACK]]]]\n" +"\t\t[PRINT:vname:CF:format] (deprecated)\n" +"\t\t[GPRINT:vname:CF:format] (deprecated)\n" +"\t\t[STACK:vname[#rrggbb[aa][:legend]]] (deprecated)\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:164 +msgid "" +" * tune - Modify some basic properties of an RRD\n" +"\n" +"\trrdtool tune filename\n" +"\t\t[--heartbeat|-h ds-name:heartbeat]\n" +"\t\t[--data-source-type|-d ds-name:DST]\n" +"\t\t[--data-source-rename|-r old-name:new-name]\n" +"\t\t[--minimum|-i ds-name:min] [--maximum|-a ds-name:max]\n" +"\t\t[--deltapos scale-value] [--deltaneg scale-value]\n" +"\t\t[--failure-threshold integer]\n" +"\t\t[--window-length integer]\n" +"\t\t[--alpha adaptation-parameter]\n" +msgstr "" + +#: ../src/rrd_tool.c:175 +msgid "" +" * tune - Modify some basic properties of an RRD\n" +"\n" +"\t\t[--beta adaptation-parameter]\n" +"\t\t[--gamma adaptation-parameter]\n" +"\t\t[--gamma-deviation adaptation-parameter]\n" +"\t\t[--aberrant-reset ds-name]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:182 +msgid "" +" * resize - alter the length of one of the RRAs in an RRD\n" +"\n" +"\trrdtool resize filename rranum GROW|SHRINK rows\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:186 +msgid "" +"* xport - generate XML dump from one or several RRD\n" +"\n" +"\trrdtool xport [-s|--start seconds] [-e|--end seconds]\n" +"\t\t[-m|--maxrows rows]\n" +"\t\t[--step seconds]\n" +"\t\t[--enumds]\n" +"\t\t[DEF:vname=rrd:ds-name:CF]\n" +"\t\t[CDEF:vname=rpn-expression]\n" +"\t\t[XPORT:vname:legend]\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:195 +msgid "" +" * quit - closing a session in remote mode\n" +"\n" +"\trrdtool quit\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:198 +msgid "" +" * ls - lists all *.rrd files in current directory\n" +"\n" +"\trrdtool ls\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:202 +msgid "" +" * cd - changes the current directory\n" +"\n" +"\trrdtool cd new directory\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:206 +msgid "" +" * mkdir - creates a new directory\n" +"\n" +"\trrdtool mkdir newdirectoryname\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:210 +msgid "" +" * pwd - returns the current working directory\n" +"\n" +"\trrdtool pwd\n" +"\n" +msgstr "" + +#: ../src/rrd_tool.c:214 +msgid "" +"RRDtool is distributed under the Terms of the GNU General\n" +"Public License Version 2. (www.gnu.org/copyleft/gpl.html)\n" +"\n" +"For more information read the RRD manpages\n" +"\n" +msgstr "" diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index cdb87e82..9d65ecd6 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -129,7 +129,7 @@ void PrintUsage( "\t\t[-g|--no-legend]\n" "\t\t[-F|--force-rules-legend]\n" "\t\t[-j|--only-graph]\n"); char help_graph2[] = - "\t\t[-n|--font FONTTAG:size:font]\n" + N_("\t\t[-n|--font FONTTAG:size:font]\n" "\t\t[-m|--zoom factor]\n" "\t\t[-A|--alt-autoscale]\n" "\t\t[-M|--alt-autoscale-max]\n" @@ -143,9 +143,9 @@ void PrintUsage( "\t\t[-f|--imginfo printfstr]\n" "\t\t[-a|--imgformat PNG]\n" "\t\t[-c|--color COLORTAG#rrggbb[aa]] [-t|--title string]\n" - "\t\t[-W|--watermark string]\n" "\t\t[DEF:vname=rrd:ds-name:CF]\n"; + "\t\t[-W|--watermark string]\n" "\t\t[DEF:vname=rrd:ds-name:CF]\n"); char help_graph3[] = - "\t\t[CDEF:vname=rpn-expression]\n" + N_("\t\t[CDEF:vname=rpn-expression]\n" "\t\t[VDEF:vdefname=rpn-expression]\n" "\t\t[PRINT:vdefname:format]\n" "\t\t[GPRINT:vdefname:format]\n" @@ -158,7 +158,7 @@ void PrintUsage( "\t\t[AREA:vname[#rrggbb[aa][:[legend][:STACK]]]]\n" "\t\t[PRINT:vname:CF:format] (deprecated)\n" "\t\t[GPRINT:vname:CF:format] (deprecated)\n" - "\t\t[STACK:vname[#rrggbb[aa][:legend]]] (deprecated)\n\n"; + "\t\t[STACK:vname[#rrggbb[aa][:legend]]] (deprecated)\n\n"); char help_tune1[] = N_(" * tune - Modify some basic properties of an RRD\n\n" -- 2.30.2