Просмотр исходного кода

2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Made messages in showFiles() translatable.
	* po/aria2.pot
	* src/main.cc
	* src/message.h
Tatsuhiro Tsujikawa 17 лет назад
Родитель
Сommit
a84cc7621d
4 измененных файлов с 155 добавлено и 138 удалено
  1. 7 0
      ChangeLog
  2. 143 136
      po/aria2.pot
  3. 2 2
      src/main.cc
  4. 3 0
      src/message.h

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2008-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Made messages in showFiles() translatable.
+	* po/aria2.pot
+	* src/main.cc
+	* src/message.h
+
 2008-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 2008-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 
 	Print the contents of Torrent/Metalink files are printed without
 	Print the contents of Torrent/Metalink files are printed without

+ 143 - 136
po/aria2.pot

@@ -6,9 +6,9 @@
 #, fuzzy
 #, fuzzy
 msgid ""
 msgid ""
 msgstr ""
 msgstr ""
-"Project-Id-Version: aria2 1.0.1\n"
+"Project-Id-Version: aria2 1.1.0\n"
 "Report-Msgid-Bugs-To: http://aria2.sourceforge.net/\n"
 "Report-Msgid-Bugs-To: http://aria2.sourceforge.net/\n"
-"POT-Creation-Date: 2008-12-16 00:59+0900\n"
+"POT-Creation-Date: 2008-12-20 20:08+0900\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -349,12 +349,10 @@ msgid ""
 " --realtime-chunk-checksum=true|false  Validate chunk of data by "
 " --realtime-chunk-checksum=true|false  Validate chunk of data by "
 "calculating\n"
 "calculating\n"
 "                              checksum while downloading a file if chunk\n"
 "                              checksum while downloading a file if chunk\n"
-"                              checksums are provided. Currently Metalink is "
-"the\n"
-"                              only way to provide chunk checksums."
+"                              checksums are provided."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:170
+#: src/usage_text.h:169
 msgid ""
 msgid ""
 " -c, --continue               Continue downloading a partially downloaded\n"
 " -c, --continue               Continue downloading a partially downloaded\n"
 "                              file. Use this option to resume a download\n"
 "                              file. Use this option to resume a download\n"
@@ -364,15 +362,15 @@ msgid ""
 "                              applicable to http(s)/ftp downloads."
 "                              applicable to http(s)/ftp downloads."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:177
+#: src/usage_text.h:176
 msgid " -U, --user-agent=USER_AGENT  Set user agent for http(s) downloads."
 msgid " -U, --user-agent=USER_AGENT  Set user agent for http(s) downloads."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:179
+#: src/usage_text.h:178
 msgid " -n, --no-netrc               Disables netrc support."
 msgid " -n, --no-netrc               Disables netrc support."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:181
+#: src/usage_text.h:180
 msgid ""
 msgid ""
 " -i, --input-file=FILE        Downloads URIs found in FILE. You can specify\n"
 " -i, --input-file=FILE        Downloads URIs found in FILE. You can specify\n"
 "                              multiple URIs for a single entity: separate\n"
 "                              multiple URIs for a single entity: separate\n"
@@ -387,7 +385,7 @@ msgid ""
 "                              FILE section of man page for details."
 "                              FILE section of man page for details."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:190
+#: src/usage_text.h:189
 msgid ""
 msgid ""
 " -j, --max-concurrent-downloads=N Set maximum number of parallel downloads "
 " -j, --max-concurrent-downloads=N Set maximum number of parallel downloads "
 "for\n"
 "for\n"
@@ -396,14 +394,14 @@ msgid ""
 "                              See also -s and -C options."
 "                              See also -s and -C options."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:194
+#: src/usage_text.h:193
 msgid ""
 msgid ""
 " --load-cookies=FILE          Load Cookies from FILE using the Firefox3 "
 " --load-cookies=FILE          Load Cookies from FILE using the Firefox3 "
 "format\n"
 "format\n"
 "                              and Mozilla/Firefox(1.x/2.x)/Netscape format."
 "                              and Mozilla/Firefox(1.x/2.x)/Netscape format."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:197
+#: src/usage_text.h:196
 msgid ""
 msgid ""
 " -S, --show-files             Print file listing of .torrent or .metalink "
 " -S, --show-files             Print file listing of .torrent or .metalink "
 "file\n"
 "file\n"
@@ -412,7 +410,7 @@ msgid ""
 "                              in case of torrent file."
 "                              in case of torrent file."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:201
+#: src/usage_text.h:200
 msgid ""
 msgid ""
 " --select-file=INDEX...       Set file to download by specifying its index.\n"
 " --select-file=INDEX...       Set file to download by specifying its index.\n"
 "                              You can find the file index using the\n"
 "                              You can find the file index using the\n"
@@ -426,11 +424,11 @@ msgid ""
 "options)."
 "options)."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:210
+#: src/usage_text.h:209
 msgid " -T, --torrent-file=TORRENT_FILE  The path to the .torrent file."
 msgid " -T, --torrent-file=TORRENT_FILE  The path to the .torrent file."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:212
+#: src/usage_text.h:211
 msgid ""
 msgid ""
 " --follow-torrent=true|false|mem If true or mem is specified, when a file\n"
 " --follow-torrent=true|false|mem If true or mem is specified, when a file\n"
 "                              whose suffix is .torrent or content type is\n"
 "                              whose suffix is .torrent or content type is\n"
@@ -446,13 +444,13 @@ msgid ""
 "                              is not taken."
 "                              is not taken."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:222
+#: src/usage_text.h:221
 msgid ""
 msgid ""
 " --direct-file-mapping=true|false Directly read from and write to each file\n"
 " --direct-file-mapping=true|false Directly read from and write to each file\n"
 "                              mentioned in .torrent file."
 "                              mentioned in .torrent file."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:225
+#: src/usage_text.h:224
 msgid ""
 msgid ""
 " --listen-port=PORT...        Set TCP port number for BitTorrent downloads.\n"
 " --listen-port=PORT...        Set TCP port number for BitTorrent downloads.\n"
 "                              Multiple ports can be specified by using ',',\n"
 "                              Multiple ports can be specified by using ',',\n"
@@ -463,7 +461,7 @@ msgid ""
 "                              be used together."
 "                              be used together."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:231
+#: src/usage_text.h:230
 msgid ""
 msgid ""
 " --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/"
 " --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/"
 "sec.\n"
 "sec.\n"
@@ -476,7 +474,7 @@ msgid ""
 "ignored."
 "ignored."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:238
+#: src/usage_text.h:237
 msgid ""
 msgid ""
 " -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n"
 " -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n"
 "                              bytes/sec. 0 means unrestricted.\n"
 "                              bytes/sec. 0 means unrestricted.\n"
@@ -485,13 +483,13 @@ msgid ""
 "                              --max-overall-upload-limit option."
 "                              --max-overall-upload-limit option."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:244
+#: src/usage_text.h:243
 msgid ""
 msgid ""
 " --seed-time=MINUTES          Specify seeding time in minutes. Also see the\n"
 " --seed-time=MINUTES          Specify seeding time in minutes. Also see the\n"
 "                              --seed-ratio option."
 "                              --seed-ratio option."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:247
+#: src/usage_text.h:246
 msgid ""
 msgid ""
 " --seed-ratio=RATIO           Specify share ratio. Seed completed torrents\n"
 " --seed-ratio=RATIO           Specify share ratio. Seed completed torrents\n"
 "                              until share ratio reaches RATIO.\n"
 "                              until share ratio reaches RATIO.\n"
@@ -506,7 +504,7 @@ msgid ""
 "                              the conditions is satisfied."
 "                              the conditions is satisfied."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:256
+#: src/usage_text.h:255
 msgid ""
 msgid ""
 " --peer-id-prefix=PEERI_ID_PREFIX Specify the prefix of peer ID. The peer ID "
 " --peer-id-prefix=PEERI_ID_PREFIX Specify the prefix of peer ID. The peer ID "
 "in\n"
 "in\n"
@@ -517,15 +515,15 @@ msgid ""
 "                              added to make it's length 20 bytes."
 "                              added to make it's length 20 bytes."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:263
+#: src/usage_text.h:262
 msgid " --enable-peer-exchange[=true|false] Enable Peer Exchange extension."
 msgid " --enable-peer-exchange[=true|false] Enable Peer Exchange extension."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:265
+#: src/usage_text.h:264
 msgid " --enable-dht[=true|false]    Enable DHT functionality."
 msgid " --enable-dht[=true|false]    Enable DHT functionality."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:267
+#: src/usage_text.h:266
 msgid ""
 msgid ""
 " --dht-listen-port=PORT...    Set UDP listening port for DHT.\n"
 " --dht-listen-port=PORT...    Set UDP listening port for DHT.\n"
 "                              Multiple ports can be specified by using ',',\n"
 "                              Multiple ports can be specified by using ',',\n"
@@ -536,18 +534,18 @@ msgid ""
 "                              be used together."
 "                              be used together."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:273
+#: src/usage_text.h:272
 msgid ""
 msgid ""
 " --dht-entry-point=HOST:PORT  Set host and port as an entry point to DHT\n"
 " --dht-entry-point=HOST:PORT  Set host and port as an entry point to DHT\n"
 "                              network."
 "                              network."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:276
+#: src/usage_text.h:275
 msgid ""
 msgid ""
 " --dht-file-path=PATH         Change the DHT routing table file to PATH."
 " --dht-file-path=PATH         Change the DHT routing table file to PATH."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:278
+#: src/usage_text.h:277
 msgid ""
 msgid ""
 " --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"
 " --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"
 "                              If several encryption methods are provided by "
 "                              If several encryption methods are provided by "
@@ -557,7 +555,7 @@ msgid ""
 "                              the given level."
 "                              the given level."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:283
+#: src/usage_text.h:282
 msgid ""
 msgid ""
 " --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"
 " --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"
 "                              establish connection with legacy BitTorrent\n"
 "                              establish connection with legacy BitTorrent\n"
@@ -565,7 +563,7 @@ msgid ""
 "                              handshake."
 "                              handshake."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:288
+#: src/usage_text.h:287
 msgid ""
 msgid ""
 " --bt-request-peer-speed-limit=SPEED In BitTorrent downloads, if the "
 " --bt-request-peer-speed-limit=SPEED In BitTorrent downloads, if the "
 "download\n"
 "download\n"
@@ -575,24 +573,24 @@ msgid ""
 "                              You can append K or M(1K = 1024, 1M = 1024K)."
 "                              You can append K or M(1K = 1024, 1M = 1024K)."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:293
+#: src/usage_text.h:292
 msgid ""
 msgid ""
 " --bt-max-open-files=NUM      Specify maximum number of files to open in "
 " --bt-max-open-files=NUM      Specify maximum number of files to open in "
 "each\n"
 "each\n"
 "                              BitTorrent download."
 "                              BitTorrent download."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:296
+#: src/usage_text.h:295
 msgid ""
 msgid ""
 " --bt-seed-unverified[=true|false] Seed previously downloaded files without\n"
 " --bt-seed-unverified[=true|false] Seed previously downloaded files without\n"
 "                              verifying piece hashes."
 "                              verifying piece hashes."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:299
+#: src/usage_text.h:298
 msgid " -M, --metalink-file=METALINK_FILE The file path to the .metalink file."
 msgid " -M, --metalink-file=METALINK_FILE The file path to the .metalink file."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:301
+#: src/usage_text.h:300
 msgid ""
 msgid ""
 " -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"
 " -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"
 "                              simultaneously. Some Metalinks regulate the\n"
 "                              simultaneously. Some Metalinks regulate the\n"
@@ -606,34 +604,34 @@ msgid ""
 "                              See also -s and -j options."
 "                              See also -s and -j options."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:310
+#: src/usage_text.h:309
 msgid " --metalink-version=VERSION   The version of the file to download."
 msgid " --metalink-version=VERSION   The version of the file to download."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:312
+#: src/usage_text.h:311
 msgid " --metalink-language=LANGUAGE The language of the file to download."
 msgid " --metalink-language=LANGUAGE The language of the file to download."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:314
+#: src/usage_text.h:313
 msgid ""
 msgid ""
 " --metalink-os=OS             The operating system of the file to download."
 " --metalink-os=OS             The operating system of the file to download."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:316
+#: src/usage_text.h:315
 msgid ""
 msgid ""
 " --metalink-location=LOCATION[,...] The location of the preferred server.\n"
 " --metalink-location=LOCATION[,...] The location of the preferred server.\n"
 "                              A comma-delimited list of locations is\n"
 "                              A comma-delimited list of locations is\n"
 "                              acceptable."
 "                              acceptable."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:320
+#: src/usage_text.h:319
 msgid ""
 msgid ""
 " --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify "
 " --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify "
 "'none'\n"
 "'none'\n"
 "                              if you don't have any preferred protocol."
 "                              if you don't have any preferred protocol."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:323
+#: src/usage_text.h:322
 msgid ""
 msgid ""
 " --follow-metalink=true|false|mem If true or mem is specified, when a file\n"
 " --follow-metalink=true|false|mem If true or mem is specified, when a file\n"
 "                              whose suffix is .metaink or content type of\n"
 "                              whose suffix is .metaink or content type of\n"
@@ -649,7 +647,7 @@ msgid ""
 "                              is not taken."
 "                              is not taken."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:333
+#: src/usage_text.h:332
 msgid ""
 msgid ""
 " --metalink-enable-unique-protocol=true|false If true is given and several\n"
 " --metalink-enable-unique-protocol=true|false If true is given and several\n"
 "                              protocols are available for a mirror in a "
 "                              protocols are available for a mirror in a "
@@ -659,11 +657,11 @@ msgid ""
 "                              specify the preference of protocol."
 "                              specify the preference of protocol."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:339
+#: src/usage_text.h:338
 msgid " -v, --version                Print the version number and exit."
 msgid " -v, --version                Print the version number and exit."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:341
+#: src/usage_text.h:340
 msgid ""
 msgid ""
 " -h, --help[=CATEGORY]        Print usage and exit.\n"
 " -h, --help[=CATEGORY]        Print usage and exit.\n"
 "                              The help messages are classified in several\n"
 "                              The help messages are classified in several\n"
@@ -678,23 +676,23 @@ msgid ""
 "                              and print the result."
 "                              and print the result."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:349
+#: src/usage_text.h:348
 msgid " --no-conf                    Disable loading aria2.conf file."
 msgid " --no-conf                    Disable loading aria2.conf file."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:351
+#: src/usage_text.h:350
 msgid ""
 msgid ""
 " --conf-path=PATH             Change the configuration file path to PATH."
 " --conf-path=PATH             Change the configuration file path to PATH."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:353
+#: src/usage_text.h:352
 msgid ""
 msgid ""
 " --stop=SEC                   Stop application after SEC seconds has "
 " --stop=SEC                   Stop application after SEC seconds has "
 "passed.\n"
 "passed.\n"
 "                              If 0 is given, this feature is disabled."
 "                              If 0 is given, this feature is disabled."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:356
+#: src/usage_text.h:355
 msgid ""
 msgid ""
 " --header=HEADER              Append HEADER to HTTP request header. You can "
 " --header=HEADER              Append HEADER to HTTP request header. You can "
 "use\n"
 "use\n"
@@ -706,30 +704,30 @@ msgid ""
 "                              http://host/file"
 "                              http://host/file"
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:362
+#: src/usage_text.h:361
 msgid " -q, --quiet[=true|false]     Make aria2 quiet(no console output)."
 msgid " -q, --quiet[=true|false]     Make aria2 quiet(no console output)."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:364
+#: src/usage_text.h:363
 msgid " --async-dns[=true|false]     Enable asynchronous DNS."
 msgid " --async-dns[=true|false]     Enable asynchronous DNS."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:366
+#: src/usage_text.h:365
 msgid " --ftp-reuse-connection[=true|false] Reuse connection in FTP."
 msgid " --ftp-reuse-connection[=true|false] Reuse connection in FTP."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:368
+#: src/usage_text.h:367
 msgid ""
 msgid ""
 " --summary-interval=SEC       Set interval to output download progress "
 " --summary-interval=SEC       Set interval to output download progress "
 "summary.\n"
 "summary.\n"
 "                              Setting 0 suppresses the output."
 "                              Setting 0 suppresses the output."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:371
+#: src/usage_text.h:370
 msgid " --log-level=LEVEL            Set log level to output."
 msgid " --log-level=LEVEL            Set log level to output."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:373
+#: src/usage_text.h:372
 msgid ""
 msgid ""
 " -R, --remote-time[=true|false] Retrieve timestamp of the remote file from "
 " -R, --remote-time[=true|false] Retrieve timestamp of the remote file from "
 "the\n"
 "the\n"
@@ -738,7 +736,7 @@ msgid ""
 "                              apply it to the local file."
 "                              apply it to the local file."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:377
+#: src/usage_text.h:376
 msgid ""
 msgid ""
 " --connect-timeout=SEC        Set the connect timeout in seconds to "
 " --connect-timeout=SEC        Set the connect timeout in seconds to "
 "establish\n"
 "establish\n"
@@ -749,7 +747,7 @@ msgid ""
 "                              effect and --timeout option is used instead."
 "                              effect and --timeout option is used instead."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:382
+#: src/usage_text.h:381
 msgid ""
 msgid ""
 " --max-file-not-found=NUM     If aria2 receives `file not found' status from "
 " --max-file-not-found=NUM     If aria2 receives `file not found' status from "
 "the\n"
 "the\n"
@@ -762,7 +760,7 @@ msgid ""
 "                              HTTP/FTP servers."
 "                              HTTP/FTP servers."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:389
+#: src/usage_text.h:388
 msgid ""
 msgid ""
 " --uri-selector=SELECTOR      Specify URI selection algorithm.\n"
 " --uri-selector=SELECTOR      Specify URI selection algorithm.\n"
 "                              If 'inorder' is given, URI is tried in the "
 "                              If 'inorder' is given, URI is tried in the "
@@ -779,7 +777,7 @@ msgid ""
 "                              --server-stat-if options."
 "                              --server-stat-if options."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:400
+#: src/usage_text.h:399
 msgid ""
 msgid ""
 " --server-stat-of=FILE        Specify the filename to which performance "
 " --server-stat-of=FILE        Specify the filename to which performance "
 "profile\n"
 "profile\n"
@@ -788,7 +786,7 @@ msgid ""
 "                              using --server-stat-if option."
 "                              using --server-stat-if option."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:404
+#: src/usage_text.h:403
 msgid ""
 msgid ""
 " --server-stat-if=FILE        Specify the filename to load performance "
 " --server-stat-if=FILE        Specify the filename to load performance "
 "profile\n"
 "profile\n"
@@ -798,7 +796,7 @@ msgid ""
 "                              See also --uri-selector option"
 "                              See also --uri-selector option"
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:409
+#: src/usage_text.h:408
 msgid ""
 msgid ""
 " --server-stat-timeout=SEC    Specifies timeout in seconds to invalidate\n"
 " --server-stat-timeout=SEC    Specifies timeout in seconds to invalidate\n"
 "                              performance profile of the servers since the "
 "                              performance profile of the servers since the "
@@ -806,7 +804,7 @@ msgid ""
 "                              contact to them."
 "                              contact to them."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:413
+#: src/usage_text.h:412
 msgid ""
 msgid ""
 " --auto-save-interval=SEC     Save a control file(*.aria2) every SEC "
 " --auto-save-interval=SEC     Save a control file(*.aria2) every SEC "
 "seconds.\n"
 "seconds.\n"
@@ -817,7 +815,7 @@ msgid ""
 "                              regardless of the value."
 "                              regardless of the value."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:418
+#: src/usage_text.h:417
 msgid ""
 msgid ""
 " --certificate=FILE           Use the client certificate in FILE.\n"
 " --certificate=FILE           Use the client certificate in FILE.\n"
 "                              The certificate must be in PEM format.\n"
 "                              The certificate must be in PEM format.\n"
@@ -826,14 +824,14 @@ msgid ""
 "                              private key."
 "                              private key."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:423
+#: src/usage_text.h:422
 msgid ""
 msgid ""
 " --private-key=FILE           Use the private key in FILE.\n"
 " --private-key=FILE           Use the private key in FILE.\n"
 "                              The private key must be decrypted and in PEM\n"
 "                              The private key must be decrypted and in PEM\n"
 "                              format. See also --certificate option."
 "                              format. See also --certificate option."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:427
+#: src/usage_text.h:426
 msgid ""
 msgid ""
 " --ca-certificate=FILE        Use the certificate authorities in FILE to "
 " --ca-certificate=FILE        Use the certificate authorities in FILE to "
 "verify\n"
 "verify\n"
@@ -845,14 +843,14 @@ msgid ""
 "                              verification."
 "                              verification."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:433
+#: src/usage_text.h:432
 msgid ""
 msgid ""
 " --check-certificate[=true|false] Verify the peer using certificates "
 " --check-certificate[=true|false] Verify the peer using certificates "
 "specified\n"
 "specified\n"
 "                              in --ca-certificate option."
 "                              in --ca-certificate option."
 msgstr ""
 msgstr ""
 
 
-#: src/usage_text.h:436
+#: src/usage_text.h:435
 msgid ""
 msgid ""
 " --no-proxy=DOMAINS           Specify comma separated hostnames or domains "
 " --no-proxy=DOMAINS           Specify comma separated hostnames or domains "
 "where\n"
 "where\n"
@@ -1504,346 +1502,355 @@ msgid ""
 "--ca-certificate and --check-certificate option."
 "--ca-certificate and --check-certificate option."
 msgstr ""
 msgstr ""
 
 
+#: src/message.h:170
+#, c-format
+msgid "Printing the contents of file '%s'..."
+msgstr ""
+
 #: src/message.h:171
 #: src/message.h:171
+msgid "This file is neither Torrent nor Metalink file. Skipping."
+msgstr ""
+
+#: src/message.h:174
 msgid "Timeout."
 msgid "Timeout."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:172
