# -------------------------------------------------------------------
# cdata.ini
#
# Descriptions for columns and lines in reports
# Last Updated: 2000 August 25 By: JW
# For use with Report Magic for Analog 2.0
# Compatible with Analog 4.11
#
# -------------------------------------------------------------------
#
# HOW TO USE AND MODIFY
#
# In each section, you can change descriptive text for another 
# language. Below is a list of the parameters (keys) and what they mean.
#
# LongName
# This field specifies the descriptive name given to columns in all reports 
# and rows in the General Report and Quick Summary. 
#
# Type
# This field tells Report Magic a little about how to present the column's 
# contents. Valid types are as follows:
#     Data     Will be shown in a table (default)
#     Filter   This is some kind of filter or sort information (like 
#              FLOOR or SORT) and is written as plain text. Filter columns
#              are handled with a series of regular expression matches. This
#              is descibed below with the [f] column.
#     Index    This type of column will set the Index number for the row. e.g. [N_]
#     Level    This type of column gives a level in a hierarchical report. e.g. [l]
#
# Unit
# Units
# On General Summary columns (rows) this is the singular and plural for
# the units (if any) for the given line.
#
# Activity
# In Time Reports, there is a summary line that list the most active entry 
# and the average for the period. This is followed by activity data for each 
# column in the report. The 'Activity' parameter gives the text used to 
# describe the level of activity for that column.
#
# NumberFormat
# All columns can now be given a number format for formatting. Without a format
# the number is shown normally. For percentage values a format of '#.#%' will
# display the number with a localized percent sign after the value. See 
# docs/numfmt.html for details on the format spec.
#
# Width
# This tells the CRO parser how many columns wide the column specifier is. For 
# example, the [D_] column actually has 5 columns of data so its width is 5.
#
# TimeFormat
# This is used to format the date or time data in columns that have that 
# data (e.g. [D_] and [d]). See docs/datefmt.html for details on the format spec.
# -------------------------------------------------------------------

#
# General Summary Report Lines
#
[HN]
LongName = 主機名稱

[HU]
LongName = 網站網址

[PS]
LongName = 程式開始時間 
TimeFormat = mmm d, yyyy h:nn

[FR]
LongName = 第一個要求的時間 
TimeFormat = mmm d, yyyy h:nn

[LR]
LongName = 最後一個要求的時間 
TimeFormat = mmm d, yyyy h:nn

# - This has been deprecated but should remain for backwards compatibility
[L7]
LongName = 前七天起始時間 
TimeFormat = mmm d, yyyy h:nn

[E7]
LongName = 前七天終止時間
TimeFormat = mmm d, yyyy h:nn

[SR]
LongName = 成功的要求個數(requests) 
Units = Requests
Unit = Request

[S7]
LongName = 前七天成功的要求個數 
Units = Requests
Unit = Request

[PR]
LongName = 成功的網頁要求個數(pageviews) 
Units = Requests for pages
Unit = Request for a page

[P7]
LongName = 前七天成功的網頁要求個數 
Units = Requests for pages
Unit = Request for a page

[FL]
LongName = 失敗的要求個數 
Units = Requests
Unit = Request

[F7]
LongName = 前七天失敗的要求個數 
Units = Requests
Unit = Request

[RR]
LongName = 轉向(redirect)的要求個數 
Units = Requests
Unit = Request

[R7]
LongName = 前七天轉向(redirect)的要求個數 
Units = Requests
Unit = Request

[NC]
LongName = 紀錄列中沒有狀態碼(status code)個數
Units = Lines
Unit = Line

[C7]
LongName = 前七天紀錄列中沒有狀態碼(status code)個數
Units = Lines
Unit = Line

[NF]
LongName = 不同的檔案(Distinct files)的個數 
Units = Files
Unit = File

[N7]
LongName = 前七天不同的檔案(Distinct files)的個數
Units = Files
Unit = File

[NH]
LongName = 存取此網站不同的主機(Distinct hosts)個數
Units = Hosts
Unit = Host

[H7]
LongName = 前七天存取此網站不同的主機(Distinct hosts)個數 
Units = Hosts
Unit = Host

[CL]
LongName = 紀錄列中錯誤格式行個數 
Units = Lines
Unit = Line

[UL]
LongName = 紀錄列中不要的紀錄行個數 
Units = Lines
Unit = Line

[BT]
LongName = 總共傳輸的資料量(Bytes) 
Units = Bytes
Unit = Byte
Format = bytes

[B7]
LongName = 前七天總共傳輸的資料量(Bytes) 
Units = Bytes
Unit = Byte
Format = bytes

[VE]
LongName = Analog版本

#
# Standard Reports Column Letters
#
[R_]
LongName = 要求個數
Type = Data
Activity = %0 requests handled.
NumberFormat = #

[r]
LongName = 要求個數百分比
Type = Data
NumberFormat = #.#%

[S_]
LongName = 前七天要求個數
Type = Data
Activity = %0 requests handled in the last 7 days.
NumberFormat = #

[s]
LongName = 前七天要求個數百分比
Type = Data
NumberFormat = #.#%

[P_]
LongName = 網頁要求個數
Type = Data
Activity = %0 pages sent.
NumberFormat = #

[p]
LongName = 網頁要求個數百分比
Type = Data
NumberFormat = #.#%

[Q_]
LongName = 前七天網頁要求個數
Type = Data
Activity = %0 pages sent in the last 7 days.
NumberFormat = #

