source: trunk/gsdl/etc/main.cfg@ 7707

Last change on this file since 7707 was 7707, checked in by jrm21, 20 years ago

start to put languages in their own language (not everyone speaks english...)
(requires updated lib/cfgread.cpp). Language names are in utf-8, so some of
them won't display very well if the current encoding isn't utf-8.

  • Property svn:keywords set to Author Date Id Revision
File size: 11.8 KB
Line 
1# This file must be utf-8 encoded
2#
3# This is the main configuration file for configuring
4# your Greenstone receptionist (i.e. the bit responsible
5# for the way things are displayed).
6
7# Email address of the webmaster of this Greenstone installation
8# If maintainer is set to "NULL" EmailEvents and EmailUserEvents
9# will be disabled.
10maintainer NULL
11
12# Outgoing (SMTP) mail server for this Greenstone installation.
13# This will default to mail.maintainer-domain if it's not set
14# (i.e. if maintainer is [email protected] then MailServer
15# will default to mail.cs.waikato.ac.nz). If MailServer doesn't
16# resolve to a valid SMTP server then the EmailEvents and
17# EmailUserEvents options (see below) won't be functional. Likewise,
18# turning off EmailEvents and EmailUserEvents will remove any
19# reliance on MailServer.
20MailServer NULL
21
22# Set status to "disabled" if you don't want the Maintenance and
23# Administration facility to be available.
24status enabled
25
26# Set collector to "disabled" if you don't want the "collector"
27# end-user collection building facility to be available.
28collector enabled
29
30# Set translator to "enabled" if you want the translation
31# service for keeping language fragments of macro text up to date
32translator disabled
33
34# Set logcgiargs to true to keep a log of usage information in
35# $GSDLHOME/etc/usage.txt.
36logcgiargs false
37
38# Set usecookies to true to use cookies to identify users (cookie
39# information will be written to the usage log if logcgiargs is
40# true).
41usecookies false
42
43# LogDateFormat sets the format that timestamps will be stored in the usage
44# log (i.e. if logcgiargs is enabled). It takes the following values:
45# LocalTime: (the default) The local time and date in the form
46# "Thu Dec 07 23:47:00 NZDT 2000".
47# UTCTime: Coordinated universal time (GMT) in the same format as LocalTime.
48# Absolute: Integer value representing the number of seconds since
49# 00:00:00 1/1/1970 GMT
50LogDateFormat LocalTime
51
52# Log any events that Greenstone deems important in
53# $GSDLHOME/etc/events.txt.
54# The only events that are currently implemented come from the
55# collector (e.g. someone just built/deleted the following collection)
56# LogEvents may take values of:
57# AllEvents: All important events
58# CollectorEvents: Just those events originating from the collector
59# (e.g. someone just built a collection)
60# disabled: Don't log events
61LogEvents disabled
62
63# Email the maintainer whenever any event occurs. EmailEvents
64# takes the same values as LogEvents.
65# Note that perl must be installed for EmailEvents or
66# EmailUserEvents to work.
67EmailEvents disabled
68
69# In some cases it may be appropriate to email the user about a
70# certain event (e.g. notification from the collector that a collection
71# was built successfully)
72EmailUserEvents false
73
74
75# The list of display macro files used by this receptionist
76macrofiles tip.dm style.dm base.dm query.dm help.dm pref.dm about.dm \
77 document.dm browse.dm status.dm authen.dm users.dm html.dm \
78 extlink.dm gsdl.dm extra.dm english.dm chinese.dm french.dm \
79 german.dm maori.dm english2.dm french2.dm arabic.dm \
80 spanish.dm spanish2.dm dutch.dm russian.dm russian2.dm \
81 italian.dm italian2.dm turkish.dm turkish2.dm \
82 home.dm collect.dm docs.dm hebrew.dm indo.dm bsummary.dm \
83 translang.dm czech.dm czech2.dm galician.dm galician2.dm \
84 japanese.dm japanese2.dm thai.dm thai2.dm \
85 kazakh.dm kazakh2.dm port-br.dm port-pt.dm garish.dm \
86 ukrainian.dm croatian.dm hindi.dm kannada.dm finnish.dm \
87 greek.dm armenian.dm gli.dm farsi.dm serbian.dm georgian.dm \
88 georgian2.dm
89
90# Define the interface languages and encodings supported by this receptionist
91
92# An "Encoding" line defines an encoding to be used by the receptionist.
93# Uncomment "Encoding" lines to include an encoding on your "preferences" page.
94# Encoding line options are:
95# shortname -- The standard charset label for the given encoding. The
96# shortname option is mandatory.
97# longname -- The display name of the given encoding. If longname isn't set
98# it will default to using shortname instead.
99# map -- The name of the map file (i.e. the .ump file) for use when
100# converting between unicode and the given encoding. The map
101# option is mandatory for all encoding lines except the
102# special case for utf8.
103# multibyte -- This optional argument should be set for all encodings that use
104# multibyte characters.
105
106# The utf8 encoding is handled internally and doesn't require a map file.
107# As a rule the utf8 encoding should always be enabled, especially if you
108# have collections of documents that may not all be in the same
109# language/encoding.
110Encoding shortname=utf-8 "longname=Unicode (UTF-8)"
111
112# This is very experimental, and you almost certainly don't need it
113#Encoding shortname=utf-16 "longname=Unicode (UTF-16BE)"
114
115# The ISO-8859 series
116Encoding shortname=iso-8859-1 "longname=Western (ISO-8859-1)" map=8859_1.ump
117#Encoding shortname=iso-8859-2 "longname=Central European (ISO-8859-2)" map=8859_2.ump
118#Encoding shortname=iso-8859-3 "longname=Latin 3 (ISO-8859-3)" map=8859_3.ump
119#Encoding shortname=iso-8859-4 "longname=Latin 4 (ISO-8859-4)" map=8859_4.ump
120#Encoding shortname=iso-8859-5 "longname=Cyrillic (ISO-8859-5)" map=8859_5.ump
121#Encoding shortname=iso-8859-6 "longname=Arabic (ISO-8859-6)" map=8859_6.ump
122#Encoding shortname=iso-8859-7 "longname=Greek (ISO-8859-7)" map=8859_7.ump
123#Encoding shortname=iso-8859-8 "longname=Hebrew (ISO-8859-8)" map=8859_8.ump
124#Encoding shortname=iso-8859-9 "longname=Turkish (ISO-8859-9)" map=8859_9.ump
125#Encoding shortname=iso-8859-15 "longname=Western (ISO-8859-15)" map=8859_15.ump
126
127# Windows codepages
128Encoding shortname=windows-1250 "longname=Central European (Windows-1250)" map=win1250.ump
129Encoding shortname=windows-1251 "longname=Cyrillic (Windows-1251)" map=win1251.ump
130#Encoding shortname=windows-1252 "longname=Western (Windows-1252)" map=win1252.ump
131Encoding shortname=windows-1253 "longname=Greek (Windows-1253)" map=win1253.ump
132Encoding shortname=windows-1254 "longname=Turkish (Windows-1254)" map=win1254.ump
133Encoding shortname=windows-1255 "longname=Hebrew (Windows-1255)" map=win1255.ump
134Encoding shortname=windows-1256 "longname=Arabic (Windows-1256)" map=win1256.ump
135#Encoding shortname=windows-1257 "longname=Baltic (Windows-1257)" map=win1257.ump
136#Encoding shortname=windows-1258 "longname=Vietnamese (Windows-1258)" map=win1258.ump
137#Encoding shortname=windows-874 "longname=Thai (Windows-874)" map=win874.ump
138#Encoding shortname=cp866 "longname=Cyrillic (DOS)" map=dos866.ump
139#Encoding shortname=cp850 "longname=Latin-1 (DOS)" map=dos850.ump
140
141# KOI8 Cyrillic encodings
142#Encoding shortname=koi8-r "longname=Cyrillic (KOI8-R)" map=koi8_r.ump
143#Encoding shortname=koi8-u "longname=Cyrillic (KOI8-U)" map=koi8_u.ump
144
145# CJK encodings (note that Shift-JIS Japanese isn't currently supported)
146Encoding shortname=gbk "longname=汉语 (Chinese Simplified GBK)" map=gbk.ump multibyte
147Encoding shortname=big5 "longname=挢語 (Chinese Traditional Big5)" map=big5.ump multibyte
148Encoding shortname=euc-jp "longname=Japanese (EUC)" map=euc_jp.ump multibyte
149Encoding shortname=euc-kr "longname=Korean (UHC)" map=uhc.ump multibyte
150
151
152# A "Language" line defines an interface language to be used by the
153# interface. Note that it is possible to display only a subset of the
154# specified languages on the preferences page for a given collection by
155# using the "PreferenceLanguages" format option in your collect.cfg
156# configuration file.
157# Arguments are:
158# shortname -- ISO 639 two letter language symbol. The shortname
159 argument is mandatory.
160# longname -- The display name for the given language. If longname
161 isn't set it will default to using shortname instead.
162# default_encoding -- The encoding to use by default when using the given
163# interface language. This should be set to the
164# "shortname" of a valid "Encoding" line
165Language shortname=ar longname=Arabic default_encoding=windows-1256
166Language shortname=bs longname=Bosnian default_encoding=utf-8
167Language shortname=cs "longname=Česky (Czech)" default_encoding=utf-8
168Language shortname=de "longname=Deutsch (German)" default_encoding=utf-8
169Language shortname=el "longname=ΕλληΜικά (Greek)" default_encoding=windows-1253
170Language shortname=en longname=English default_encoding=utf-8
171Language shortname=es "longname=Español (Spanish)" \
172 default_encoding=utf-8
173Language shortname=fa longname=Farsi default_encoding=utf-8
174Language shortname=fi longname=Finnish default_encoding=utf-8
175Language shortname=fr "longname=Français (French)" \
176 default_encoding=utf-8
177Language shortname=gl longname=Galician default_encoding=utf-8
178Language shortname=hi longname=Hindi default_encoding=utf-8
179Language shortname=hr longname=Croatian default_encoding=windows-1250
180Language shortname=hy longname=Armenian default_encoding=utf-8
181Language shortname=id longname=Indonesian default_encoding=utf-8
182Language shortname=it longname=Italiano default_encoding=utf-8
183Language shortname=iw longname=Hebrew default_encoding=windows-1255
184Language shortname=ja "longname=日本語 (Japanese)" default_encoding=utf-8
185Language shortname=ka longname=Georgian default_encoding=utf-8
186Language shortname=kn longname=Kannada default_encoding=utf-8
187Language shortname=kz "longname=Қазақ (Kazakh)" default_encoding=utf-8
188Language shortname=mi longname=Māori default_encoding=utf-8
189Language shortname=nl "longname=Nederlands (Dutch)" default_encoding=utf-8
190Language shortname=pt-br "longname=português-BR (Brasil)" \
191 default_encoding=utf-8
192Language shortname=pt-pt "longname=português-PT (Portugal)" \
193 default_encoding=utf-8
194Language shortname=ru "longname=РусскП (Russian)" default_encoding=windows-1251
195Language shortname=sr longname=Serbian default_encoding=utf-8
196Language shortname=th longname=Thai default_encoding=utf-8
197Language shortname=tr longname=Turkish default_encoding=windows-1254
198Language shortname=uk longname=Ukrainian default_encoding=utf-8
199Language shortname=zh "longname=汉语 (Chinese)" \
200 default_encoding=gbk
201
202# Define any additional page parameters to be used by the above macro files
203# (the current default page parameters are c (collection) and l (language)
204
205# Define v (version -- text or graphic) page parameter and give it a default
206# value of 0 (0 = text version off)
207pageparam v 0
208
209# Set the precedence given to the page parameters. This effects which macro
210# will be selected for display when there are multiple versions of the same
211# macro with different page parameters.
212# e.g. Given a macroprecedence of "c,v,l" and the following macro definitions:
213# _content_ []
214# _content_ [l=en]
215# _content_ [c=demo]
216# _content_ [v=1]
217# _content_ [l=fr,v=1,c=hdl]
218# If the corresponding cgi arguments were set to l=en&v=1&c=hdl then the
219# _content_[v=1] macro would be selected for display. It would be selected
220# ahead of the _content_[l=en] macro because "v" has a higher precedence
221# than "l". The _content_[l=fr,v=1,c=hdl] macro would not be selected
222# because one of the page parameters is completely wrong ("l").
223macroprecedence c,v,l
224
225
226# Define any additional cgi arguments. Most cgi arguments are built into
227# Greenstone but it's possible to define them here (or set defaults for
228# existing built-in cgi arguments).
229
230# define the "v" cgi argument (to correspond to the "v" page parameter defined
231# above).
232cgiarg shortname=v longname=version multiplechar=false argdefault=0 \
233 defaultstatus=weak savedarginfo=must
234
235# set a default value for the built-in "a" cgi argument
236cgiarg shortname=a argdefault=p
237
238# set a default value for the built-in "p" cgi argument
239cgiarg shortname=p argdefault=home
240
241# set the default encoding to utf-8
242cgiarg shortname=w argdefault=utf-8
Note: See TracBrowser for help on using the repository browser.