+#: src/message.h:175
 msgid "Invalid chunk size."
 msgid "Invalid chunk size."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:173
+#: src/message.h:176
 #, c-format
 #, c-format
 msgid "Too large chunk. size=%d"
 msgid "Too large chunk. size=%d"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:174
+#: src/message.h:177
 msgid "Invalid header."
 msgid "Invalid header."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:175
+#: src/message.h:178
 msgid "Invalid response."
 msgid "Invalid response."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:176
+#: src/message.h:179
 msgid "No header found."
 msgid "No header found."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:177
+#: src/message.h:180
 msgid "No status header."
 msgid "No status header."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:178
+#: src/message.h:181
 msgid "Proxy connection failed."
 msgid "Proxy connection failed."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:179
+#: src/message.h:182
 msgid "Connection failed."
 msgid "Connection failed."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:180
+#: src/message.h:183
 #, c-format
 #, c-format
 msgid ""
 msgid ""
 "The requested filename and the previously registered one are not same. "
 "The requested filename and the previously registered one are not same. "
 "Expected:%s Actual:%s"
 "Expected:%s Actual:%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:181
+#: src/message.h:184
 #, c-format
 #, c-format
 msgid "The response status is not successful. status=%d"
 msgid "The response status is not successful. status=%d"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:182
+#: src/message.h:185
 #, c-format
 #, c-format
 msgid "Too large file size. size=%s"
 msgid "Too large file size. size=%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:183
+#: src/message.h:186
 #, c-format
 #, c-format
 msgid "Transfer encoding %s is not supported."
 msgid "Transfer encoding %s is not supported."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:184
+#: src/message.h:187
 #, c-format
 #, c-format
 msgid "SSL initialization failed: %s"
 msgid "SSL initialization failed: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:185
+#: src/message.h:188
 msgid "SSL I/O error"
 msgid "SSL I/O error"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:186
+#: src/message.h:189
 msgid "SSL protocol error"
 msgid "SSL protocol error"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:187
+#: src/message.h:190
 #, c-format
 #, c-format
 msgid "SSL unknown error %d"
 msgid "SSL unknown error %d"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:188
+#: src/message.h:191
 #, c-format
 #, c-format
 msgid "SSL initialization failed: OpenSSL connect error %d"
 msgid "SSL initialization failed: OpenSSL connect error %d"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:189
+#: src/message.h:192
 #, c-format
 #, c-format
 msgid "Size mismatch Expected:%s Actual:%s"
 msgid "Size mismatch Expected:%s Actual:%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:190
+#: src/message.h:193
 msgid "Authorization failed."
 msgid "Authorization failed."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:191
+#: src/message.h:194
 msgid "Got EOF from the server."
 msgid "Got EOF from the server."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:192
+#: src/message.h:195
 msgid "Got EOF from peer."
 msgid "Got EOF from peer."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:193
+#: src/message.h:196
 msgid "Malformed meta info."
 msgid "Malformed meta info."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:195
+#: src/message.h:198
 #, c-format
 #, c-format
 msgid "Failed to open the file %s, cause: %s"
 msgid "Failed to open the file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:196
+#: src/message.h:199
 #, c-format
 #, c-format
 msgid "Failed to write into the file %s, cause: %s"
 msgid "Failed to write into the file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:197
+#: src/message.h:200
 #, c-format
 #, c-format
 msgid "Failed to read from the file %s, cause: %s"
 msgid "Failed to read from the file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:198
+#: src/message.h:201
 msgid "Failed to read data from disk."
 msgid "Failed to read data from disk."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:199
+#: src/message.h:202
 #, c-format
 #, c-format
 msgid "Failed to calculate SHA1 digest of or a part of the file %s, cause: %s"
 msgid "Failed to calculate SHA1 digest of or a part of the file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:200
+#: src/message.h:203
 #, c-format
 #, c-format
 msgid "Failed to seek the file %s, cause: %s"
 msgid "Failed to seek the file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:201
+#: src/message.h:204
 #, c-format
 #, c-format
 msgid "The offset is out of range, offset=%s"
 msgid "The offset is out of range, offset=%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:202
+#: src/message.h:205
 #, c-format
 #, c-format
 msgid "%s is not a directory."
 msgid "%s is not a directory."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:203
+#: src/message.h:206
 #, c-format
 #, c-format
 msgid "Failed to make the directory %s, cause: %s"
 msgid "Failed to make the directory %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:204
+#: src/message.h:207
 #, c-format
 #, c-format
 msgid "Failed to open the segment file %s, cause: %s"
 msgid "Failed to open the segment file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:205
