Skip to content

create htcommon/messages.cc for common messages #41

@andy5995

Description

@andy5995

If you run ack "Verbose mode. This increases the verbosity of the" you'll see a lot of the same messages in several files.

So for example, this code:

    cout << "\t-v\tVerbose mode.  This increases the verbosity of the\n";
    cout << "\t\tprogram.  Using more than 2 is probably only useful\n";
    cout << "\t\tfor debugging purposes.  The default verbose mode\n";

Could go into htcommon/messages.c and all the other programs that use it could call a variable containing the contents of the string in that file.

And actually, to help with preparing the source for translating, instead of using "cout" we'll do this:

  printf (_("\t-v\tVerbose mode.  This increases the verbosity of the\n\
\t\tprogram.  Using more than 2 is probably only useful\n\
\t\tfor debugging purposes.  The default verbose mode\n\
\t\tgives a nice progress report while digging.\n\n"));

@AlexChristoforides would you be interested in working on this?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions