From 4b6026b4ff79688dd72ea0d08e4386b10d4fc22c Mon Sep 17 00:00:00 2001 From: peijiankang Date: Wed, 28 Dec 2022 17:23:53 +0800 Subject: [PATCH] Change the folder attribute Time Modified to Time Created --- ...ribute-Time-Modified-to-Time-Created.patch | 67 +++++++++++++++++++ peony.spec | 7 +- 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 0001-Change-the-folder-attribute-Time-Modified-to-Time-Created.patch diff --git a/0001-Change-the-folder-attribute-Time-Modified-to-Time-Created.patch b/0001-Change-the-folder-attribute-Time-Modified-to-Time-Created.patch new file mode 100644 index 0000000..33c7538 --- /dev/null +++ b/0001-Change-the-folder-attribute-Time-Modified-to-Time-Created.patch @@ -0,0 +1,67 @@ +From 59c704e8afe87e9219014778faed4db7d3377339 Mon Sep 17 00:00:00 2001 +From: peijiankang +Date: Wed, 28 Dec 2022 17:21:54 +0800 +Subject: [PATCH] Change the folder attribute Time Modified to Time Created + +--- + libpeony-qt/controls/property-page/basic-properties-page.cpp | 2 +- + translations/libpeony-qt/libpeony-qt_tr.ts | 4 ++-- + translations/libpeony-qt/libpeony-qt_zh_CN.ts | 4 ++-- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/libpeony-qt/controls/property-page/basic-properties-page.cpp b/libpeony-qt/controls/property-page/basic-properties-page.cpp +index 2d4c7fc..73fd2db 100644 +--- a/libpeony-qt/controls/property-page/basic-properties-page.cpp ++++ b/libpeony-qt/controls/property-page/basic-properties-page.cpp +@@ -386,7 +386,7 @@ void BasicPropertiesPage::initFloorThree(BasicPropertiesPage::FileType fileType) + case BP_MultipleFIle: + case BP_Folder: + m_timeCreatedLabel = this->createFixedLabel(0,32,floor3); +- layout3->addRow(this->createFixedLabel(m_labelWidth,32,tr("Time Modified:"),floor3), m_timeCreatedLabel); ++ layout3->addRow(this->createFixedLabel(m_labelWidth,32,tr("Time Created:"),floor3), m_timeCreatedLabel); + default: + break; + } +diff --git a/translations/libpeony-qt/libpeony-qt_tr.ts b/translations/libpeony-qt/libpeony-qt_tr.ts +index 01c67c8..f85ef21 100644 +--- a/translations/libpeony-qt/libpeony-qt_tr.ts ++++ b/translations/libpeony-qt/libpeony-qt_tr.ts +@@ -607,13 +607,13 @@ + + + ++ + Time Created: +- Oluşturma Zamanı: ++ Oluşturma Zamanı: + + + + +- + Time Modified: + Değiştirme Zamanı: + +diff --git a/translations/libpeony-qt/libpeony-qt_zh_CN.ts b/translations/libpeony-qt/libpeony-qt_zh_CN.ts +index 9bf2358..3d74b7a 100644 +--- a/translations/libpeony-qt/libpeony-qt_zh_CN.ts ++++ b/translations/libpeony-qt/libpeony-qt_zh_CN.ts +@@ -612,13 +612,13 @@ + yyyy年MM月dd日, hh:mm:ss AP + + ++ + Time Created: +- 创建时间: ++ 创建时间: + + + + +- + Time Modified: + 修改时间: + +-- +2.33.0 + diff --git a/peony.spec b/peony.spec index 63d3431..d1fa2b7 100644 --- a/peony.spec +++ b/peony.spec @@ -2,11 +2,12 @@ Name: peony Version: 3.2.4 -Release: 4 +Release: 5 Summary: file Manager for the UKUI desktop License: GPL-3.0-or-later and MIT and BSD-3-Clause URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz +Patch01: 0001-Change-the-folder-attribute-Time-Modified-to-Time-Created.patch BuildRequires: libudisks2-devel BuildRequires: libnotify-devel @@ -77,6 +78,7 @@ Provides: libpeony %prep %setup -q +%patch01 -p1 %build qmake-qt5 @@ -132,6 +134,9 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/%{_lib}/*.so %changelog +* Wed Dec 28 2022 peijiankang - 3.2.4-5 +- Change the folder attribute Time Modified to Time Created + * Wed Jul 13 2022 peijiankang - 3.2.4-4 - add qt5-qttranslations