+#: src/message.h:208
 #, c-format
 #, c-format
 msgid "Failed to write into the segment file %s, cause: %s"
 msgid "Failed to write into the segment file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:206
+#: src/message.h:209
 #, c-format
 #, c-format
 msgid "Failed to read from the segment file %s, cause: %s"
 msgid "Failed to read from the segment file %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:208
+#: src/message.h:211
 #, c-format
 #, c-format
 msgid "Failed to open a socket, cause: %s"
 msgid "Failed to open a socket, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:209
+#: src/message.h:212
 #, c-format
 #, c-format
 msgid "Failed to set a socket option, cause: %s"
 msgid "Failed to set a socket option, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:210
+#: src/message.h:213
 #, c-format
 #, c-format
 msgid "Failed to set a socket as blocking, cause: %s"
 msgid "Failed to set a socket as blocking, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:211
+#: src/message.h:214
 #, c-format
 #, c-format
 msgid "Failed to set a socket as non-blocking, cause: %s"
 msgid "Failed to set a socket as non-blocking, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:212
+#: src/message.h:215
 #, c-format
 #, c-format
 msgid "Failed to bind a socket, cause: %s"
 msgid "Failed to bind a socket, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:213
+#: src/message.h:216
 #, c-format
 #, c-format
 msgid "Failed to listen to a socket, cause: %s"
 msgid "Failed to listen to a socket, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:214
+#: src/message.h:217
 #, c-format
 #, c-format
 msgid "Failed to accept a peer connection, cause: %s"
 msgid "Failed to accept a peer connection, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:215
+#: src/message.h:218
 #, c-format
 #, c-format
 msgid "Failed to get the name of socket, cause: %s"
 msgid "Failed to get the name of socket, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:216
+#: src/message.h:219
 #, c-format
 #, c-format
 msgid "Failed to get the name of connected peer, cause: %s"
 msgid "Failed to get the name of connected peer, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:217
+#: src/message.h:220
 #, c-format
 #, c-format
 msgid "Failed to resolve the hostname %s, cause: %s"
 msgid "Failed to resolve the hostname %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:218
+#: src/message.h:221
 #, c-format
 #, c-format
 msgid "Failed to connect to the host %s, cause: %s"
 msgid "Failed to connect to the host %s, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:219
+#: src/message.h:222
 #, c-format
 #, c-format
 msgid "Failed to check whether the socket is writable, cause: %s"
 msgid "Failed to check whether the socket is writable, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:220
+#: src/message.h:223
 #, c-format
 #, c-format
 msgid "Failed to check whether the socket is readable, cause: %s"
 msgid "Failed to check whether the socket is readable, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:221
+#: src/message.h:224
 #, c-format
 #, c-format
 msgid "Failed to send data, cause: %s"
 msgid "Failed to send data, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:222
+#: src/message.h:225
 #, c-format
 #, c-format
 msgid "Failed to receive data, cause: %s"
 msgid "Failed to receive data, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:223
+#: src/message.h:226
 #, c-format
 #, c-format
 msgid "Failed to peek data, cause: %s"
 msgid "Failed to peek data, cause: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:224
+#: src/message.h:227
 #, c-format
 #, c-format
 msgid "Unknown socket error %d (0x%x)"
 msgid "Unknown socket error %d (0x%x)"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:225
+#: src/message.h:228
 #, c-format
 #, c-format
 msgid "File %s exists, but %s does not exist."
 msgid "File %s exists, but %s does not exist."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:226
+#: src/message.h:229
 #, c-format
 #, c-format
 msgid "Invalid payload size for %s, size=%d. It should be %d."
 msgid "Invalid payload size for %s, size=%d. It should be %d."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:227
+#: src/message.h:230
 #, c-format
 #, c-format
 msgid "Invalid ID=%d for %s. It should be %d."
 msgid "Invalid ID=%d for %s. It should be %d."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:228
+#: src/message.h:231
 #, c-format
 #, c-format
 msgid ""
 msgid ""
 "Chunk checksum validation failed. checksumIndex=%d, offset=%s, expectedHash=%"
 "Chunk checksum validation failed. checksumIndex=%d, offset=%s, expectedHash=%"
 "s, actualHash=%s"
 "s, actualHash=%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:229
+#: src/message.h:232
 msgid "Download aborted."
 msgid "Download aborted."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:230
+#: src/message.h:233
 #, c-format
 #, c-format
 msgid "File %s is being downloaded by other command."
 msgid "File %s is being downloaded by other command."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:231
