Skip to content

Commit a11aed8

Browse files
author
Thomas Hunziker
committed
TranslateFormat in all other forms
1 parent f4d6115 commit a11aed8

File tree

15 files changed

+157
-73
lines changed

15 files changed

+157
-73
lines changed

administrator/components/com_admin/models/forms/profile.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
label="COM_ADMIN_USER_FIELD_REGISTERDATE_LABEL"
5454
description="COM_ADMIN_USER_FIELD_REGISTERDATE_DESC"
5555
readonly="true"
56-
format="%Y-%m-%d %H:%M:%S"
56+
translateformat="true"
57+
showtime="true"
5758
size="22"
5859
filter="user_utc"
5960
/>
@@ -65,7 +66,8 @@
6566
label="COM_ADMIN_USER_FIELD_LASTVISIT_LABEL"
6667
description="COM_ADMIN_USER_FIELD_LASTVISIT_DESC"
6768
readonly="true"
68-
format="%Y-%m-%d %H:%M:%S"
69+
translateformat="true"
70+
showtime="true"
6971
size="22"
7072
filter="user_utc"
7173
/>

administrator/components/com_banners/models/forms/banner.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
label="COM_BANNERS_FIELD_CREATED_LABEL"
134134
description="COM_BANNERS_FIELD_CREATED_DESC"
135135
size="22"
136-
format="%Y-%m-%d %H:%M:%S"
136+
translateformat="true"
137+
showtime="true"
137138
filter="user_utc"
138139
/>
139140

@@ -160,7 +161,8 @@
160161
class="readonly"
161162
size="22"
162163
readonly="true"
163-
format="%Y-%m-%d %H:%M:%S"
164+
translateformat="true"
165+
showtime="true"
164166
filter="user_utc"
165167
/>
166168

@@ -190,7 +192,8 @@
190192
type="calendar"
191193
label="COM_BANNERS_FIELD_PUBLISH_UP_LABEL"
192194
description="COM_BANNERS_FIELD_PUBLISH_UP_DESC"
193-
format="%Y-%m-%d %H:%M:%S"
195+
translateformat="true"
196+
showtime="true"
194197
size="22"
195198
filter="user_utc"
196199
/>
@@ -200,7 +203,8 @@
200203
type="calendar"
201204
label="COM_BANNERS_FIELD_PUBLISH_DOWN_LABEL"
202205
description="COM_BANNERS_FIELD_PUBLISH_DOWN_DESC"
203-
format="%Y-%m-%d %H:%M:%S"
206+
translateformat="true"
207+
showtime="true"
204208
size="22"
205209
filter="user_utc"
206210
/>

administrator/components/com_banners/models/forms/filter_tracks.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
label="COM_BANNERS_BEGIN_LABEL"
6262
description="COM_BANNERS_BEGIN_DESC"
6363
hint="COM_BANNERS_BEGIN_HINT"
64-
format="%Y-%m-%d"
64+
translateformat="true"
6565
size="10"
6666
filter="user_utc"
6767
onchange="this.form.submit();"
@@ -73,7 +73,7 @@
7373
label="COM_BANNERS_END_LABEL"
7474
description="COM_BANNERS_END_DESC"
7575
hint="COM_BANNERS_END_HINT"
76-
format="%Y-%m-%d"
76+
translateformat="true"
7777
size="10"
7878
filter="user_utc"
7979
onchange="this.form.submit();"

administrator/components/com_contact/models/forms/contact.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117
label="COM_CONTACT_FIELD_CREATED_LABEL"
118118
description="COM_CONTACT_FIELD_CREATED_DESC"
119119
size="22"
120-
format="%Y-%m-%d %H:%M:%S"
120+
translateformat="true"
121+
showtime="true"
121122
filter="user_utc"
122123
/>
123124

@@ -129,7 +130,8 @@
129130
class="readonly"
130131
size="22"
131132
readonly="true"
132-
format="%Y-%m-%d %H:%M:%S"
133+
translateformat="true"
134+
showtime="true"
133135
filter="user_utc"
134136
/>
135137

@@ -168,7 +170,9 @@
168170
type="calendar"
169171
label="COM_CONTACT_FIELD_PUBLISH_UP_LABEL"
170172
description="COM_CONTACT_FIELD_PUBLISH_UP_DESC"
171-
format="%Y-%m-%d %H:%M:%S" size="22"
173+
translateformat="true"
174+
showtime="true"
175+
size="22"
172176
filter="user_utc"
173177
/>
174178

@@ -177,7 +181,9 @@
177181
type="calendar"
178182
label="COM_CONTACT_FIELD_PUBLISH_DOWN_LABEL"
179183
description="COM_CONTACT_FIELD_PUBLISH_DOWN_DESC"
180-
format="%Y-%m-%d %H:%M:%S" size="22"
184+
translateformat="true"
185+
showtime="true"
186+
size="22"
181187
filter="user_utc"
182188
/>
183189

administrator/components/com_content/models/forms/article.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<field name="created" type="calendar" label="COM_CONTENT_FIELD_CREATED_LABEL"
6969
description="COM_CONTENT_FIELD_CREATED_DESC"
7070
translateformat="true"
71-
weeknumbers="true"
71+
weeknumbers="true"
7272
showtime="true"
7373
size="22"
7474
filter="user_utc" />
@@ -103,11 +103,15 @@
103103
type="calendar"
104104
label="COM_CONTENT_FIELD_PUBLISH_UP_LABEL"
105105
description="COM_CONTENT_FIELD_PUBLISH_UP_DESC"
106-
format="%Y-%m-%d %H:%M:%S" size="22"
106+
translateformat="true"
107+
showtime="true"
108+
size="22"
107109
filter="user_utc" />
108110

109-
<field name="publish_down" type="calendar"
110-
label="COM_CONTENT_FIELD_PUBLISH_DOWN_LABEL" description="COM_CONTENT_FIELD_PUBLISH_DOWN_DESC"
111+
<field name="publish_down"
112+
type="calendar"
113+
label="COM_CONTENT_FIELD_PUBLISH_DOWN_LABEL"
114+
description="COM_CONTENT_FIELD_PUBLISH_DOWN_DESC"
111115
translateformat="true"
112116
showtime="true"
113117
size="22"

administrator/components/com_finder/models/forms/filter.xml

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,29 @@
1616
description="JFIELD_ALIAS_DESC"
1717
hint="JFIELD_ALIAS_PLACEHOLDER" size="45" />
1818

19-
<field name="created" type="calendar" label="JGLOBAL_FIELD_CREATED_LABEL"
20-
description="JGLOBAL_FIELD_CREATED_DESC" size="22"
21-
format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
19+
<field
20+
name="created"
21+
type="calendar"
22+
label="JGLOBAL_FIELD_CREATED_LABEL"
23+
description="JGLOBAL_FIELD_CREATED_DESC"
24+
translateformat="true"
25+
showtime="true"
26+
size="22"
27+
filter="user_utc"
28+
/>
2229

23-
<field name="modified" type="calendar" class="readonly"
24-
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_FINDER_FIELD_MODIFIED_DESCRIPTION"
25-
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
30+
<field
31+
name="modified"
32+
type="calendar"
33+
class="readonly"
34+
label="JGLOBAL_FIELD_MODIFIED_LABEL"
35+
description="COM_FINDER_FIELD_MODIFIED_DESCRIPTION"
36+
translateformat="true"
37+
showtime="true"
38+
size="22"
39+
readonly="true"
40+
filter="user_utc"
41+
/>
2642

2743
<field name="created_by" type="user"
2844
label="COM_FINDER_FIELD_CREATED_BY_LABEL" description="COM_FINDER_FIELD_CREATED_BY_DESC" />
@@ -73,9 +89,14 @@
7389
<option value="1">COM_FINDER_FILTER_WHEN_AFTER</option>
7490
</field>
7591

76-
<field name="d1" type="calendar"
77-
label="COM_FINDER_FILTER_START_DATE_LABEL" description="COM_FINDER_FILTER_START_DATE_DESCRIPTION"
78-
size="22" format="%Y-%m-%d" filter="user_utc" />
92+
<field name="d1"
93+
type="calendar"
94+
label="COM_FINDER_FILTER_START_DATE_LABEL"
95+
description="COM_FINDER_FILTER_START_DATE_DESCRIPTION"
96+
translateformat="true"
97+
size="22"
98+
filter="user_utc"
99+
/>
79100

80101
<field
81102
name="w2"
@@ -90,9 +111,15 @@
90111
<option value="1">COM_FINDER_FILTER_WHEN_AFTER</option>
91112
</field>
92113

93-
<field name="d2" type="calendar"
94-
label="COM_FINDER_FILTER_END_DATE_LABEL" description="COM_FINDER_FILTER_END_DATE_DESCRIPTION"
95-
size="22" format="%Y-%m-%d" filter="user_utc" />
114+
<field
115+
name="d2"
116+
type="calendar"
117+
label="COM_FINDER_FILTER_END_DATE_LABEL"
118+
description="COM_FINDER_FILTER_END_DATE_DESCRIPTION"
119+
translateformat="true"
120+
size="22"
121+
filter="user_utc"
122+
/>
96123
</fieldset>
97124

98125
</fields>

administrator/components/com_modules/models/forms/module.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,25 @@
5555
<option value="-2">JTRASHED</option>
5656
</field>
5757

58-
<field name="publish_up" type="calendar"
58+
<field
59+
name="publish_up"
60+
type="calendar"
61+
label="COM_MODULES_FIELD_PUBLISH_UP_LABEL"
5962
description="COM_MODULES_FIELD_PUBLISH_UP_DESC"
6063
filter="user_utc"
61-
format="%Y-%m-%d %H:%M:%S"
62-
label="COM_MODULES_FIELD_PUBLISH_UP_LABEL"
64+
translateformat="true"
65+
showtime="true"
6366
size="22"
6467
/>
6568

