浏览代码

Made several messages translatable

Tatsuhiro Tsujikawa 14 年之前
父节点
当前提交
8938cef9b3
共有 1 个文件被更改,包括 13 次插入14 次删除
  1. 13 14
      src/version_usage.cc

+ 13 - 14
src/version_usage.cc

@@ -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"
-    "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"
-    "(at your option) any later version.\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"
+      "the Free Software Foundation; either version 2 of the License, or\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"
-            <<
-    "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"
-            << "** Configuration **" << "\n"
-            << "Enabled Features: "
+            << _("** 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) {