Message: previous - next
Month: April 2012

Finding "KDE"

From: Darrell Anderson <humanreadable@...>
Date: Tue, 10 Apr 2012 18:06:52 -0700 (PDT)
When any TDE command is run in a terminal with the --help parameter, something like this appears:

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options


The first section is generic and common to all apps.

I want to update the "Show KDE specific options" string for branding to "Show TDE specific options."

My challenge: I can't figure out where "KDE" is assigned.

The common generic help strings are defined in tdelibs/tdecore/kcmdlineargs.cpp.

Line 828 shows this:

TQString desc = i18n("Show %1 specific options").arg(args->name);

Thus KDE is a string parameter. Where is "name" defined? In one of the included headers, but which one and what is an intelligent way to find that assignment?