xref: /trunk/main/scaddins/source/datefunc/datefunc.src (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28
29#include "datefunc.hrc"
30
31
32Resource RID_DATE_FUNCTION_DESCRIPTIONS
33{
34    Resource DATE_FUNCDESC_DiffWeeks
35    {
36        String 1    // description              DiffWeeks
37        {
38            Text [ en-US ] = "Calculates the number of weeks in a specific period";
39        };
40        String 2 // name of parameter 1         DiffWeeks
41        {
42            Text [ en-US ] = "Start date";
43        };
44        String 3 // description of parameter 1  DiffWeeks
45        {
46            Text [ en-US ] = "First day of the period";
47        };
48        String 4 // name of parameter 2         DiffWeeks
49        {
50            Text [ en-US ] = "End date";
51        };
52        String 5 // description of parameter 2  DiffWeeks
53        {
54            Text [ en-US ] = "Last day of the period";
55        };
56        String 6 // name of parameter 3         DiffWeeks
57        {
58            Text [ en-US ] = "Type";
59        };
60        String 7 // description of parameter 3  DiffWeeks
61        {
62            Text [ en-US ] = "Type of calculation: Type=0 means the time interval, Type=1 means calendar weeks.";
63        };
64    };
65
66    Resource DATE_FUNCDESC_DiffMonths
67    {
68        String 1    // description              DiffMonths
69        {
70            Text [ en-US ] = "Determines the number of months in a specific period.";
71        };
72        String 2 // name of parameter 1         DiffMonths
73        {
74            Text [ en-US ] = "Start date";
75        };
76        String 3 // description of parameter 1  DiffMonths
77        {
78            Text [ en-US ] = "First day of the period.";
79        };
80        String 4 // name of parameter 2         DiffMonths
81        {
82            Text [ en-US ] = "End date";
83        };
84        String 5 // description of parameter 2  DiffMonths
85        {
86            Text [ en-US ] = "Last day of the period.";
87        };
88        String 6 // name of parameter 3         DiffMonths
89        {
90            Text [ en-US ] = "Type";
91        };
92        String 7 // description of parameter 3  DiffMonths
93        {
94            Text [ en-US ] = "Type of calculation: Type=0 means the time interval, Type=1 means calendar months.";
95        };
96    };
97
98    Resource DATE_FUNCDESC_DiffYears
99    {
100        String 1    // description              DiffYears
101        {
102            Text [ en-US ] = "Calculates the number of years in a specific period.";
103        };
104        String 2 // name of parameter 1         DiffYears
105        {
106            Text [ en-US ] = "Start date";
107        };
108        String 3 // description of parameter 1  DiffYears
109        {
110            Text [ en-US ] = "First day of the period";
111        };
112        String 4 // name of parameter 2         DiffYears
113        {
114            Text [ en-US ] = "End date";
115        };
116        String 5 // description of parameter 2  DiffYears
117        {
118            Text [ en-US ] = "Last day of the period";
119        };
120        String 6 // name of parameter 3         DiffYears
121        {
122            Text [ en-US ] = "Type";
123        };
124        String 7 // description of parameter 3  DiffYears
125        {
126            Text [ en-US ] = "Type of calculation: Type=0 means the time interval, Type=1 means calendar years.";
127        };
128    };
129
130    Resource DATE_FUNCDESC_IsLeapYear
131    {
132        String 1    // description              IsLeapYear
133        {
134            Text [ en-US ] = "Returns 1 (TRUE) if the date is a day of a leap year, otherwise 0 (FALSE).";
135        };
136        String 2 // name of parameter 1         IsLeapYear
137        {
138            Text [ en-US ] = "Date";
139        };
140        String 3 // description of parameter 1  IsLeapYear
141        {
142            Text [ en-US ] = "Any day in the desired year";
143        };
144    };
145
146    Resource DATE_FUNCDESC_DaysInMonth
147    {
148        String 1    // description              DaysInMonth
149        {
150            Text [ en-US ] = "Returns the number of days of the month in which the date entered occurs";
151        };
152        String 2 // name of parameter 1         DaysInMonth
153        {
154            Text [ en-US ] = "Date";
155        };
156        String 3 // description of parameter 1  DaysInMonth
157        {
158            Text [ en-US ] = "Any day in the desired month";
159        };
160    };
161
162    Resource DATE_FUNCDESC_DaysInYear
163    {
164        String 1    // description              DaysInYear
165        {
166            Text [ en-US ] = "Returns the number of days of the year in which the date entered occurs.";
167        };
168        String 2 // name of parameter 1         DaysInYear
169        {
170            Text [ en-US ] = "Date";
171        };
172        String 3 // description of parameter 1  DaysInYear
173        {
174            Text [ en-US ] = "Any day in the desired year";
175        };
176    };
177
178    Resource DATE_FUNCDESC_WeeksInYear
179    {
180        String 1    // description              WeeksInYear
181        {
182            Text [ en-US ] = "Returns the number of weeks of the year in which the date entered occurs";
183        };
184        String 2 // name of parameter 1         WeeksInYear
185        {
186            Text [ en-US ] = "Date";
187        };
188        String 3 // description of parameter 1  WeeksInYear
189        {
190            Text [ en-US ] = "Any day in the desired year";
191        };
192    };
193
194    Resource DATE_FUNCDESC_Rot13
195    {
196        String 1    // description              Rot13
197        {
198            Text [ en-US ] = "Encrypts or decrypts a text using the ROT13 algorithm";
199        };
200        String 2 // name of parameter 1         Rot13
201        {
202            Text [ en-US ] = "Text";
203        };
204        String 3 // description of parameter 1  Rot13
205        {
206            Text [ en-US ] = "Text to be encrypted or text already encrypted";
207        };
208    };
209};
210
211
212Resource RID_DATE_FUNCTION_NAMES
213{
214    String DATE_FUNCNAME_DiffWeeks
215    {
216        Text [ en-US ] = "WEEKS";
217    };
218    String DATE_FUNCNAME_DiffMonths
219    {
220        Text [ en-US ] = "MONTHS";
221    };
222    String DATE_FUNCNAME_DiffYears
223    {
224        Text [ en-US ] = "YEARS";
225    };
226    String DATE_FUNCNAME_IsLeapYear
227    {
228        Text [ en-US ] = "ISLEAPYEAR";
229    };
230    String DATE_FUNCNAME_DaysInMonth
231    {
232        Text [ en-US ] = "DAYSINMONTH";
233    };
234    String DATE_FUNCNAME_DaysInYear
235    {
236        Text [ en-US ] = "DAYSINYEAR";
237    };
238    String DATE_FUNCNAME_WeeksInYear
239    {
240        Text [ en-US ] = "WEEKSINYEAR";
241    };
242    String DATE_FUNCNAME_Rot13
243    {
244        Text [ en-US ] = "ROT13";
245    };
246};
247
248
249Resource RID_DATE_DEFFUNCTION_NAMES
250{
251
252    StringArray DATE_DEFFUNCNAME_DiffWeeks
253    {
254        ItemList =
255        {
256            < "WOCHEN"; >;
257            < "WEEKS"; >;
258        };
259    };
260    StringArray DATE_DEFFUNCNAME_DiffMonths
261    {
262        ItemList =
263        {
264            < "MONATE"; >;
265            < "MONTHS"; >;
266        };
267    };
268    StringArray DATE_DEFFUNCNAME_DiffYears
269    {
270        ItemList =
271        {
272            < "JAHRE"; >;
273            < "YEARS"; >;
274        };
275    };
276    StringArray DATE_DEFFUNCNAME_IsLeapYear
277    {
278        ItemList =
279        {
280            < "ISTSCHALTJAHR"; >;
281            < "ISLEAPYEAR"; >;
282        };
283    };
284    StringArray DATE_DEFFUNCNAME_DaysInMonth
285    {
286        ItemList =
287        {
288            < "TAGEIMMONAT"; >;
289            < "DAYSINMONTH"; >;
290        };
291    };
292    StringArray DATE_DEFFUNCNAME_DaysInYear
293    {
294        ItemList =
295        {
296            < "TAGEIMJAHR"; >;
297            < "DAYSINYEAR"; >;
298        };
299    };
300    StringArray DATE_DEFFUNCNAME_WeeksInYear
301    {
302        ItemList =
303        {
304            < "WOCHENIMJAHR"; >;
305            < "WEEKSINYEAR"; >;
306        };
307    };
308    StringArray DATE_DEFFUNCNAME_Rot13
309    {
310        ItemList =
311        {
312            < "ROT13"; >;
313            < "ROT13"; >;
314        };
315    };
316};
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349