]> cygwin.com Git - cygwin-apps/setup.git/commit
Add command-line option help-text localization
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 16 Jun 2022 12:57:38 +0000 (13:57 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 17 Jun 2022 11:50:04 +0000 (12:50 +0100)
commit20f237b4e884af7992c5b5e270301684f64d0395
tree9f3ae9e7305508a5b9e0c605e9e0c27705581b85
parentb0bd16950669290e488dc382051f7f28f2278eef
Add command-line option help-text localization

Change libgetopt++ Option class to store an unsigned int message catalog
identifer for the help-text, rather than a std::string of the help-text.

ParameterUsage (the function which produces the help output) now takes a
lookup function as a parameter, which translates that message identifer
to a localized std::string.

Move existing help-text to a stringtable resource, and then wire up
ParameterUsage to use LoadString.

Update libgetop++ tests appropriately.
39 files changed:
AntiVirus.cc
LogFile.cc
choose.cc
crypto.cc
desktop.cc
ini.cc
install.cc
io_stream_cygfile.cc
libgetopt++/include/getopt++/BoolOption.h
libgetopt++/include/getopt++/DefaultFormatter.h
libgetopt++/include/getopt++/Option.h
libgetopt++/include/getopt++/OptionSet.h
libgetopt++/include/getopt++/StringArrayOption.h
libgetopt++/include/getopt++/StringChoiceOption.h
libgetopt++/include/getopt++/StringOption.h
libgetopt++/src/BoolOption.cc
libgetopt++/src/OptionSet.cc
libgetopt++/src/StringArrayOption.cc
libgetopt++/src/StringChoiceOption.cc
libgetopt++/src/StringOption.cc
libgetopt++/tests/BoolOptionTest.cc
libgetopt++/tests/OptionSet.cc
libgetopt++/tests/optioniterator.cc
libgetopt++/tests/testoption.cc
localdir.cc
main.cc
net.cc
nio-ie5.cc
package_db.cc
package_meta.cc
prereq.cc
res.pot
res/en/res.rc
resource.h
root.cc
site.cc
source.cc
win32.cc
win32.h
This page took 0.040902 seconds and 5 git commands to generate.