[q]
LongName = 前七天網頁要求個數百分比
Type = Data
NumberFormat = #.#%

[B_]
LongName = 傳輸資料量(bytes)
Type = Data
Activity = %0 served.
Format = bytes

[b]
LongName = 傳輸資料量百分比
Type = Data
NumberFormat = #.#%

[C_]
LongName = 前七天傳輸資料量(bytes)
Type = Data
Activity = %0 served in the last 7 days.

[c]
LongName = 前七天傳輸資料量百分比
Type = Data
NumberFormat = #.#%

[D_]
LongName = 最後一個要求的日期、時間
Type = Data
Width = 5
TimeFormat = mmm. d, yyyy h:nn

[d]
LongName = 最後一個要求的日期
Type = Data
Width = 3
TimeFormat = mmm. d, yyyy

[E_]
LongName = 第一個要求的日期、時間
Type = Data
Width = 5
TimeFormat = mmm. d, yyyy h:nn

[e]
LongName = 第一個要求的日期
Type = Data
Width = 3
TimeFormat = mmm. d, yyyy

[N_]
Type = Index

[l]
Type = Level


# ------------------------------------------------------------
# These filters use a slightly different set of options than other columns.
# Filters will parse their data value and output a text description. For 
# each filter you can have any number of Columns specified by Width.
# Each Column can have any number of Matches, LongNames and Result sets:
#
# 	ColX_MatchX	The Regular Expressions (without //) to match the contents 
# 	      	     of the filter data.
# 	ColX_LongNameX The basic text of the output string for the corresponding 
# 	        	     filter match. Replacements from the matches are %1-%9
# 	ColX_ResultX_n	The replacement text (if any) for the matched variables. The 
# 	        	     format for this matchset[tab]output text. If no result set is 
#	       	     given, then the match variable is outputted as listed. If a 
# 	        	     result line starts with the [tab] then that will be used when 
# 	       	     no match is made in the set.
# ------------------------------------------------------------
# 
# FLOOR and SORTBY (cols 1 and 2)
#
[f]
Type = Filter
# Need this to keep the CRO splitter happy
Width = 2

#
# FLOOR
#
Col1_Match1 = ^\-(\d+)([RBPrbp])
Col1_LongName1 = 這個報告顯示%1個由%2產生的報表.
Col1_Result1_2 = <<END
rR	要求個數
bB	傳輸資料量(bytes)
pP	網頁要求個數
END

Col1_Match2 = ^0([\%\:]?)([kMGT]?)([RBPrbp])
Col1_LongName2 = 這個報告顯示所有的結果.

Col1_Match3 = ^1([\%\:]?)([RPrp])
Col1_LongName3 = 這個報告顯示所有的結果.

Col1_Match4 = ^1([kMGT]?)[Bb]
Col1_LongName4 = 這個報告顯示的結果至少要有一個 %1byte.
Col1_Result4_1 = <<END
k	kilo
M	mega
G	giga
T	tera
END

Col1_Match5 = ^(\d+\.?\d*)([\%\:]?)([kMGT]?)([RBPrbp])
Col1_LongName5 = 這個報告顯示的結果至少要達 %1 %2 %3%4.
Col1_Result5_4 = <<END
rR	要求個數
bB	傳輸資料量(bytes)
pP	網頁要求個數
END

Col1_Result5_3 = <<END
k	kilo
M	mega
G	giga
T	tera
END

Col1_Result5_2 = <<END
%	總共百分比
:	最大量的百分比
END

Col1_Match6 = ^(\d\d)(\d\d)(\d\d)[Dd]
Col1_LongName6 = 這個報告顯示自從 %2 %3, %1 來的要求.
Col1_Result6_2 =<<END
01	一月
02	二月
03	三月
04	四月
05	五月
06	六月
07	七月
08	八月
09	九月
10	十月
11	十一月
12	十二月
END

Col1_Match7 = ^(-|\+)(\d\d)(-|\+)(\d\d)(-|\+)(\d\d)[Dd]
Col1_LongName7 = 這個報告顯示自從 %2 %1, %4 %3 和 %6 %5 來的要求.
Col1_Result7_1 =<<END
-	年前
+	年後
END
Col1_Result7_3 =<<END
-	月前
+	月後
END
Col1_Result7_5 =<<END
-	天前
+	天後
END

#
# SORTBY
#
Col2_Match1 = ^([rspqbcdax])
Col2_LongName1 = 這個報告是%1.
Col2_Result1_1 =<<END
rs	用要求個數排序
pq	用網頁要求個數排序
bc	用傳輸資料量排序
d	用最後一個要求的日期排序
a	用字母順序排序
x	沒有排序
END

# 
# REPORTSPAN adds these columns to each report
#
[*FR]
Type = Filter
Width = 5
Saved = 0
TimeFormat = mmmm d, yyyy h:nn

[*LR]
Type = Filter
Width = 5
Saved = 0
TimeFormat = mmmm d, yyyy h:nn

#
# Time reports in Analog 5 have a largest time value (up to 5 fields)
#
[*BT]
Type = Filter
Width = 5
Saved = 2
TimeFormat = report

#
# Quick Summary Column Letters
#
[T_]
LongName = 統計值最高的物件

[H_]
LongName = 值

[h]
LongName = 佔所有百分比
NumberFormat = #.#%

