Page tree

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


Purpose

  • Required:  No
  • Type of Change:  Bug Fix

Skin expressions using string.format with #date do not work on all languages. If a user selects a language in MediaPortal that does not use 'd, m, y' to specify date formats, it results in a format exception error when using string.format.

Description of Change

A new GUI property, #date.local has been added for skinners who wish to use string.format with dates. 

Thus skins can add skin settings allowing users to select optional date formats not supported by MediaPortal Home plugin.

Additional Information and References

 

Issue #:

MP1-4541

Related xml(s):

common.time.xml (or any that use #date)

Windows IDs:

n/a

Related control:

n/a

Related Subsystem: 

 

Author:

Dadeo

Date added:

Fri, 25 Jul 2014

XML/Code Samples

Example using

common.time.xml

from Titan skin:

<description>Date</description>
<id>0</id>
<type>label</type>
<posX>1845</posX>
<posY>96</posY>
<font>TitanLight12</font>
<textcolor>ffffff</textcolor>
 <label>#(string.format('{0:ddd dd MMM}', cdate(#date.local)))</label>
<align>right</align>
<visible>[[window.isvisible(35) | window.isvisible(0)] | [!window.isvisible(35) + !window.isvisible(0) + !window.isvisible(96742) + !window.isvisible(7111992)] | [window.isvisible(96742) + Control.IsVisible(50)] | [window.isvisible(96742) + Control.IsVisible(51)]] + !plugin.isenabled(World Weather)</visible>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>

Screenshots

Using the above

common.time.xml

example in Titan skin:

   

 

This page has no comments.