浏览代码

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 年之前
父节点
当前提交
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>
 
 	Print the contents of Torrent/Metalink files are printed without

+ 143 - 136
po/aria2.pot

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

+ 2 - 2
src/main.cc

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

+ 3 - 0
src/message.h

@@ -167,6 +167,9 @@
 #define MSG_WARN_NO_CA_CERT \
   _("You may encounter the certificate verification error with HTTPS server."\
     " 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_INVALID_CHUNK_SIZE _("Invalid chunk size.")