diff -urN visitors_0.7-JP2.orig/visitors.c visitors_0.7-JP2.new/visitors.c
--- visitors_0.7-JP2.orig/visitors.c 2009-07-05 02:09:27.000000000 +0900
+++ visitors_0.7-JP2.new/visitors.c 2009-12-04 10:10:49.000000000 +0900
@@ -1621,14 +1621,11 @@
if (vi_is_numeric_address(hostname)) {
tld = "numeric IP";
} else {
- tld = strrchr(hostname, '.');
+ tld = strstr(hostname, ".");
if (!tld) return 0;
tld++;
}
- tld = hostname;
- if (!tld) return 0;
-
res = vi_counter_incr(&vih->tld, tld);
if (res == 0) return 1;
return 0;
@@ -2029,124 +2026,7 @@
"\n"
"
\n"
"\n"
-"\n"
+"\n"
"\n"
"\n"
);
@@ -2826,9 +2706,9 @@
{
vi_print_generic_keyvalbar_report(
fp,
- "アクセス元ホスト",
- "Remote host names sorted by visits",
- "アクセス元ホスト合計:",
+ "ドメイン",
+ "Sub Domains sorted by visits",
+ "ドメイン合計:",
Config_max_tld,
&vih->tld,
qsort_cmp_long_value);
@@ -2910,7 +2790,7 @@
{
vi_print_generic_keytime_report(
fp,
- "Referers by first time",
+ "最初のリファラ",
"Referers ordered by first time date, newer on top (referers from google excluded)",
"Different referers",
Config_max_referers_age,
@@ -2922,7 +2802,7 @@
{
vi_print_generic_keytime_report(
fp,
- "Google Keyphrases by first time",
+ "Google 最初の検索語句",
"Keyphrases ordered by first time date, newer on top",
"Different referers",
Config_max_google_keyphrases_age,
@@ -2934,7 +2814,7 @@
{
vi_print_generic_keyval_report(
fp,
- "Google Human Language",
+ "Google 検索言語",
"The 'hl' field in the query string of google searches",
"Different human languages",
1000,
@@ -2969,7 +2849,7 @@
char buf[VI_LINE_MAX];
time_t now = time(NULL);
snprintf(buf, VI_LINE_MAX, "Generated: %s", ctime(&now));
- Output->print_title(fp, "General information");
+ Output->print_title(fp, "概 要");
Output->print_subtitle(fp, "Information about analyzed log files");
Output->print_subtitle(fp, buf);
Output->print_numkey_info(fp, "処理されたエントリー数", vih->processed);
@@ -2985,23 +2865,23 @@
"Googleからの訪問者(1日)", NULL,
"Googleからの訪問者(月間)", &Config_process_monthly_visitors,
"1訪問あたりのページビュー", &Config_process_pageviews,
- "Weekday-Hour combined map", &Config_process_weekdayhour_map,
- "Month-Day combined map", &Config_process_monthday_map,
+ "何曜-何時 連結図", &Config_process_weekdayhour_map,
+ "何月-何日 連結図", &Config_process_monthday_map,
"リクエストページ", NULL,
"リクエスト 画像,CSS, etc...", NULL,
"リファラ", NULL,
- "Referers by first time", &Config_process_referers_age,
+ "最初のリファラ", &Config_process_referers_age,
"ロボット&スパイダー", &Config_process_robots,
"ユーザエージェント", &Config_process_agents,
"オペレーティングシステム", &Config_process_os,
"ブラウザ", &Config_process_browsers,
"404 エラー", &Config_process_error404,
- "アクセス元ホスト", &Config_process_tld,
+ "ドメイン", &Config_process_tld,
"Googled ページ", &Config_process_google,
"Adsensed ページ", &Config_process_google,
"Google 検索語句", &Config_process_google_keyphrases,
- "Google Keyphrases by first time", &Config_process_google_keyphrases_age,
- "Google Human Language", &Config_process_google_human_language,
+ "Google 最初の検索語句", &Config_process_google_keyphrases_age,
+ "Google 検索言語", &Config_process_google_human_language,
"画面解像度", &Config_process_screen_info,
"スクリーン色の濃さ", &Config_process_screen_info,
"Web trails", &Config_process_web_trails,
@@ -3010,7 +2890,7 @@
};
unsigned int i, num = 0;
- Output->print_title(fp, "Generated reports");
+ Output->print_title(fp, "作成内容");
Output->print_subtitle(fp, "Click on the report name you want to see");
for (i = 0; i < sizeof(l)/sizeof(void*); i += 2) {
int active = l[i+1] == NULL ? 1 : *((int*)l[i+1]);
@@ -3043,7 +2923,7 @@
minj = j;
}
- Output->print_title(fp, "Weekday-Hour combined map");
+ Output->print_title(fp, "何曜-何時 連結図");
Output->print_subtitle(fp, "Brighter means higher level of hits");
snprintf(buf, VI_LINE_MAX, "Hour with max traffic starting at %s %s:00 with hits",
ylabel[maxj/24], xlabel[maxj%24]);
@@ -3078,7 +2958,7 @@
minj = j;
}
- Output->print_title(fp, "Month-Day combined map");
+ Output->print_title(fp, "何月-何日 連結図");
Output->print_subtitle(fp, "Brighter means higher level of hits");
snprintf(buf, VI_LINE_MAX, "Day with max traffic is %s %s with hits",
ylabel[maxj/31], xlabel[maxj%31]);