1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dfa.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #include "sc.hrc" // Definition RID_XXX in StarCalc
33 /* #i54546# The code belonging to this resource file is sample code for the
34 * legacy AddIn interface. The interface is still supported, but deprecated.
35 * The strings here were displayed in the function wizard. To prevent
36 * duplicated and useless translation effort (functions and strings are also
37 * part of the new scaddin module), the strings here are now layed out as fixed
38 * untranslatable strings. The entire mechanism with the ../util/cl2c.pl perl
39 * script merging the raw .cl and the .src during build time didn't work
40 * anymore anyway, since we switched from MS-LCIDs / telephone area codes to
41 * ISO codes for resources, and introduced localize.sdf files. Returned was
42 * always an empty string. Now at least the fixed English string is returned.
45 Resource RID_SC_ADDIN_DFA
47 String DFA_PAR_DATE1_NAME // Name of Date1 Parameter
51 String DFA_PAR_DATE2_NAME // Name of Date2 Parameter
55 String DFA_PAR_MODE_NAME // Name of Mode Parameter
60 String DFA_PAR_DATE_NAME // Name of Date Parameter
65 String DFA_PAR_DATE_DESC // Description of Date Parameter
67 Text = "Internal number of the date";
70 /*-=======================================================================*/
71 String DFA_WEEK_NAME // Name
75 String DFA_WEEK_DESC // Description
77 Text = "Returns the difference in weeks between two dates";
79 String DFA_WEEK_PAR1_DESC // Description of Parameter 1
81 Text = "The end date for calculating the difference in weeks";
83 String DFA_WEEK_PAR2_DESC // Description of Parameter 2
85 Text = "The start date for calculating the difference weeks";
87 String DFA_WEEK_PAR3_DESC // Description of Parameter 3
89 Text = "Type of difference calculation: mode=0 means the interval, mode=1 means calendar weeks";
92 /*-=======================================================================*/
94 String DFA_MONTHS_NAME // Name
98 String DFA_MONTHS_DESC // Description
100 Text = "Determines the number of months between two dates";
102 String DFA_MONTHS_PAR1_DESC // Description of Parameter 1
104 Text = "The end date for calculating the difference in months";
106 String DFA_MONTHS_PAR2_DESC // Description of Parameter 2
108 Text = "The start date for calculating the difference in months";
110 String DFA_MONTHS_PAR3_DESC // Description of Parameter 2
112 Text = "Type of difference calculation: Mode = 0 means interval, mode = 1 means in calendar months";
115 /*-=======================================================================*/
117 String DFA_YEARS_NAME // Name
121 String DFA_YEARS_DESC // Description
123 Text = "Returns the difference in years between two dates";
125 String DFA_YEARS_PAR1_DESC // Description of Parameter 1
127 Text = "The end date for calculating the difference in years";
129 String DFA_YEARS_PAR2_DESC // Description of Parameter 2
131 Text = "The start date for calculating the difference in years";
133 String DFA_YEARS_PAR3_DESC // Description of Parameter 2
135 Text = "Type of difference calculation: Mode=0 means interval, mode=1 means in calendar years.";
138 /*-=======================================================================*/
140 String DFA_ISLEAPYEAR_NAME // Name
144 String DFA_ISLEAPYEAR_DESC // Description
146 Text = "Returns 1 (TRUE) if a leap year is used, otherwise 0 (FALSE) is returned";
149 /*-=======================================================================*/
151 String DFA_DAYSINMONTH_NAME // Name
153 Text = "DaysInMonth";
155 String DFA_DAYSINMONTH_DESC // Description
157 Text = "Returns the number of days in the month in relation to the date entered";
160 /*-=======================================================================*/
162 String DFA_DAYSINYEAR_NAME // Name
166 String DFA_DAYSINYEAR_DESC // Description
168 Text = "Returns the number of days in a year in relation to the date entered";
171 /*-=======================================================================*/
173 String DFA_WEEKSINYEAR_NAME // Name
175 Text = "WeeksInYear";
177 String DFA_WEEKSINYEAR_DESC // Description
179 Text = "Returns the number of weeks in the year in relation to a date";