This repository was archived by the owner on May 5, 2021. It is now read-only.
forked from DaSchTour/AgeParse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgeParse.i18n.php
More file actions
142 lines (138 loc) · 5.95 KB
/
AgeParse.i18n.php
File metadata and controls
142 lines (138 loc) · 5.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
/**
* Internationalisation file for extension Age.
*
* @addtogroup Extensions
*/
$messages = array();
/** English (default)
* @author Mark Daly
*/
$messages['en'] = array (
'from' => 'from'
,'to' => 'to'
,'left' => 'left'
,'right' => 'right'
,'format' => 'format'
,'errbox' => 'errbox'
,'zeronegatives' => 'zeronegatives'
,'yes' => 'yes'
,'no' => 'no'
,'ymd' => 'ymd'
,'ym' => 'ym'
,'y' => 'y'
,'required-from' => 'FROM attribute is required (e.g. from="2009-01-12")'
,'required-to' => 'TO attribute is required (e.g. from="2009-01-12")'
,'invalid-from' => 'FROM date is not valid: $1-$2-$3 (YYYY-MM-DD)'
,'invalid-to' => 'TO date is not valid: $1-$2-$3 (YYYY-MM-DD)'
,'from-first' => 'FROM ($1-$2-$3) date must occur before TO ($4-$5-$6) date'
,'same-day' => 'FROM ($1) and TO ($2) date are the same'
,'syntax' => '<age from="yyyy-mm-dd" to="yyyy-mm-dd" [left="c"] [right="c"]></age>'
,'catchall' => 'Something is wrong with the AGE tag; check your syntax, match quotes, FROM & TO attributes are required, date format should be ISO-8601 (e.g. YYYY-MM-DD), and FROM must be less than TO.'
,'yy-single' => 'year'
,'yy-plural' => 'years'
,'mm-single' => 'month'
,'mm-plural' => 'months'
,'dd-single' => 'day'
,'dd-plural' => 'days'
,'answer-sep' => ', '
,'ageparse-desc' => 'Calculate difference days, months, and years between two dates'
);
/** Message documentation (explain purpose of each message)
* @author Mark Daly
*/
$messages['qqq'] = array (
'from' => 'attribute to specify starting date'
,'to' => 'attribute to specify ending date'
,'left' => 'attribute to specify text added to front of answer'
,'right' => 'attribute to specify text added after answer'
,'format' => 'attribute to specify what parts of the answer you want to show'
,'errbox' => 'attribute to specify (yes/no) if error should show in a distinctive box'
,'zeronegatives' => 'attribute to specify (yes/no) if negative days for answer should just show as "0 days"'
,'yes' => 'answer used by errbox and zeronegatives'
,'no' => 'answer used by errbox and zeronegatives'
,'ymd' => 'format to show days, months, and years when that part is greater than zero'
,'ym' => 'format to show months and years when that part is greater than zero'
,'y' => 'format to only show years'
,'required-from' => 'error message: FROM value is required'
,'required-to' => 'error message: TO value is required'
,'invalid-from' => 'error message: FROM value is not a valid date'
,'invalid-to' => 'error message: TO value is not a valid date'
,'from-first' => 'error message: FROM date must be less than or equal to TO date'
,'same-day' => 'error message: days are the same, why bother?'
,'syntax' => 'error message: show how the tag can be written'
,'catchall' => 'error message: show this when we know an error occurred but not what happened'
,'yy-single' => 'word for 1 year'
,'yy-plural' => 'word for many years'
,'mm-single' => 'word for 1 day'
,'mm-plural' => 'word for many months'
,'dd-single' => 'word for 1 day'
,'dd-plural' => 'word for many days'
,'answer-sep' => 'separate year, month, and day values in answer'
,'ageparse-desc' => 'Description for Special:Version'
);
/** Spanish (default)
* @author Google Translator (this is just for testing)
*/
$messages['es'] = array (
'from' => 'desde'
,'to' => 'para'
,'left' => 'izquierda'
,'right' => 'acertado'
,'format' => 'formato'
,'errbox' => 'caja'
,'zeronegatives' => 'negativos'
,'yes' => 'si'
,'no' => 'no'
,'ymd' => 'ymd'
,'ym' => 'ym'
,'y' => 'y'
,'required-from' => 'FROM atributo es necesario (e.g. from="2009-01-12")'
,'required-to' => 'TO atributo es necesario (e.g. from="2009-01-12")'
,'invalid-from' => 'FROM fecha no es válida: $1-$2-$3 (YYYY-MM-DD)'
,'invalid-to' => 'TO fecha no es válida: $1-$2-$3 (YYYY-MM-DD)'
,'from-first' => 'FROM ($1-$2-$3) fecha debe ocurrir antes de TO ($4-$5-$6) fecha'
,'same-day' => 'FROM ($1) y TO ($2) fecha son los mismos'
,'syntax' => '<age from="yyyy-mm-dd" to="yyyy-mm-dd" [left="c"] [right="c"]></age>'
,'catchall' => 'Algo está mal con la edad etiqueta; comprobar su sintaxis, coinciden con las comillas, que van y vuelven a los atributos son necesarios, la fecha debe tener el formato ISO-8601 (por ejemplo, AAAA-MM-DD), y de debe ser inferior a A.'
,'yy-single' => 'años'
,'yy-plural' => 'años'
,'mm-single' => 'mes'
,'mm-plural' => 'mes'
,'dd-single' => 'día'
,'dd-plural' => 'día'
,'answer-sep' => ', '
);
/** German
* @author DaSch
*/
$messages['de'] = array (
'from' => 'von'
,'to' => 'bis'
,'left' => 'links'
,'right' => 'rechts'
,'format' => 'format'
,'errbox' => 'errbox'
,'zeronegatives' => 'zeronegatives'
,'yes' => 'ja'
,'no' => 'nein'
,'ymd' => 'ymd'
,'ym' => 'ym'
,'y' => 'y'
,'required-from' => 'FROM attribute is required (e.g. from="2009-01-12")'
,'required-to' => 'TO attribute is required (e.g. from="2009-01-12")'
,'invalid-from' => 'FROM date is not valid: $1-$2-$3 (YYYY-MM-DD)'
,'invalid-to' => 'TO date is not valid: $1-$2-$3 (YYYY-MM-DD)'
,'from-first' => 'FROM ($1-$2-$3) date must occur before TO ($4-$5-$6) date'
,'same-day' => 'FROM ($1) and TO ($2) date are the same'
,'syntax' => '<age from="yyyy-mm-dd" to="yyyy-mm-dd" [left="c"] [right="c"]></age>'
,'catchall' => 'Something is wrong with the AGE tag; check your syntax, match quotes, FROM & TO attributes are required, date format should be ISO-8601 (e.g. YYYY-MM-DD), and FROM must be less than TO.'
,'yy-single' => 'Jahr'
,'yy-plural' => 'Jahre'
,'mm-single' => 'Monat'
,'mm-plural' => 'Monate'
,'dd-single' => 'Tag'
,'dd-plural' => 'Tage'
,'answer-sep' => ', '
,'ageparse-desc' => 'Berechnet die Differenz zwischen zwei Datumsangaben'
);