root/trunk/calendar3/deployment/webadmin/webapp/resources/default/default/errors.xsl

Revision 504 (checked in by johnsa, 7 years ago)

admin client: update to error messages

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3   <xsl:template match="error">
4     <xsl:choose>
5       <xsl:when test="id='org.bedework.client.error.exc'">
6         <xsl:value-of select="param"/>
7       </xsl:when>
8       <xsl:when test="id='org.bedework.client.error.noaccess'">
9         Error: no access
10       </xsl:when>
11       <xsl:when test="id='org.bedework.client.error.missingsubscriptionid'">
12         You must supply a subscription <em>name</em>
13       </xsl:when>
14       <xsl:when test="id='org.bedework.client.error.nosuchsubscription'">
15         Not found: there is no user identified by the name <em><xsl:value-of select="param"/></em>
16       </xsl:when>
17       <xsl:when test="id='org.bedework.client.error.viewnotfound'">
18         Not found: there is no view identified by the name <em><xsl:value-of select="param"/></em>
19       </xsl:when>
20       <xsl:when test="id='org.bedework.client.error.viewnotadded'">
21         Error: the view was not added
22       </xsl:when>
23       <xsl:when test="id='org.bedework.client.error.nosuchevent'">
24         Not found: there is no event with guid <em><xsl:value-of select="param"/></em>
25       </xsl:when>
26       <xsl:when test="id='org.bedework.client.error.eventnotfound'">
27         Not found: the event was not found
28       </xsl:when>
29       <xsl:when test="id='org.bedework.client.error.badentityid'">
30         Error: bad entity id
31       </xsl:when>
32       <xsl:when test="id='org.bedework.client.error.noentityid'">
33         Error: no entity id
34       </xsl:when>
35       <xsl:when test="id='org.bedework.client.error.nosuchcalendar'">
36         Not found: there is no calendar identified by the id <em><xsl:value-of select="param"/></em>
37       </xsl:when>
38       <xsl:when test="id='org.bedework.client.error.calendar.referenced'">
39         Cannot delete: the calendar is not empty
40       </xsl:when>
41       <xsl:when test="id='org.bedework.client.message.folder.updated'">
42         Folder updated.
43       </xsl:when>
44       <xsl:when test="id='org.bedework.client.error.unimplemented'">
45         Unimplemented: the feature you are trying to use has not been implemented yet
46       </xsl:when>
47       <xsl:when test="id='org.bedework.client.error.badhow'">
48         Error: bad ACL request (bad how setting)
49       </xsl:when>
50       <xsl:when test="id='org.bedework.client.error.badwhotype'">
51         Error: bad who type (user or group)
52       </xsl:when>
53       <xsl:when test="id='org.bedework.client.error.badinterval'">
54         Error: bad interval
55       </xsl:when>
56       <xsl:when test="id='org.bedework.client.error.badintervalunit'">
57         Error: bad interval unit
58       </xsl:when>
59       <xsl:when test="id='org.bedework.client.error.mail.norecipient'">
60         Error: the email has no recipient
61       </xsl:when>
62       <xsl:when test="id='org.bedework.client.error.choosegroupsuppressed'">
63         Error: choose group is suppressed.  You cannot perform that action at this time.
64       </xsl:when>
65       <xsl:when test="id='org.bedework.validation.error.toolong.description'">
66         Your description is too long.  Please limit your entry to
67         <em><xsl:value-of select="param"/></em> characters.  You may also wish to
68         point the event entry at a supplimental web page by entering a <em>URL</em>.
69       </xsl:when>
70       <xsl:when test="id='org.bedework.validation.error.notitle'">
71         You must supply a <em>title</em><br/>
72       </xsl:when>
73       <xsl:when test="id='org.bedework.validation.error.nocalendar'">
74         You must supply the <em>calendar</em><br/>
75       </xsl:when>
76       <xsl:when test="id='org.bedework.validation.error.nodescription'">
77         You must supply a <em>description</em><br/>
78       </xsl:when>
79       <xsl:when test="id='org.bedework.validation.error.event.startafterend'">
80         The <em>end date</em> for this event occurs before the <em>start date</em>
81       </xsl:when>
82       <xsl:when test="id='org.bedework.validation.error.invalid.endtype'">
83         The <em>end date type</em> is invalid for the type of event you are creating
84       </xsl:when>
85       <xsl:when test="id='org.bedework.validation.error.invalid.duration'">
86         <em>Invalid duration</em> - you may not have a zero-length duration
87         for an all day event.
88       </xsl:when>
89       <xsl:when test="id='org.bedework.validation.error.nosponsorname'">
90         You must enter a contact <em>name</em>.
91       </xsl:when>
92       <xsl:when test="id='org.bedework.validation.error.nolocationaddress'">
93         You must enter a location <em>address</em>.
94       </xsl:when>
95       <xsl:when test="id='org.bedework.client.error.missingfield'">
96         Your information is incomplete: please supply a <em><xsl:value-of select="param"/></em><br/>
97       </xsl:when>
98       <xsl:when test="id='org.bedework.validation.error.missingfield'">
99         Your information is incomplete: please supply a <em><xsl:value-of select="param"/></em><br/>
100       </xsl:when>
101       <xsl:when test="id='org.bedework.validation.error.forbidden.calmode'">
102         Access forbidden: you are not allowed to perform that action on calendar <em><xsl:value-of select="param"/></em>
103       </xsl:when>
104       <xsl:when test="id='org.bedework.client.error.missingcategory'">
105         Error: the category identified by <em><xsl:value-of select="param"/></em> is missing
106       </xsl:when>
107       <xsl:when test="id='org.bedework.client.error.nosuchcategorynosuchcategory'">
108         Not found: there is no category identified by the key <em><xsl:value-of select="param"/></em>
109       </xsl:when>
110       <xsl:when test="id='org.bedework.client.error.category.referenced'">
111         Cannot delete: the category is referenced by events
112       </xsl:when>
113       <xsl:when test="id='org.bedework.pubevents.error.badfield'">
114         Please correct your data input for <em><xsl:value-of select="param"/></em>
115       </xsl:when>
116       <xsl:when test="id='org.bedework.client.error.nosuchsponsor'">
117         Not found: there is no contact <em><xsl:value-of select="param"/></em>
118       </xsl:when>
119       <xsl:when test="id='org.bedework.client.error.sponsor.referenced'">
120         Cannot delete: the contact is referenced by events
121       </xsl:when>
122       <xsl:when test="id='org.bedework.client.error.sponsor.alreadyexists'">
123         Cannot add: the contact already exists
124       </xsl:when>
125       <xsl:when test="id='org.bedework.client.error.nosuchlocation'">
126         Not found: there is no location identified by the id <em><xsl:value-of select="param"/></em>
127       </xsl:when>
128       <xsl:when test="id='org.bedework.client.error.location.alreadyexists'">
129         Cannot add: the location already exists
130       </xsl:when>
131       <xsl:when test="id='org.bedework.client.error.location.referenced'">
132         Cannot delete: the location is referenced by events
133       </xsl:when>
134       <xsl:when test="id='org.bedework.client.error.subscription.reffed'">
135         <p>Cannot delete: the subscription is included in view <em><xsl:value-of select="param"/></em>.<br/>
136         You must remove the subscription from this view before deleting.</p>
137       </xsl:when>
138       <xsl:when test="id='org.bedework.error.timezones.readerror'">
139         <p>Timzone error: could not read file</p>
140       </xsl:when>
141       <xsl:when test="id='org.bedework.client.error.nosuchuserid'">
142         <p>Not found: there is no user identified by the id <em><xsl:value-of select="param"/></em></p>
143       </xsl:when>
144       <xsl:when test="id='org.bedework.client.error.usernotfound'">
145         Not found: the user <em><xsl:value-of select="param"/></em> was not found
146       </xsl:when>
147       <xsl:when test="id='org.bedework.error.duplicate.admingroup'">
148         Error: duplicate admin group.  <em><xsl:value-of select="param"/></em> already exists.
149       </xsl:when>
150       <xsl:when test="id='org.bedework.error.unknowgroup'">
151         Error: unknown admin group:  <em><xsl:value-of select="param"/></em>
152       </xsl:when>
153       <xsl:when test="id='org.bedework.exception.alreadyonadmingrouppath'">
154         Error: group may not be added to itself
155       </xsl:when>
156       <xsl:when test="id='edu.rpi.sss.util.error.exc'">
157         Utility package error: <em><xsl:value-of select="param"/></em>
158       </xsl:when>
159       <xsl:otherwise>
160         <xsl:value-of select="id"/> = <xsl:value-of select="param"/>
161       </xsl:otherwise>
162     </xsl:choose>
163   </xsl:template>
164 </xsl:stylesheet>
165
Note: See TracBrowser for help on using the browser.