1<?php
2/********************************
3OSBib:
4A collection of PHP classes to create and manage bibliographic formatting for OS bibliography software
5using the OSBib standard.
6
7Released through http://bibliophile.sourceforge.net under the GPL licence.
8Do whatever you like with this -- some credit to the author(s) would be appreciated.
9
10If you make improvements, please consider contacting the administrators at bibliophile.sourceforge.net
11so that your improvements can be added to the release package.
12
13Adapted from WIKINDX: http://wikindx.sourceforge.net
14
15Mark Grimshaw 2005
16http://bibliophile.sourceforge.net
17********************************/
18/**
19*	Interface messages
20*
21*	@author Mark Grimshaw
22*
23*	$Header: /cvsroot/bibliophile/OSBib/create/MESSAGES.php,v 1.1 2005/06/20 22:26:51 sirfragalot Exp $
24*/
25class MESSAGES
26{
27// Constructor
28	function MESSAGES()
29	{
30	}
31/**
32* Print the message
33*/
34	function text($arrayName, $indexName, $extra = FALSE)
35	{
36		include_once("MISC.php");
37		include_once("../UTF8.php");
38		$utf8 = new UTF8();
39		$arrays = $this->loadArrays();
40		$string = $arrays[$arrayName][$indexName];
41		$string = $extra ?	preg_replace("/###/", $utf8->smartUtf8_decode($extra), $string) :
42			preg_replace("/###/", "", $string);
43// Display hints as per the CSS hint class.
44		if($arrayName == 'hint')
45			$string = MISC::span($string, "hint");
46		return $utf8->encodeUtf8($string);
47	}
48// English messages
49	function loadArrays()
50	{
51		return array(
52		"heading" => array(
53				"styles"		=>	"Styles###",
54				"helpStyles"	=>	"Bibliographic Style Creation and Editing",
55			),
56// Hint messages
57		"hint" => array(
58				"styleShortName"	=>	"(No spaces)",
59				"caseSensitive"	=>	"(Fields are case-sensitive)",
60				"integer"	=>	"Integer",
61			),
62// Miscellaneous items that don't fit anywhere else
63		"misc" => array(
64// In select boxes - when it is not necessary to choose an existing selection.  WIKINDX will skip over this one.
65// Could be '---'
66				'ignore'	=>	"IGNORE",
67// This next one is required in BIBTEXPARSE - whatever the language, NEITHER THE KEY NOR THE VALUE SHOULD BE CHANGED!
68// Leave as is!
69// Leave as is!
70// Leave as is!
71				'IGNORE'	=>	"ignore",
72// continue....
73				"edited"	=>	"edited",
74				"added"		=>	"added",
75				"deleted"	=>	"deleted",
76				"add"		=>	"add",
77// Used in SUCCESS.php when a user chooses a user bibliography to browse.  The message is "Successfully set Bibliography".
78				"set"		=>	"set",
79				"top"		=>	"Top",
80			),
81// Mapping WKX_resource.type to description.
82		"resourceType" => array(
83				'book'			=>	"Book",
84				'book_article'		=>	"Book Chapter",
85				'web_article'		=>	"Internet",
86				'journal_article'	=>	"Journal Article",
87				'newspaper_article'	=>	"Newspaper Article",
88				'thesis'		=>	"Thesis/Dissertation",
89				'proceedings_article'	=>	"Proceedings Article",
90// TV or Radio broadcast
91				'broadcast'		=>	'Broadcast',
92				'film'			=>	"Film",
93// Legal Ruling or Regulation
94				'legal_ruling'		=>	"Legal Rule/Regulation",
95// Computer software
96				"software"	=>	"Software",
97// Art etc.
98				"artwork"	=>	"Artwork",
99// Audiovisual material
100				"audiovisual"	=>	"Audiovisual",
101// Legal cases
102				"case"		=>	"Legal Case",
103// Parliamentary bill (law)
104				"bill"		=>	"Bill",
105// Classical (historical) work
106				"classical"	=>	"Classical Work",
107				"conference_paper"	=>	"Conference Paper",
108// Reports or documentation
109				"report"	=>	"Report/Documentation",
110// Government report or documentation
111				"government_report"	=>	"Government Report/Documentation",
112// Legal/Government Hearing
113				"hearing"	=>	"Hearing",
114// Online databases
115				"database"	=>	"Online Database",
116				"magazine_article"	=>	"Magazine Article",
117				"manuscript"	=>	"Manuscript",
118// Maps
119				"map"		=>	"Map",
120// Charts/images
121				"chart"		=>	"Chart/Image",
122// Statute
123				"statute"	=>	"Statute",
124// Patents
125				"patent"	=>	"Patent",
126// Personal Communication
127				"personal"	=>	"Personal Communication",
128// Unpublished work
129				"unpublished"	=>	"Unpublished Work",
130// Conference proceedings (complete set)
131				"proceedings"	=>	"Proceedings",
132// Music
133				"music_album"	=>	"Recorded Music Album",
134				"music_track"	=>	"Recorded Music Track",
135				"music_score"	=>	"Music Score",
136// For anything else that does not fit into the above categories.
137				'miscellaneous'		=>	"Miscellaneous",
138// Generic resource types used when creating bibliographic styles.
139				"genericBook"		=>	"Generic book-type",
140				"genericArticle"	=>	"Generic article-type",
141				"genericMisc"		=>	"Generic miscellaneous",
142			),
143// Form submit button text
144		"submit" => array(
145				"Submit"		=>	"Submit",
146				"Add"			=>	"Add",
147				"Delete"		=>	"Delete",
148				"Confirm"		=>	"Confirm",
149				"Edit"			=>	"Edit",
150				"Proceed to Confirm"	=>	"Proceed to Confirm",
151				"List"			=>	"List",
152				"Proceed"		=>	"Proceed",
153				"Search"		=>	"Search",
154				"Select"		=>	"Select",
155// Add citation
156				"Cite"			=>	"Cite",
157// Reset button for forms
158				"reset"			=>	"Reset",
159			),
160// Messages for adding citations to quotes, notes, musings , comments etc. and for administration of
161// citation templates within bibliographic style creation/editing
162		"cite" => array(
163// The displayed hyperlink next to the textarea form input
164				"cite"			=>	"Cite",
165				"citationFormat"	=>	"Citation Formatting",
166// In-text citation style as opposed to footnote style citations.
167				"citationFormatInText"	=>	"In-text style",
168				"citationFormatFootnote"	=>	"Footnote style",
169				"creatorList"		=>	"Creator list abbreviation",
170				"creatorListSubsequent"	=>	"Creator list abbreviation (subsequent appearances)",
171				"creatorSep"		=>	"Creator delimiters",
172				"creatorStyle" 		=>	"Creator style",
173				"lastName"		=>	"Last name only",
174// 'Last name only' is a choice in a select box and should not be translated
175				"useInitials"		=>	"If 'Last name only', use initials to differentiate between creators with the same surname",
176				"consecutiveCreator"	=>	"For consecutive citations by the same creator(s)",
177				"omitCreator"		=>	"Omit creator list",
178				"printCreator"		=>	"Print creator list",
179// 'Omit creator list' is a choice in a select box and should not be translated as above
180				"consecutiveCreatorSep"	=>	"If 'Omit creator list', separate citations with",
181// The template is something like '(author|, year)' that the user is asked to enter
182				"template"		=>	"Template",
183				"consecutiveCitationSep" =>	"Separate consecutive citations with",
184// Formatting of years
185				"yearFormat"		=>	"Year format",
186// Superscripting of citation
187				"superscript"		=>	"Superscript",
188// Ambiguous citations
189				"ambiguous"		=>	"Ambiguous citations",
190				"ambiguousFull"		=>	"Use the full name or initials",
191				"ambiguousMore"		=>	"Add more creator names",
192				"ambiguousTitle"	=>	"Add the title",
193				"ambiguousYear"		=>	"Add a letter after the year",
194				"ambiguousNameFormat"	=>	"Name format",
195				"ambiguousYearFormat"	=>	"Year format",
196// For footnote-style citations
197				"footnoteStyleBib"	=>	"Format like bibliography",
198				"footnoteStyleInText"	=>	"Format like in-text citations",
199				"ibid"		=>	"Replace consecutive citations for the same resource and the same page with",
200				"idem"		=>	"Replace consecutive citations for the same resource but a different page with",
201				"opCit"		=>	"Replace previously cited resources with",
202// Insert citation page number before or after footnote-style citation?
203				"footnotePagePosition"	=>	"Position of citation page number",
204				"footnotePageBefore"	=>	"Before citation",
205				"footnotePageAfter"		=>	"After citation",
206// For 'ibid' (by default does not display citation page numbers)
207				"ibidPage"	=>	"Always display citation page number(s)",
208// How to format the citation pages in footnote-style citations
209				"footnoteCitationPageFormat" => "Format the citation page(s)",
210				"footnoteCitationPageFormatNever" => "Never print citation page(s)",
211				"footnoteCitationPageFormatBib"	=>	"Same as the bibliographic templates",
212				"footnoteCitationPageFormatTemplate" => "Use the template below",
213			),
214// Administration of bibliographic styles
215		"style" => array(
216				"addLabel"		=>	"Add a Style",
217				"copyLabel"		=>	"Copy a Style",
218				"editLabel"		=>	"Edit Styles",
219				"shortName"		=>	"Short Name",
220				"longName"		=>	"Long Name",
221				"primaryCreatorSep"	=>	"Primary creator delimiters",
222				"otherCreatorSep"	=>	"Other creator delimiters",
223				"ifOnlyTwoCreators"	=>	"If only two creators",
224				"creatorSepBetween"	=>	"between",
225				"creatorSepLast"	=>	"before last",
226				"sepCreatorsFirst"	=>	"Between first two creators",
227				"sepCreatorsNext"	=>	"Between following creators",
228				"primaryCreatorStyle" 	=>	"Primary creator style",
229				"otherCreatorStyle"	=>	"Other creator styles",
230				"creatorFirstStyle" 	=>	"First",
231				"creatorOthers"		=>	"Others",
232				"creatorInitials"	=>	"Initials",
233				"creatorFirstName"	=>	"First name",
234				"creatorFirstNameFull"	=>	"Full",
235				"creatorFirstNameInitials"	=>	"Initial",
236				"primaryCreatorList"	=>	"Primary creator list abbreviation",
237				"otherCreatorList"	=>	"Other creator list abbreviation",
238				"creatorListFull"	=>	"Full list",
239				"creatorListLimit"	=>	"Limit list",
240// The next 3 surround form text boxes:
241// "If xx or more creators, list the first xx and abbreviate with xx".  For example:
242// "If 4 or more creators, list the first 1 and abbreviate with ,et. al"
243				"creatorListIf"		=>	"If",
244				"creatorListOrMore"		=>	"or more creators, list the first",
245				"creatorListAbbreviation"	=>	"and abbreviate with",
246				"titleCapitalization"	=>	"Title capitalization",
247// Title as entered with no changes to capitalization
248				"titleAsEntered"	=>	"As entered",
249				"availableFields"	=>	"Available fields:",
250				"editionFormat"		=>	"Edition format",
251				"monthFormat"		=>	"Month format",
252				"dateFormat"		=>	"Date format",
253				"dayFormat"		=>	"Day format",
254				"pageFormat"		=>	"Page format",
255// Length of film, broadcast etc.
256				"runningTimeFormat"	=>	"Running time format",
257// When displaying a book that has no author but has an editor, do we put the editor in the position occupied
258// by the author?
259				"editorSwitchHead"		=>	"Editor switch",
260				"editorSwitch"		=>	"For books with no author but an editor, put editor in author position",
261				"yes"			=>	"Yes",
262				"no"			=>	"No",
263				"editorSwitchIfYes"	=>	"If 'Yes', replace editor field in style definitions with",
264// Uppercase creator names?
265				"uppercaseCreator"	=>	"Uppercase all names",
266// For repeated creator names in next bibliographic item
267				"repeatCreators"	=>	"For works immediately following by the same creators",
268				"repeatCreators1"	=>	"Print the creator list",
269				"repeatCreators2"	=>	"Do not print the creator list",
270				"repeatCreators3"	=>	"Replace creator list with text below",
271// Fallback formatting style when a specific resource type has none defined
272				"fallback"		=>	"Fallback style",
273				"bibFormat"		=>	"Bibliography Formatting",
274// Italic font
275				"italics"		=>	"Italics",
276// For user specific month naming
277				"userMonthSelect"	=>	"Use month names defined below",
278				"userMonths"	=>	"User-defined month names (all fields must be completed if selected above)",
279// Date ranges for e.g. conferences
280				"dateRange"		=>	"Date range",
281				"dateRangeDelimit1"	=>	"Delimiter between start and end dates if day and month given",
282				"dateRangeDelimit2"	=>	"Delimiter between start and end dates if month only given",
283				"dateRangeSameMonth"	=>	"If start and end months are equal",
284				"dateRangeSameMonth1"	=>	"Print both months",
285				"dateRangeSameMonth2"	=>	"Print start month only",
286			),
287		"creators" => array(
288				"author"	=>	"Authors",
289				"editor"	=>	"Editors",
290				"translator"	=>	"Translators",
291				"reviser"	=>	"Revisers",
292				"seriesEditor"	=>	"Series Editors",
293// For films etc.
294				"director"	=>	"Director",
295				"producer"	=>	"Producer",
296// For artwork
297				"artist"	=>	"Artist",
298				"performer"	=>	"Performer",
299// For legal cases
300				"counsel"	=>	"Counsel",
301// For classical works of doubtful provenance
302				"attributedTo"	=>	"Attributed to",
303// Map makers
304				"cartographer"	=>	"Cartographer",
305// Charts/images
306				"creator"	=>	"Creator",
307// For patents
308				"inventor"	=>	"Inventor",
309				"issuingOrganisation"	=>	"Issuing Organisation",
310				"agent"		=>	"Agent/Attorney",
311// International patent author
312				"intAuthor"	=>	"International Author",
313// Personal Communication
314				"recipient"	=>	"Recipient",
315// For Musical works
316				"composer"	=>	"Composer",
317				"conductor"	=>	"Conductor",
318// Advice on what to do when editing a creator name and the new name already exists in the database.
319				"creatorExists"	=>	"If you proceed, this edited creator will be deleted and all references in the database to it will be replaced by references to the pre-existing creator.",
320			),
321		);
322	}
323}
324?>
325