[PATCH]gnome-desktop3: translate date to chinese

category: bugfix
bugzilla: https://gitee.com/src-openeuler/gnome-desktop3/issues/I667H6?from=project-issue

Signed-off-by: Guangzhong Yao <yaoguangzhong@xfusion.com>
This commit is contained in:
yaoguangzhong 2022-12-14 17:46:29 +08:00
parent 0450296645
commit a4232a2a47
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From d6146318dc313ff0576d256edb06ef3378b3c8e8 Mon Sep 17 00:00:00 2001
From: wangweichao <wangweichao@xfusion.com>
Date: Fri, 2 Sep 2022 16:11:06 +0800
Subject: [PATCH] translate date on gnome desktop to chinese
---
po/zh_CN.po | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 8b1c01e..7df1d83 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -144,6 +144,12 @@ msgstr "%-m月%-e日 %A, %p %-l:%M:%S"
msgid "%a %b %e, %l:%M %p"
msgstr "%-m月%-e日 %A, %p %-l:%M"
+msgid "%b %-e_%R"
+msgstr "%b%-e日_%R"
+
+msgid "%b %-e_%l:%M %p"
+msgstr "%b %-e日_%l:%M %p"
+
#. Translators: This is a time format with day used
#. for AM/PM.
#: ../libgnome-desktop/gnome-wall-clock.c:320
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: gnome-desktop3
Version: 3.30.1
Release: 3
Release: 4
Summary: GNOME is designed to help you use your computer in control.
License: GPLv2+ and LGPLv2+
URL: http://www.gnome.org
@ -17,6 +17,8 @@ Requires: gdk-pixbuf2 >= 2.36.5 gsettings-desktop-schemas >= 3.27.0
Conflicts: gnome-shell < 3.7.90
Obsoletes: compat-gnome-desktop310 < 3.12
Patch1: gnome-desktop-translate-date-to-chinese.patch
%description
The gnome-desktop3 package has been designed from the ground up to help you have
the best computing experience.
@ -65,6 +67,11 @@ Development files for gnome-desktop3.
%exclude %{_libdir}/*.la
%changelog
* Wed Dec 14 2022 yaoguangzhong <yaoguangzhong@xfusion.com> - 3.30.1-4
- Type:bugfix
- CVE:
- DESC:translate date on gnome desktop to chinese with 12-hour time system
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.30.1-3
- change the path of files