66-
<field name="publish_down" type="calendar"
69+
<field
70+
name="publish_down"
71+
type="calendar"
72+
label="COM_MODULES_FIELD_PUBLISH_DOWN_LABEL"
6773
description="COM_MODULES_FIELD_PUBLISH_DOWN_DESC"
6874
filter="user_utc"
69-
format="%Y-%m-%d %H:%M:%S"
70-
label="COM_MODULES_FIELD_PUBLISH_DOWN_LABEL"
75+
translateformat="true"
76+
showtime="true"
7177
size="22"
7278
/>
7379

administrator/components/com_newsfeeds/models/forms/newsfeed.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@
140140
type="calendar"
141141
label="JGLOBAL_FIELD_CREATED_LABEL"
142142
description="JGLOBAL_FIELD_CREATED_DESC"
143+
translateformat="true"
144+
showtime="true"
143145
size="22"
144-
format="%Y-%m-%d %H:%M:%S"
145146
filter="user_utc"
146147
/>
147148

@@ -166,9 +167,10 @@
166167
label="JGLOBAL_FIELD_Modified_Label"
167168
description="COM_NEWSFEEDS_FIELD_MODIFIED_DESC"
168169
class="readonly"
170+
translateformat="true"
171+
showtime="true"
169172
size="22"
170173
readonly="true"
171-
format="%Y-%m-%d %H:%M:%S"
172174
filter="user_utc"
173175
/>
174176

@@ -218,8 +220,9 @@
218220
type="calendar"
219221
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL"
220222
description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
223+
translateformat="true"
224+
showtime="true"
221225
size="22"
222-
format="%Y-%m-%d %H:%M:%S"
223226
filter="user_utc"
224227
/>
225228

@@ -228,8 +231,9 @@
228231
type="calendar"
229232
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL"
230233
description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
234+
translateformat="true"
235+
showtime="true"
231236
size="22"
232-
format="%Y-%m-%d %H:%M:%S"
233237
filter="user_utc"
234238
/>
235239

administrator/components/com_tags/models/forms/tag.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@
173173
type="calendar"
174174
class="readonly"
175175
label="JGLOBAL_CREATED_DATE"
176-
format="%Y-%m-%d %H:%M:%S"
177-
filter="user_utc"
178176
description="COM_TAGS_FIELD_CREATED_DATE_DESC"
177+
translateformat="true"
178+
showtime="true"
179+
filter="user_utc"
179180
readonly="true"
180181
/>
181182

@@ -193,9 +194,10 @@
193194
type="calendar"
194195
class="readonly"
195196
label="JGLOBAL_FIELD_MODIFIED_LABEL"
196-
format="%Y-%m-%d %H:%M:%S"
197-
filter="user_utc"
198197
description="COM_TAGS_FIELD_MODIFIED_DESC"
198+
translateformat="true"
199+
showtime="true"
200+
filter="user_utc"
199201
readonly="true"
200202
/>
201203

administrator/components/com_users/models/forms/note.xml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
label="COM_USERS_FIELD_REVIEW_TIME_LABEL"
7777
description="COM_USERS_FIELD_REVIEW_TIME_DESC"
7878
default="NOW"
79-
format="%Y-%m-%d"
79+
translateformat="true"
8080
/>
8181

8282
<field
@@ -118,26 +118,37 @@
118118
type="hidden"
119119
filter="unset"
120120
/>
121-
122-
<field name="publish_up" type="calendar"
123-
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL" description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
124-
format="%Y-%m-%d %H:%M:%S" size="22"
125-
filter="user_utc" />
126121

127-
<field name="publish_down" type="calendar"
128-
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL" description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
129-
format="%Y-%m-%d %H:%M:%S" size="22"
130-
filter="user_utc" />
131-
132-
<field
122+
<field
123+
name="publish_up"
124+
type="calendar"
125+
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL"
126+
description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
127+
translateformat="true"
128+
showtime="true"
129+
size="22"
130+
filter="user_utc"
131+
/>
132+
133+
<field
134+
name="publish_down"
135+
type="calendar"
136+
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL"
137+
description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
138+
translateformat="true"
139+
showtime="true"
140+
size="22"
141+
filter="user_utc"
142+
/>
143+
144+
<field
133145
name="version_note"
134146
type="text"
135147
label="JGLOBAL_FIELD_VERSION_NOTE_LABEL"
136148
description="JGLOBAL_FIELD_VERSION_NOTE_DESC"
137149
maxlength="255"
138150
size="45"
139151
labelclass="control-label"
140-
/>
141-
152+
/>
142153
</fieldset>
143154
</form>

0 commit comments

Comments
 (0)