faubackup2/src main.cpp,1.8,1.9
Martin Waitz <[email protected]> Wed, 08 Jun 2005 21:34:42 +0000
| Newsgroups | gmane.comp.sysutils.backup.faubackup.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/faubackup/faubackup2/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20229/src
Modified Files:
main.cpp
Log Message:
make help text translateable
Index: main.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/main.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** main.cpp 8 Jun 2005 19:29:03 -0000 1.8
--- main.cpp 8 Jun 2005 21:34:40 -0000 1.9
***************
*** 42,53 ****
char *client_sourcedir = NULL;
struct poptOption options[] = {
{ "verbose", 'v', POPT_ARG_NONE, 0, 'v'},
{ "rsync", 'r', POPT_ARG_NONE, &rsync, 0,
! "Use Rsync to transfer changed files"},
{ "one-file-system", 'x', POPT_ARG_NONE, &boundaries, 0,
! "don't cross filesystem boundaries"},
{ "dry-run", 'n', POPT_ARG_NONE, &do_nothing, 0,
! "don't create a new backup, test only"},
{ "server", '\0', POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN,
&server_destdir},
--- 42,57 ----
char *client_sourcedir = NULL;
+ /* initialize gettext */
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
struct poptOption options[] = {
{ "verbose", 'v', POPT_ARG_NONE, 0, 'v'},
{ "rsync", 'r', POPT_ARG_NONE, &rsync, 0,
! _("Use Rsync to transfer changed files")},
{ "one-file-system", 'x', POPT_ARG_NONE, &boundaries, 0,
! _("don't cross filesystem boundaries")},
{ "dry-run", 'n', POPT_ARG_NONE, &do_nothing, 0,
! _("don't create a new backup, test only")},
{ "server", '\0', POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN,
&server_destdir},
***************
*** 61,65 ****
/* argument parsing */
popt = poptGetContext("faubackup", argc, argv, options, 0);
! poptSetOtherOptionHelp(popt, "[OPTION...] [host:]source [host:]destination");
while ((rc = poptGetNextOpt(popt)) != -1) {
switch (rc) {
--- 65,70 ----
/* argument parsing */
popt = poptGetContext("faubackup", argc, argv, options, 0);
! poptSetOtherOptionHelp(popt,
! _("[OPTION...] [host:]source [host:]destination"));
while ((rc = poptGetNextOpt(popt)) != -1) {
switch (rc) {
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20