Skip to content

Commit

Permalink
create initial pot file, init ne.po (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Nov 19, 2017
1 parent 87b699e commit 0705037
Show file tree
Hide file tree
Showing 4 changed files with 630 additions and 59 deletions.
118 changes: 59 additions & 59 deletions htdig/htdig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ main (int ac, char **av)

// Shows Start Time
if (debug > 0)
cout << "ht://dig Start Time: " << StartTime.GetAscTime () << endl;
cout << _("htdig Start Time: ") << StartTime.GetAscTime () << endl;

//
// First set all the defaults and then read the specified config
Expand All @@ -154,7 +154,7 @@ main (int ac, char **av)
config->Defaults (&defaults[0]);
if (access ((char *) configFile, R_OK) < 0)
{
reportError (form ("Unable to find configuration file '%s'",
reportError (form (_"Unable to find configuration file '%s'"),
configFile.get ()));
}
config->Read (configFile);
Expand All @@ -173,37 +173,37 @@ main (int ac, char **av)
for (option = deprecatedOptions; **option; option++)
{
if (!config->Find (*option).empty ())
cout << "Warning: Configuration option " << *option <<
" is no longer supported\n";
cout << _("Warning: Configuration option ") << *option <<
_(" is no longer supported\n");
}

if (config->Find ("locale").empty () && debug > 0)
cout << "Warning: unknown locale!\n";
if (config->Find ("_(locale")).empty () && debug > 0)
cout << _("Warning: unknown locale!\n");

if (max_hops)
{
config->Add ("max_hop_count", max_hops);
config->Add (_("max_hop_count"), max_hops);
}

// Set up credentials for this run
if (credentials.length ())
config->Add ("authorization", credentials);
config->Add (_("authorization"), credentials);

//
// Check url_part_aliases and common_url_parts for
// errors.
String url_part_errors = HtURLCodec::instance ()->ErrMsg ();

if (url_part_errors.length () != 0)
reportError (form ("Invalid url_part_aliases or common_url_parts: %s",
reportError (form (_("Invalid url_part_aliases or common_url_parts: %s"),
url_part_errors.get ()));

//
// Check url_rewrite_rules for errors.
String url_rewrite_rules = HtURLRewriter::instance ()->ErrMsg ();

if (url_rewrite_rules.length () != 0)
reportError (form ("Invalid url_rewrite_rules: %s",
reportError (form (_("Invalid url_rewrite_rules: %s"),
url_rewrite_rules.get ()));

//
Expand Down Expand Up @@ -254,7 +254,7 @@ main (int ac, char **av)
if (CookiesInputFile.length ())
{
if (debug > 0)
cout << "Importing Cookies input file " << CookiesInputFile << endl;
cout << _("Importing Cookies input file ") << CookiesInputFile << endl;
int result;
HtCookieJar::SetDebugLevel (debug); // Set the debug level
HtCookieInFileJar *cookie_file =
Expand All @@ -270,11 +270,11 @@ main (int ac, char **av)
HtHTTP::SetCookieJar (_cookie_jar); // and set the new HTTP jar
}
else if (debug > 0)
cout << "Warning: Import failed! (" << CookiesInputFile << ")" <<
cout << _("Warning: Import failed! (") << CookiesInputFile << ")" <<
endl;
}
else
reportError (form ("Unable to load cookies file '%s' in memory",
reportError (form (_("Unable to load cookies file '%s' in memory"),
CookiesInputFile.get ()));
}

Expand Down Expand Up @@ -466,7 +466,7 @@ main (int ac, char **av)
if (debug > 0)
{
EndTime.SettoNow ();
cout << "ht://dig End Time: " << EndTime.GetAscTime () << endl;
cout << _("htdig End Time: ") << EndTime.GetAscTime () << endl;
}

if (_cookie_jar)
Expand All @@ -480,51 +480,51 @@ main (int ac, char **av)
void
usage ()
{
cout << "usage: htdig [-v][-i][-c configfile][-t][-m minimalfile]\n";
cout << "This program is part of ht://Dig " << VERSION << "\n\n";
cout << "Options:\n";

cout << "\t-v\tVerbose mode. This increases the verbosity of the\n";
cout << "\t\tprogram. Using more than 2 is probably only useful\n";
cout << "\t\tfor debugging purposes. The default verbose mode\n";
cout << "\t\tgives a nice progress report while digging.\n\n";

cout << "\t-i\tInitial. Do not use any old databases. This is\n";
cout << "\t\taccomplished by first erasing the databases.\n\n";

cout << "\t-c configfile\n";
cout << "\t\tUse the specified configuration file instead of the\n";
cout << "\t\tdefault.\n\n";

cout << "\t-t\tCreate an ASCII version of the document database.\n";
cout << "\t\tThis database is easy to parse with other programs so\n";
cout << "\t\tthat information can be extracted from it.\n\n";

cout << "\t-h hopcount\n";
cout << "\t\tLimit the stored documents to those which are at\n";
cout << "\t\tmost hopcount links away from the start URL.\n\n";

cout << "\t-s\tReport statistics after completion.\n\n";

cout << "\t-u username:password\n";
cout << "\t\tTells htdig to send the supplied username and\n";
cout << "\t\tpassword with each HTTP request. The credentials\n";
cout << "\t\twill be encoded using the 'Basic' authentication scheme.\n";
cout << "\t\tThere *HAS* to be a colon (:) between the username\n";
cout << "\t\tand password.\n\n";

cout << "\t-a\tUse alternate work files.\n";
cout << "\t\tTells htdig to append .work to database files, causing\n";
cout << "\t\ta second copy of the database to be built. This allows\n";
cout << "\t\tthe original files to be used by htsearch during the\n";
cout << "\t\tindexing run.\n\n";

cout << "\t-m minimalfile (or just a file name at end of arguments)\n";
cout << "\t\tTells htdig to read URLs from the supplied file and index\n";
cout << "\t\tthem in place of (or in addition to) the existing URLs in\n";
cout << "\t\tthe database and the start_url. With the -m, only the\n";
cout << "\t\tURLs specified are added to the database. A file name of\n";
cout << "\t\t'-' indicates the standard input.\n\n";
printf (_("usage: htdig [-v][-i][-c configfile][-t][-m minimalfile]\n\
This program is part of htdig %s\n\n\
Options:\n"), VERSION);

printf (_("\t-v\tVerbose mode. This increases the verbosity of the\n\
\t\tprogram. Using more than 2 is probably only useful\n\
\t\tfor debugging purposes. The default verbose mode\n\
\t\tgives a nice progress report while digging.\n\n"));

printf (_("\t-i\tInitial. Do not use any old databases. This is\n\
\t\taccomplished by first erasing the databases.\n\n"));

printf (_("\t-c configfile\n\
\t\tUse the specified configuration file instead of the\n\
\t\tdefault.\n\n"));

printf (_("\t-t\tCreate an ASCII version of the document database.\n\
\t\tThis database is easy to parse with other programs so\n\
\t\tthat information can be extracted from it.\n\n"));

printf (_("\t-h hop count\n\
\t\tLimit the stored documents to those which are at\n\
\t\tmost hopcount links away from the start URL.\n\n"));

printf (_("\t-s\tReport statistics after completion.\n\n"));

printf (_("\t-u username:password\n\
\t\tTells htdig to send the supplied username and\n\
\t\tpassword with each HTTP request. The credentials\n\
\t\twill be encoded using the 'Basic' authentication scheme.\n\
\t\tThere *HAS* to be a colon (:) between the username\n\
\t\tand password.\n\n"));

printf (_("\t-a\tUse alternate work files.\n\
\t\tTells htdig to append .work to database files, causing\n\
\t\ta second copy of the database to be built. This allows\n\
\t\tthe original files to be used by htsearch during the\n\
\t\tindexing run.\n\n"));

printf (_("\t-m minimalfile (or just a file name at end of arguments)\n\
\t\tTells htdig to read URLs from the supplied file and index\n\
\t\tthem in place of (or in addition to) the existing URLs in\n\
\t\tthe database and the start_url. With the -m, only the\n\
\t\tURLs specified are added to the database. A file name of\n\
\t\t'-' indicates the standard input.\n\n"));



Expand Down
175 changes: 175 additions & 0 deletions htdig/messages.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#: htdig.cc:80 htdig.cc:170
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-19 15:52-0600\n"
"PO-Revision-Date: 2017-11-19 16:23-0600\n"
"Last-Translator: Andy <andy@oceanus>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: htdig.cc:147
msgid "htdig Start Time: "
msgstr ""

#: htdig.cc:157
#, c-format
msgid "Unable to find configuration file '%s'"
msgstr ""

#: htdig.cc:176
msgid "Warning: Configuration option "
msgstr ""

#: htdig.cc:177
msgid " is no longer supported\n"
msgstr ""

#: htdig.cc:180
msgid "locale"
msgstr ""

#: htdig.cc:181
msgid "Warning: unknown locale!\n"
msgstr ""

#: htdig.cc:185
msgid "max_hop_count"
msgstr ""

#: htdig.cc:190
msgid "authorization"
msgstr ""

#: htdig.cc:198
#, c-format
msgid "Invalid url_part_aliases or common_url_parts: %s"
msgstr ""

#: htdig.cc:206
#, c-format
msgid "Invalid url_rewrite_rules: %s"
msgstr ""

#: htdig.cc:257
msgid "Importing Cookies input file "
msgstr ""

#: htdig.cc:273
msgid "Warning: Import failed! ("
msgstr ""

#: htdig.cc:277
#, c-format
msgid "Unable to load cookies file '%s' in memory"
msgstr ""

#: htdig.cc:469
msgid "htdig End Time: "
msgstr ""

#: htdig.cc:483
#, c-format
msgid ""
"usage: htdig [-v][-i][-c configfile][-t][-m minimalfile]\n"
" This program is part of htdig %s\n"
"\n"
" Options:\n"
msgstr ""

#: htdig.cc:487
#, c-format
msgid ""
"\t-v\tVerbose mode. This increases the verbosity of the\n"
" \t\tprogram. Using more than 2 is probably only useful\n"
" \t\tfor debugging purposes. The default verbose mode\n"
" \t\tgives a nice progress report while digging.\n"
"\n"
msgstr ""

#: htdig.cc:492
#, c-format
msgid ""
"\t-i\tInitial. Do not use any old databases. This is\n"
" \t\taccomplished by first erasing the databases.\n"
"\n"
msgstr ""

#: htdig.cc:495
#, c-format
msgid ""
"\t-c configfile\n"
" \t\tUse the specified configuration file instead of the\n"
" \t\tdefault.\n"
"\n"
msgstr ""

#: htdig.cc:499
#, c-format
msgid ""
"\t-t\tCreate an ASCII version of the document database.\n"
" \t\tThis database is easy to parse with other programs so\n"
" \t\tthat information can be extracted from it.\n"
"\n"
msgstr ""

#: htdig.cc:503
#, c-format
msgid ""
"\t-h hop count\n"
" \t\tLimit the stored documents to those which are at\n"
" \t\tmost hopcount links away from the start URL.\n"
"\n"
msgstr ""

#: htdig.cc:507
#, c-format
msgid ""
"\t-s\tReport statistics after completion.\n"
"\n"
msgstr ""

#: htdig.cc:509
#, c-format
msgid ""
"\t-u username:password\n"
" \t\tTells htdig to send the supplied username and\n"
" \t\tpassword with each HTTP request. The credentials\n"
" \t\twill be encoded using the 'Basic' authentication scheme.\n"
" \t\tThere *HAS* to be a colon (:) between the username\n"
" \t\tand password.\n"
"\n"
msgstr ""

#: htdig.cc:516
#, c-format
msgid ""
"\t-a\tUse alternate work files.\n"
" \t\tTells htdig to append .work to database files, causing\n"
" \t\ta second copy of the database to be built. This allows\n"
" \t\tthe original files to be used by htsearch during the\n"
" \t\tindexing run.\n"
"\n"
msgstr ""

#: htdig.cc:522
#, c-format
msgid ""
"\t-m minimalfile (or just a file name at end of arguments)\n"
" \t\tTells htdig to read URLs from the supplied file and index\n"
" \t\tthem in place of (or in addition to) the existing URLs in\n"
" \t\tthe database and the start_url. With the -m, only the\n"
" \t\tURLs specified are added to the database. A file name of\n"
" \t\t'-' indicates the standard input.\n"
"\n"
msgstr ""
Loading

0 comments on commit 0705037

Please sign in to comment.