'wcf.date.relative.pastDays': '{capture assign=relativePastDays}{lang}wcf.date.relative.pastDays{/lang}{/capture}{@$relativePastDays|encodeJS}',
'wcf.date.dateFormat': '{lang}wcf.date.dateFormat{/lang}',
'wcf.date.dateTimeFormat': '{lang}wcf.date.dateTimeFormat{/lang}',
+ 'wcf.date.shortDateTimeFormat': '{lang}wcf.date.shortDateTimeFormat{/lang}',
'wcf.date.hour': '{lang}wcf.date.hour{/lang}',
'wcf.date.minute': '{lang}wcf.date.minute{/lang}',
'wcf.date.timeFormat': '{lang}wcf.date.timeFormat{/lang}',
'wcf.date.relative.pastDays': '{capture assign=relativePastDays}{lang}wcf.date.relative.pastDays{/lang}{/capture}{@$relativePastDays|encodeJS}',
'wcf.date.dateFormat': '{lang}wcf.date.dateFormat{/lang}',
'wcf.date.dateTimeFormat': '{lang}wcf.date.dateTimeFormat{/lang}',
+ 'wcf.date.shortDateTimeFormat': '{lang}wcf.date.shortDateTimeFormat{/lang}',
'wcf.date.hour': '{lang}wcf.date.hour{/lang}',
'wcf.date.minute': '{lang}wcf.date.minute{/lang}',
'wcf.date.timeFormat': '{lang}wcf.date.timeFormat{/lang}',
}
// timestamp is between ~700 million years BC and last week
else {
- var $string = WCF.Language.get('wcf.date.dateTimeFormat');
+ var $string = WCF.Language.get('wcf.date.shortDateTimeFormat');
$element.text($string.replace(/\%date\%/, $date).replace(/\%time\%/, $time));
}
}
<category name="wcf.date">
<item name="wcf.date.dateFormat"><![CDATA[j. F Y]]></item>
<item name="wcf.date.timeFormat"><![CDATA[H:i]]></item>
- <item name="wcf.date.dateTimeFormat"><![CDATA[%date%]]></item>
+ <item name="wcf.date.dateTimeFormat"><![CDATA[%date%, %time%]]></item>
+ <item name="wcf.date.shortDateTimeFormat"><![CDATA[%date%]]></item>
<item name="wcf.date.interval.days.past"><![CDATA[Vor {if $days > 1}{#$days} Tagen{else}einem Tag{/if}]]></item>
<item name="wcf.date.interval.full.past"><![CDATA[Vor {if $years}{if $years > 1}{#$years} Jahren{else}einem Jahr{/if}{/if}{if $months}{if $firstElement != 'months'}{if $lastElement == 'months'} und {else}, {/if}{/if}{if $months > 1}{#$months} Monaten{else}einem Monat{/if}{/if}{if $weeks}{if $firstElement != 'weeks'}{if $lastElement == 'weeks'} und {else}, {/if}{/if}{if $weeks > 1}{#$weeks} Wochen{else}einer Woche{/if}{/if}{if $days}{if $firstElement != 'days'}{if $lastElement == 'days'} und {else}, {/if}{/if}{if $days > 1}{#$days} Tagen{else}einem Tag{/if}{/if}{if $hours}{if $firstElement != 'hours'}{if $lastElement == 'hours'} und {else}, {/if}{/if}{if $hours > 1}{#$hours} Stunden{else}einer Stunde{/if}{/if}{if $minutes}{if $firstElement != 'minutes' && $lastElement == 'minutes'} und {/if}{if $minutes > 1}{#$minutes} Minuten{else}einer Minute{/if}{/if}]]></item>
<category name="wcf.date">
<item name="wcf.date.dateFormat"><![CDATA[M jS Y]]></item>
<item name="wcf.date.timeFormat"><![CDATA[g:ia]]></item>
- <item name="wcf.date.dateTimeFormat"><![CDATA[%date%]]></item>
+ <item name="wcf.date.dateTimeFormat"><![CDATA[%date%, %time%]]></item>
+ <item name="wcf.date.shortDateTimeFormat"><![CDATA[%date%]]></item>
<item name="wcf.date.interval.days.past"><![CDATA[{if $days > 1}{#$days} days{else}A day{/if} ago]]></item>
<item name="wcf.date.interval.full.past"><![CDATA[{if $years}{if $years > 1}{#$years} years{else}A year{/if}{/if}{if $months}{if $firstElement != 'months'}{if $firstElement != 'months'}{if $lastElement == 'months'} and {else}, {/if}{/if}{#$months} months{else}{if $firstElement == 'months'}A{else}a{/if} month{/if}{/if}{if $weeks}{if $firstElement != 'weeks'}{if $lastElement == 'weeks'} and {else}, {/if}{/if}{if $weeks > 1}{#$weeks} weeks{else}{if $firstElement == 'weeks'}A{else}a{/if} week{/if}{/if}{if $days}{if $firstElement != 'days'}{if $lastElement == 'days'} and {else}, {/if}{/if}{if $days > 1}{#$days} days{else}{if $firstElement == 'days'}A{else}a{/if} day{/if}{/if}{if $hours}{if $firstElement != 'hours'}{if $lastElement == 'hours'} and {else}, {/if}{/if}{if $hours > 1}{#$hours} hours{else}{if $firstElement == 'hours'}An{else}an{/if} hour{/if}{/if}{if $minutes}{if $firstElement != 'minutes' && $lastElement == 'minutes'} and {/if}{if $minutes > 1}{#$minutes} minutes{else}{if $firstElement == 'minutes'}A{else}a{/if} minute{/if}{/if} ago]]></item>