locale of publish date fix
This commit is contained in:
1 parent
feb968a72e
commit
66df27cf0b
4 files changed
+14
-1
No files matched your search
@@ -324,8 +324,12 @@ namespace InvidiousContent
|
|||||||
else
|
else
|
||||||
return Tr(Locale.RowCell.NWeeksAgo).Replace("^n", weeks.toStr())
|
return Tr(Locale.RowCell.NWeeksAgo).Replace("^n", weeks.toStr())
|
||||||
end if
|
end if
|
||||||
else if total_days > 1
|
else if total_days > 0
|
||||||
|
if total_days = 1
|
||||||
|
return Tr(Locale.RowCell.OneDayAgo)
|
||||||
|
else
|
||||||
return Tr(Locale.RowCell.NDaysAgo).Replace("^n", total_days.toStr())
|
return Tr(Locale.RowCell.NDaysAgo).Replace("^n", total_days.toStr())
|
||||||
|
end if
|
||||||
else if span > 3600
|
else if span > 3600
|
||||||
hours = span \ 3600
|
hours = span \ 3600
|
||||||
if hours = 1
|
if hours = 1
|
||||||
|
|||||||
@@ -464,6 +464,10 @@
|
|||||||
<source>^n weeks ago</source>
|
<source>^n weeks ago</source>
|
||||||
<translation>^n weeks ago</translation>
|
<translation>^n weeks ago</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>1 day ago</source>
|
||||||
|
<translation>1 day ago</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>^n days ago</source>
|
<source>^n days ago</source>
|
||||||
<translation>^n days ago</translation>
|
<translation>^n days ago</translation>
|
||||||
|
|||||||
@@ -461,6 +461,10 @@
|
|||||||
<source>^n weeks ago</source>
|
<source>^n weeks ago</source>
|
||||||
<translation>il y a ^n semaines</translation>
|
<translation>il y a ^n semaines</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>1 day ago</source>
|
||||||
|
<translation>il y a 1 jour</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>^n days ago</source>
|
<source>^n days ago</source>
|
||||||
<translation>il y a ^n jours</translation>
|
<translation>il y a ^n jours</translation>
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ namespace Locale
|
|||||||
NMonthsAgo = "^n months ago"
|
NMonthsAgo = "^n months ago"
|
||||||
OneWeekAgo = "1 week ago"
|
OneWeekAgo = "1 week ago"
|
||||||
NWeeksAgo = "^n weeks ago"
|
NWeeksAgo = "^n weeks ago"
|
||||||
|
OneDayAgo = "1 day ago"
|
||||||
NDaysAgo = "^n days ago"
|
NDaysAgo = "^n days ago"
|
||||||
OneHourAgo = "1 hour ago"
|
OneHourAgo = "1 hour ago"
|
||||||
NHoursAgo = "^n hours ago"
|
NHoursAgo = "^n hours ago"
|
||||||
|
|||||||
Reference in new issue
Block a user