Made several messages translatable

pull/2/head
Tatsuhiro Tsujikawa 2011-10-02 16:14:03 +09:00
parent 6c49dfc379
commit 8938cef9b3
1 changed files with 13 additions and 14 deletions

View File

@ -58,27 +58,26 @@ void showVersion() {
<< "Copyright (C) 2006, 2011 Tatsuhiro Tsujikawa" << "\n" << "Copyright (C) 2006, 2011 Tatsuhiro Tsujikawa" << "\n"
<< "\n" << "\n"
<< <<
"This program is free software; you can redistribute it and/or modify\n" _("This program is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n" "it under the terms of the GNU General Public License as published by\n"
"the Free Software Foundation; either version 2 of the License, or\n" "the Free Software Foundation; either version 2 of the License, or\n"
"(at your option) any later version.\n" "(at your option) any later version.\n"
"\n"
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
"GNU General Public License for more details.\n")
<< "\n" << "\n"
<< << _("** Configuration **") << "\n"
"This program is distributed in the hope that it will be useful,\n" << _("Enabled Features") << ": "
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
"GNU General Public License for more details.\n"
<< "\n"
<< "** Configuration **" << "\n"
<< "Enabled Features: "
<< FeatureConfig::getInstance()->featureSummary() << "\n" << FeatureConfig::getInstance()->featureSummary() << "\n"
#ifdef ENABLE_MESSAGE_DIGEST #ifdef ENABLE_MESSAGE_DIGEST
<< "Hash Algorithms: " << _("Hash Algorithms") << ": "
<< MessageDigest::getSupportedHashTypeString() << "\n" << MessageDigest::getSupportedHashTypeString() << "\n"
#endif // ENABLE_MESSAGE_DIGEST #endif // ENABLE_MESSAGE_DIGEST
<< "\n" << "\n"
<< fmt(_("Report bugs to %s"), PACKAGE_BUGREPORT) << "\n" << fmt(_("Report bugs to %s"), PACKAGE_BUGREPORT) << "\n"
<< "Visit " << PACKAGE_URL << std::endl; << _("Visit") << " " << PACKAGE_URL << std::endl;
} }
void showUsage(const std::string& keyword, const OptionParser& oparser) { void showUsage(const std::string& keyword, const OptionParser& oparser) {