File tree Expand file tree Collapse file tree 10 files changed +13
-1
lines changed Expand file tree Collapse file tree 10 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 443
443
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Einfügen</x : String >
444
444
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >Gerade eben</x : String >
445
445
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >Vor {0} Minuten</x : String >
446
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >Vor 1 Stunde</x : String >
446
447
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >Vor {0} Stunden</x : String >
447
448
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Gestern</x : String >
448
449
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >Vor {0} Tagen</x : String >
Original file line number Diff line number Diff line change 444
444
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Paste</x : String >
445
445
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >Just now</x : String >
446
446
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >{0} minutes ago</x : String >
447
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >1 hour ago</x : String >
447
448
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >{0} hours ago</x : String >
448
449
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Yesterday</x : String >
449
450
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >{0} days ago</x : String >
Original file line number Diff line number Diff line change 447
447
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Pegar</x : String >
448
448
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >Justo ahora</x : String >
449
449
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >Hace {0} minutos</x : String >
450
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >Hace 1 hora</x : String >
450
451
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >Hace {0} horas</x : String >
451
452
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Ayer</x : String >
452
453
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >Hace {0} días</x : String >
Original file line number Diff line number Diff line change 422
422
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Coller</x : String >
423
423
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >A l'instant</x : String >
424
424
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >il y a {0} minutes</x : String >
425
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >il y a 1 heure</x : String >
425
426
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >il y a {0} heures</x : String >
426
427
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Hier</x : String >
427
428
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >il y a {0} jours</x : String >
Original file line number Diff line number Diff line change 448
448
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Incolla</x : String >
449
449
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >Proprio ora</x : String >
450
450
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >{0} minuti fa</x : String >
451
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >1 ora fa</x : String >
451
452
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >{0} ore fa</x : String >
452
453
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Ieri</x : String >
453
454
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >{0} giorni fa</x : String >
Original file line number Diff line number Diff line change 435
435
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Colar</x : String >
436
436
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >Agora mesmo</x : String >
437
437
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >{0} minutos atrás</x : String >
438
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >1 hora atrás</x : String >
438
439
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >{0} horas atrás</x : String >
439
440
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Ontem</x : String >
440
441
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >{0} dias atrás</x : String >
Original file line number Diff line number Diff line change 448
448
<x : String x : Key =" Text.Paste" xml : space =" preserve" >Вставить</x : String >
449
449
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >Сейчас</x : String >
450
450
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >{0} минут назад</x : String >
451
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >1 час назад</x : String >
451
452
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >{0} часов назад</x : String >
452
453
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >Вчера</x : String >
453
454
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >{0} дней назад</x : String >
Original file line number Diff line number Diff line change 447
447
<x : String x : Key =" Text.Paste" xml : space =" preserve" >粘贴</x : String >
448
448
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >刚刚</x : String >
449
449
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >{0}分钟前</x : String >
450
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >1小时前</x : String >
450
451
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >{0}小时前</x : String >
451
452
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >昨天</x : String >
452
453
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >{0}天前</x : String >
Original file line number Diff line number Diff line change 447
447
<x : String x : Key =" Text.Paste" xml : space =" preserve" >貼上</x : String >
448
448
<x : String x : Key =" Text.Period.JustNow" xml : space =" preserve" >剛剛</x : String >
449
449
<x : String x : Key =" Text.Period.MinutesAgo" xml : space =" preserve" >{0} 分鐘前</x : String >
450
+ <x : String x : Key =" Text.Period.HourAgo" xml : space =" preserve" >1 小時前</x : String >
450
451
<x : String x : Key =" Text.Period.HoursAgo" xml : space =" preserve" >{0} 小時前</x : String >
451
452
<x : String x : Key =" Text.Period.Yesterday" xml : space =" preserve" >昨天</x : String >
452
453
<x : String x : Key =" Text.Period.DaysAgo" xml : space =" preserve" >{0} 天前</x : String >
Original file line number Diff line number Diff line change @@ -129,7 +129,10 @@ private string GetDisplayText()
129
129
return App . Text ( "Period.MinutesAgo" , ( int ) span . TotalMinutes ) ;
130
130
131
131
if ( span . TotalDays < 1 )
132
- return App . Text ( "Period.HoursAgo" , ( int ) span . TotalHours ) ;
132
+ {
133
+ var hours = ( int ) span . TotalHours ;
134
+ return hours == 1 ? App . Text ( "Period.HourAgo" ) : App . Text ( "Period.HoursAgo" , hours ) ;
135
+ }
133
136
134
137
var lastDay = now . AddDays ( - 1 ) . Date ;
135
138
if ( localTime >= lastDay )
You can’t perform that action at this time.
0 commit comments