Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
a10989fe10
!10 fix(pluma-utils):Fixed garbled toolTips path in tab page with GB18030 encoding chinese translation
From: @longcheng01 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-07-20 07:16:46 +00:00
longcheng
603a394b16 fix(pluma-utils):Fixed garbled toolTips path in tab page with GB18030 encoding chinese translation 2023-07-20 11:13:23 +08:00
openeuler-ci-bot
3eeaa01544
!5 Add chinese translation
From: @longcheng01 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2022-08-03 07:40:24 +00:00
longcheng
865c2f2cdd Add chinese translation
Signed-off-by: longcheng <longcheng@kylinsec.com.cn>
2022-08-03 15:27:40 +08:00
openeuler-ci-bot
e990c0b51f
!4 add yaml file
From: @pei-jiankang 
Reviewed-by: @tanyulong2021 
Signed-off-by: @tanyulong2021
2022-05-09 08:16:30 +00:00
pei-jiankang
8ce8fc5e9e add yaml file 2022-05-08 22:44:41 +08:00
openeuler-ci-bot
63b0192891 !3 modify spec
From: @dou33
Reviewed-by: @handsome_feng
Signed-off-by: @handsome_feng
2020-12-11 16:55:46 +08:00
dou33
39e6f90e62 modify spec 2020-12-11 16:43:09 +08:00
openeuler-ci-bot
dd2abc8d85 !2 modify spec
From: @dou33
Reviewed-by: @handsome_feng
Signed-off-by: @handsome_feng
2020-12-11 16:25:10 +08:00
dou33
dd3b062ae8 modify spec 2020-12-11 16:23:13 +08:00
openeuler-ci-bot
066f6dc34e !1 package init for openEuler
From: @dou33
Reviewed-by: @handsome_feng
Signed-off-by: @handsome_feng
2020-12-11 10:46:17 +08:00
4 changed files with 82 additions and 16 deletions

View File

@ -0,0 +1,25 @@
From 728b7228074f292c4a2f400146cf4de6b1879229 Mon Sep 17 00:00:00 2001
From: liaowei <liaowei@kylinos.com.cn>
Date: Thu, 6 Aug 2020 02:17:02 -0400
Subject: [PATCH] add chinese translation
---
po/zh_CN.po | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 96066fa..eed8ec1 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -503,7 +503,7 @@ msgstr ""
#: ../data/pluma.desktop.in.in.h:1
msgid "Pluma"
-msgstr "Pluma"
+msgstr "文本编辑器"
#: ../data/pluma.desktop.in.in.h:2 ../pluma/pluma-print-job.c:760
msgid "Text Editor"
--
2.18.1

View File

@ -0,0 +1,38 @@
From a96a0a3207f0ff36d13f30a1c1b83edf420b3a23 Mon Sep 17 00:00:00 2001
From: luoqing <luoqing@kylinsec.com.cn>
Date: Thu, 20 Jul 2023 10:58:23 +0800
Subject: [PATCH] fix(pluma-utils):Fixed garbled toolTips path in tab page with
GB18030 encoding
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复在GB18030编码下tab页中toolTips的路径乱码
Related #7248
---
pluma/pluma-utils.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/pluma/pluma-utils.c b/pluma/pluma-utils.c
index a721695..334ef7b 100644
--- a/pluma/pluma-utils.c
+++ b/pluma/pluma-utils.c
@@ -1351,9 +1351,12 @@ pluma_utils_uri_for_display (const gchar *uri)
{
GFile *gfile;
gchar *parse_name;
-
+ gchar *get_path;
gfile = g_file_new_for_uri (uri);
- parse_name = g_file_get_parse_name (gfile);
+ // parse_name = g_file_get_parse_name (gfile);
+
+ get_path = g_file_get_path(gfile);
+ parse_name = g_locale_to_utf8(get_path, -1, NULL, NULL, NULL);
g_object_unref (gfile);
return parse_name;
--
2.27.0

View File

@ -15,19 +15,15 @@
Summary: Text editor for the MATE desktop
Name: pluma
Version: %{branch}.2
%if 0%{?rel_build}
Release: 1
%else
Release: 0.7%{?git_rel}
%endif
Release: 4
License: GPLv2+ and LGPLv2+
URL: http://mate-desktop.org
# for downloading the tarball use 'spectool -g -R pluma.spec'
# Source for release-builds.
%{?rel_build:Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz}
# Source for snapshot-builds.
%{!?rel_build:Source0: http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}}
Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz
# https://github.com/mate-desktop/pluma/commit/e88a2ea
Patch1: pluma_0001-Reindent-all-Python-sources-to-ts-4.-Strip-trailing-1.22.patch
@ -41,6 +37,8 @@ Patch4: pluma_0001-externaltools-plugin-change-code-for-Python-2-3-comp.p
Patch5: pluma_0001-snippets-plugin-change-code-for-Python-2-3-compatibi.patch
# https://github.com/mate-desktop/pluma/pull/437
Patch6: pluma_0001-Switch-to-Python-3.patch
Patch7: 0001-add-chinese-translation.patch
Patch8: 0001-fix-pluma-utils-Fixed-garbled-toolTips-path-in-tab-p.patch
BuildRequires: desktop-file-utils
BuildRequires: enchant-devel
@ -60,10 +58,6 @@ Requires: mate-desktop-libs
# Requires: caja-schemas
# the run-command plugin uses zenity
Requires: zenity
# libpeas isn't splited in rhel7
%if 0%{?fedora} && 0%{?fedora} <= 29
Requires: libpeas-loader-python3
%endif
%description
pluma is a small, but powerful text editor designed specifically for
@ -95,11 +89,7 @@ Development files for pluma
%prep
%if 0%{?rel_build}
%autosetup -p1
%else
%autosetup -n %{name}-%{commit} -p1
%endif
%if 0%{?rel_build}
# for releases
@ -169,5 +159,14 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
%changelog
* Thu Jul 20 2023 longcheng <longcheng@kylinos.com.cn> - 1.22.2-4
- fix(pluma-utils):Fixed garbled toolTips path in tab page with GB18030 encoding chinese translation
* Thu Jul 28 2022 longcheng <longcheng@kylinos.com.cn> - 1.22.2-3
- Add chinese translation
* Fri Dec 11 2020 douyan <douyan@kylinos.cn> - 1.22.2-2
- modify spec file
* Fri Dec 11 2020 douyan <douyan@kylinos.cn> - 1.22.2-1
- package init for openEuler

4
pluma.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mate-desktop/pluma
tag_prefix: "^v"
separator: "."