+#: src/message.h:234
 msgid "Insufficient checksums."
 msgid "Insufficient checksums."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:232
+#: src/message.h:235
 #, c-format
 #, c-format
 msgid "Tracker returned failure reason: %s"
 msgid "Tracker returned failure reason: %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:233
+#: src/message.h:236
 msgid "Flooding detected."
 msgid "Flooding detected."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:234
+#: src/message.h:237
 #, c-format
 #, c-format
 msgid ""
 msgid ""
 "Drop connection because no request/piece messages were exchanged in a "
 "Drop connection because no request/piece messages were exchanged in a "
 "certain period(%d seconds)."
 "certain period(%d seconds)."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:235
+#: src/message.h:238
 msgid "The infoHash in torrent file doesn't match to one in .aria2 file."
 msgid "The infoHash in torrent file doesn't match to one in .aria2 file."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:236
+#: src/message.h:239
 #, c-format
 #, c-format
 msgid "No such file entry %s"
 msgid "No such file entry %s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:237
+#: src/message.h:240
 #, c-format
 #, c-format
 msgid "Too slow Downloading speed: %d <= %d(B/s), host:%s"
 msgid "Too slow Downloading speed: %d <= %d(B/s), host:%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:238
+#: src/message.h:241
 msgid "No HttpRequestEntry found."
 msgid "No HttpRequestEntry found."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:239
+#: src/message.h:242
 #, c-format
 #, c-format
 msgid "Got %d status, but no location header provided."
 msgid "Got %d status, but no location header provided."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:240
+#: src/message.h:243
 #, c-format
 #, c-format
 msgid "Invalid range header. Request: %s-%s/%s, Response: %s-%s/%s"
 msgid "Invalid range header. Request: %s-%s/%s, Response: %s-%s/%s"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:241
+#: src/message.h:244
 msgid "No file matched with your preference."
 msgid "No file matched with your preference."
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:242
+#: src/message.h:245
 msgid "Exception caught"
 msgid "Exception caught"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:243
+#: src/message.h:246
 #, c-format
 #, c-format
 msgid "Max payload length exceeded or invalid. length = %u"
 msgid "Max payload length exceeded or invalid. length = %u"
 msgstr ""
 msgstr ""
 
 
-#: src/message.h:244
+#: src/message.h:247
 #, c-format
 #, c-format
 msgid "Invalid file length. Cannot continue download %s: local %s, remote %s"
 msgid "Invalid file length. Cannot continue download %s: local %s, remote %s"
 msgstr ""
 msgstr ""

+ 2 - 2
src/main.cc

@@ -125,14 +125,14 @@ static void showFiles(const std::deque<std::string>& uris, const Option* op)
   ProtocolDetector dt;
   ProtocolDetector dt;
   for(std::deque<std::string>::const_iterator i = uris.begin();
   for(std::deque<std::string>::const_iterator i = uris.begin();
       i != uris.end(); ++i) {
       i != uris.end(); ++i) {
-    printf("Printing the contents of file '%s'...", (*i).c_str());
+    printf(MSG_SHOW_FILES, (*i).c_str());
     printf("\n");
     printf("\n");
     if(dt.guessTorrentFile(*i)) {
     if(dt.guessTorrentFile(*i)) {
       showTorrentFile(*i);
       showTorrentFile(*i);
     } else if(dt.guessMetalinkFile(*i)) {
     } else if(dt.guessMetalinkFile(*i)) {
       showMetalinkFile(*i, op);
       showMetalinkFile(*i, op);
     } else {
     } else {
-      printf("This file is not Torrent/Metalink file. Skipping.");
+      printf(MSG_NOT_TORRENT_METALINK);
       printf("\n\n");
       printf("\n\n");
     }
     }
   }
   }

+ 3 - 0
src/message.h

@@ -167,6 +167,9 @@
 #define MSG_WARN_NO_CA_CERT \
 #define MSG_WARN_NO_CA_CERT \
   _("You may encounter the certificate verification error with HTTPS server."\
   _("You may encounter the certificate verification error with HTTPS server."\
     " See --ca-certificate and --check-certificate option.")
     " See --ca-certificate and --check-certificate option.")
+#define MSG_SHOW_FILES _("Printing the contents of file '%s'...")
+#define MSG_NOT_TORRENT_METALINK _("This file is neither Torrent nor Metalink"\
+				   " file. Skipping.")
 
 
 #define EX_TIME_OUT _("Timeout.")
 #define EX_TIME_OUT _("Timeout.")
 #define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")
 #define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")