Fixed relative time format
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Jul 2013 12:22:27 +0000 (14:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Jul 2013 12:22:27 +0000 (14:22 +0200)
com.woltlab.wcf/templates/headInclude.tpl
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/js/WCF.js
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 27c576d61fe2635442d0c8adb556dad373911eaf..8f0e5b9439b38d74b83fbfd0bc6a8c8c3d5dac31 100644 (file)
@@ -82,6 +82,7 @@
                        '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}',
index 6e240d6fd143d83f98af99319d76baee7cdfd2d1..2ddb3d63de8af3ab4f54b720c1f061def6d79102 100644 (file)
@@ -53,6 +53,7 @@
                                '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}',
index 1df469939960d6a4831ff5bd24a15dbee5f098f0..b66e44fbf2b0e4a01502ab821d811cc934c77d52 100755 (executable)
@@ -2908,7 +2908,7 @@ WCF.Date.Time = Class.extend({
                }
                // 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));
                }
        }
index 237a7a438849345b5f3b35c61827fef90e716be1..cc525e8817e553a1decdc5088676b8978da0af38 100644 (file)
@@ -1418,7 +1418,8 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getAllowedExtensions()
        <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>
index b85ee58438c3108cd73ed7f0c939d920a88f9dda..cadc06f4d960606dc2299ee30bca6df741cbc41e 100644 (file)
@@ -1416,7 +1416,8 @@ Allowed extensions: {', '|implode:$attachmentHandler->getAllowedExtensions()}]]>
        <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>