mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-28 15:45:00 +00:00
optimize<Statistics>: use localized text for weekdays
This commit is contained in:
parent
c52ed4a711
commit
4ef2a70ebd
3 changed files with 17 additions and 2 deletions
|
@ -8,7 +8,6 @@ namespace SourceGit.Views {
|
|||
/// 提交统计
|
||||
/// </summary>
|
||||
public partial class Statistics : Controls.Window {
|
||||
private static readonly string[] WEEK_DAYS = new string[] { "一", "二", "三", "四", "五", "六", "日" };
|
||||
private string repo = null;
|
||||
|
||||
public Statistics(string repo) {
|
||||
|
@ -25,7 +24,7 @@ namespace SourceGit.Views {
|
|||
var mapsWeek = new Dictionary<int, Models.StatisticSample>();
|
||||
for (int i = 0; i < 7; i++) {
|
||||
mapsWeek.Add(i, new Models.StatisticSample {
|
||||
Name = $"星期{WEEK_DAYS[i]}",
|
||||
Name = App.Text($"Weekday.{i}"),
|
||||
Count = 0,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue