diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml
index ef8ffd06..e40f4648 100644
--- a/src/Resources/Locales/en_US.axaml
+++ b/src/Resources/Locales/en_US.axaml
@@ -341,6 +341,15 @@
Copy Repository Path
Repositories
Paste
+ Just now
+ {0} minutes ago
+ {0} hours ago
+ Yesterday
+ {0} days ago
+ Last month
+ {0} months ago
+ Last year
+ {0} years ago
Preference
APPEARANCE
Default Font
diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml
index 20265dab..15700de7 100644
--- a/src/Resources/Locales/zh_CN.axaml
+++ b/src/Resources/Locales/zh_CN.axaml
@@ -1,6 +1,6 @@
-
+
关于软件
关于本软件
@@ -344,6 +344,15 @@
复制仓库路径
新标签页
粘贴
+ 刚刚
+ {0}分钟前
+ {0}小时前
+ 昨天
+ {0}天前
+ 上个月
+ {0}个月前
+ 一年前
+ {0}年前
偏好设置
外观配置
缺省字体
diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml
index 70b7bbf1..569f6b62 100644
--- a/src/Resources/Locales/zh_TW.axaml
+++ b/src/Resources/Locales/zh_TW.axaml
@@ -1,6 +1,6 @@
-
+
關於軟體
關於本軟體
@@ -344,6 +344,15 @@
複製倉庫路徑
新標籤頁
貼上
+ 剛剛
+ {0}分鐘前
+ {0}小時前
+ 昨天
+ {0}天前
+ 上個月
+ {0}個月前
+ 一年前
+ {0}年前
偏好設定
外觀配置
預設字型
diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs
index 13be40c6..9e1bae46 100644
--- a/src/Views/Histories.axaml.cs
+++ b/src/Views/Histories.axaml.cs
@@ -139,7 +139,7 @@ namespace SourceGit.Views
});
return true;
- }, TimeSpan.FromSeconds(4));
+ }, TimeSpan.FromSeconds(10));
}
private void StopTimer()
@@ -164,9 +164,9 @@ namespace SourceGit.Views
var now = DateTime.Now;
var timespan = now - committerTime;
if (timespan.TotalHours > 1)
- return $"{(int)timespan.TotalHours} hours ago";
+ return App.Text("Period.HoursAgo", (int)timespan.TotalHours);
- return timespan.TotalMinutes < 1 ? "Just now" : $"{(int)timespan.TotalMinutes} minutes ago";
+ return timespan.TotalMinutes < 1 ? App.Text("Period.JustNow") : App.Text("Period.MinutesAgo", (int)timespan.TotalMinutes);
}
var diffYear = today.Year - committerTime.Year;
@@ -174,13 +174,13 @@ namespace SourceGit.Views
{
var diffMonth = today.Month - committerTime.Month;
if (diffMonth > 0)
- return diffMonth == 1 ? "Last month" : $"{diffMonth} months ago";
+ return diffMonth == 1 ? App.Text("Period.LastMonth") : App.Text("Period.MonthsAgo", diffMonth);
var diffDay = today.Day - committerTime.Day;
- return diffDay == 1 ? "Yesterday" : $"{diffDay} days ago";
+ return diffDay == 1 ? App.Text("Period.Yesterday") : App.Text("Period.DaysAgo", diffDay);
}
- return diffYear == 1 ? "Last year" : $"{diffYear} years ago";
+ return diffYear == 1 ? App.Text("Period.LastYear") : App.Text("Period.YearsAgo", diffYear);
}
private IDisposable _refreshTimer = null;