Skip to content

Commit

Permalink
TranslateFormat in all other forms (joomla#13158)
Browse files Browse the repository at this point in the history
* TranslateFormat in all other forms

* Revert for tracks filter bar
  • Loading branch information
Thomas Hunziker authored and wilsonge committed Jan 15, 2017
1 parent 417fdbd commit 8cd1c25
Show file tree
Hide file tree
Showing 14 changed files with 151 additions and 69 deletions.
6 changes: 4 additions & 2 deletions administrator/components/com_admin/models/forms/profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
label="COM_ADMIN_USER_FIELD_REGISTERDATE_LABEL"
description="COM_ADMIN_USER_FIELD_REGISTERDATE_DESC"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand All @@ -65,7 +66,8 @@
label="COM_ADMIN_USER_FIELD_LASTVISIT_LABEL"
description="COM_ADMIN_USER_FIELD_LASTVISIT_DESC"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand Down
12 changes: 8 additions & 4 deletions administrator/components/com_banners/models/forms/banner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@
label="COM_BANNERS_FIELD_CREATED_LABEL"
description="COM_BANNERS_FIELD_CREATED_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
filter="user_utc"
/>

Expand All @@ -160,7 +161,8 @@
class="readonly"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
filter="user_utc"
/>

Expand Down Expand Up @@ -190,7 +192,8 @@
type="calendar"
label="COM_BANNERS_FIELD_PUBLISH_UP_LABEL"
description="COM_BANNERS_FIELD_PUBLISH_UP_DESC"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand All @@ -200,7 +203,8 @@
type="calendar"
label="COM_BANNERS_FIELD_PUBLISH_DOWN_LABEL"
description="COM_BANNERS_FIELD_PUBLISH_DOWN_DESC"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand Down
14 changes: 10 additions & 4 deletions administrator/components/com_contact/models/forms/contact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
label="COM_CONTACT_FIELD_CREATED_LABEL"
description="COM_CONTACT_FIELD_CREATED_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
filter="user_utc"
/>

Expand All @@ -129,7 +130,8 @@
class="readonly"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
filter="user_utc"
/>

Expand Down Expand Up @@ -168,7 +170,9 @@
type="calendar"
label="COM_CONTACT_FIELD_PUBLISH_UP_LABEL"
description="COM_CONTACT_FIELD_PUBLISH_UP_DESC"
format="%Y-%m-%d %H:%M:%S" size="22"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>

Expand All @@ -177,7 +181,9 @@
type="calendar"
label="COM_CONTACT_FIELD_PUBLISH_DOWN_LABEL"
description="COM_CONTACT_FIELD_PUBLISH_DOWN_DESC"
format="%Y-%m-%d %H:%M:%S" size="22"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>

Expand Down
6 changes: 4 additions & 2 deletions administrator/components/com_content/models/forms/article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@
size="22"
filter="user_utc" />

<field name="publish_down" type="calendar"
label="COM_CONTENT_FIELD_PUBLISH_DOWN_LABEL" description="COM_CONTENT_FIELD_PUBLISH_DOWN_DESC"
<field name="publish_down"
type="calendar"
label="COM_CONTENT_FIELD_PUBLISH_DOWN_LABEL"
description="COM_CONTENT_FIELD_PUBLISH_DOWN_DESC"
translateformat="true"
showtime="true"
size="22"
Expand Down
51 changes: 39 additions & 12 deletions administrator/components/com_finder/models/forms/filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,29 @@
description="JFIELD_ALIAS_DESC"
hint="JFIELD_ALIAS_PLACEHOLDER" size="45" />

<field name="created" type="calendar" label="JGLOBAL_FIELD_CREATED_LABEL"
description="JGLOBAL_FIELD_CREATED_DESC" size="22"
format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<field
name="created"
type="calendar"
label="JGLOBAL_FIELD_CREATED_LABEL"
description="JGLOBAL_FIELD_CREATED_DESC"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>

<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_FINDER_FIELD_MODIFIED_DESCRIPTION"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<field
name="modified"
type="calendar"
class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL"
description="COM_FINDER_FIELD_MODIFIED_DESCRIPTION"
translateformat="true"
showtime="true"
size="22"
readonly="true"
filter="user_utc"
/>

<field name="created_by" type="user"
label="COM_FINDER_FIELD_CREATED_BY_LABEL" description="COM_FINDER_FIELD_CREATED_BY_DESC" />
Expand Down Expand Up @@ -73,9 +89,14 @@
<option value="1">COM_FINDER_FILTER_WHEN_AFTER</option>
</field>

<field name="d1" type="calendar"
label="COM_FINDER_FILTER_START_DATE_LABEL" description="COM_FINDER_FILTER_START_DATE_DESCRIPTION"
size="22" format="%Y-%m-%d" filter="user_utc" />
<field name="d1"
type="calendar"
label="COM_FINDER_FILTER_START_DATE_LABEL"
description="COM_FINDER_FILTER_START_DATE_DESCRIPTION"
translateformat="true"
size="22"
filter="user_utc"
/>

<field
name="w2"
Expand All @@ -90,9 +111,15 @@
<option value="1">COM_FINDER_FILTER_WHEN_AFTER</option>
</field>

<field name="d2" type="calendar"
label="COM_FINDER_FILTER_END_DATE_LABEL" description="COM_FINDER_FILTER_END_DATE_DESCRIPTION"
size="22" format="%Y-%m-%d" filter="user_utc" />
<field
name="d2"
type="calendar"
label="COM_FINDER_FILTER_END_DATE_LABEL"
description="COM_FINDER_FILTER_END_DATE_DESCRIPTION"
translateformat="true"
size="22"
filter="user_utc"
/>
</fieldset>

</fields>
Expand Down
18 changes: 12 additions & 6 deletions administrator/components/com_modules/models/forms/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,25 @@
<option value="-2">JTRASHED</option>
</field>

<field name="publish_up" type="calendar"
<field
name="publish_up"
type="calendar"
label="COM_MODULES_FIELD_PUBLISH_UP_LABEL"
description="COM_MODULES_FIELD_PUBLISH_UP_DESC"
filter="user_utc"
format="%Y-%m-%d %H:%M:%S"
label="COM_MODULES_FIELD_PUBLISH_UP_LABEL"
translateformat="true"
showtime="true"
size="22"
/>

<field name="publish_down" type="calendar"
<field
name="publish_down"
type="calendar"
label="COM_MODULES_FIELD_PUBLISH_DOWN_LABEL"
description="COM_MODULES_FIELD_PUBLISH_DOWN_DESC"
filter="user_utc"
format="%Y-%m-%d %H:%M:%S"
label="COM_MODULES_FIELD_PUBLISH_DOWN_LABEL"
translateformat="true"
showtime="true"
size="22"
/>

Expand Down
12 changes: 8 additions & 4 deletions administrator/components/com_newsfeeds/models/forms/newsfeed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@
type="calendar"
label="JGLOBAL_FIELD_CREATED_LABEL"
description="JGLOBAL_FIELD_CREATED_DESC"
translateformat="true"
showtime="true"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>

Expand All @@ -166,9 +167,10 @@
label="JGLOBAL_FIELD_Modified_Label"
description="COM_NEWSFEEDS_FIELD_MODIFIED_DESC"
class="readonly"
translateformat="true"
showtime="true"
size="22"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>

Expand Down Expand Up @@ -218,8 +220,9 @@
type="calendar"
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL"
description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
translateformat="true"
showtime="true"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>

Expand All @@ -228,8 +231,9 @@
type="calendar"
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL"
description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
translateformat="true"
showtime="true"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>

Expand Down
10 changes: 6 additions & 4 deletions administrator/components/com_tags/models/forms/tag.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@
type="calendar"
class="readonly"
label="JGLOBAL_CREATED_DATE"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
description="COM_TAGS_FIELD_CREATED_DATE_DESC"
translateformat="true"
showtime="true"
filter="user_utc"
readonly="true"
/>

Expand All @@ -193,9 +194,10 @@
type="calendar"
class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
description="COM_TAGS_FIELD_MODIFIED_DESC"
translateformat="true"
showtime="true"
filter="user_utc"
readonly="true"
/>

Expand Down
39 changes: 25 additions & 14 deletions administrator/components/com_users/models/forms/note.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
label="COM_USERS_FIELD_REVIEW_TIME_LABEL"
description="COM_USERS_FIELD_REVIEW_TIME_DESC"
default="NOW"
format="%Y-%m-%d"
translateformat="true"
/>

<field
Expand Down Expand Up @@ -118,26 +118,37 @@
type="hidden"
filter="unset"
/>

<field name="publish_up" type="calendar"
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL" description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
format="%Y-%m-%d %H:%M:%S" size="22"
filter="user_utc" />

<field name="publish_down" type="calendar"
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL" description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
format="%Y-%m-%d %H:%M:%S" size="22"
filter="user_utc" />

<field
<field
name="publish_up"
type="calendar"
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL"
description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>

<field
name="publish_down"
type="calendar"
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL"
description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>

<field
name="version_note"
type="text"
label="JGLOBAL_FIELD_VERSION_NOTE_LABEL"
description="JGLOBAL_FIELD_VERSION_NOTE_DESC"
maxlength="255"
size="45"
labelclass="control-label"
/>

/>
</fieldset>
</form>
9 changes: 6 additions & 3 deletions administrator/components/com_users/models/forms/user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
label="COM_USERS_USER_FIELD_REGISTERDATE_LABEL"
description="COM_USERS_USER_FIELD_REGISTERDATE_DESC"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand All @@ -64,7 +65,8 @@
label="COM_USERS_USER_FIELD_LASTVISIT_LABEL"
description="COM_USERS_USER_FIELD_LASTVISIT_DESC"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand All @@ -76,7 +78,8 @@
label="COM_USERS_USER_FIELD_LASTRESET_LABEL"
description="COM_USERS_USER_FIELD_LASTRESET_DESC"
readonly="true"
format="%Y-%m-%d %H:%M:%S"
translateformat="true"
showtime="true"
size="22"
filter="user_utc"
/>
Expand Down
Loading

0 comments on commit 8cd1c25

Please sign in to comment.