Compare commits
11 Commits
83ac57b416
...
a10989fe10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a10989fe10 | ||
|
|
603a394b16 | ||
|
|
3eeaa01544 | ||
|
|
865c2f2cdd | ||
|
|
e990c0b51f | ||
|
|
8ce8fc5e9e | ||
|
|
63b0192891 | ||
|
|
39e6f90e62 | ||
|
|
dd2abc8d85 | ||
|
|
dd3b062ae8 | ||
|
|
066f6dc34e |
25
0001-add-chinese-translation.patch
Normal file
25
0001-add-chinese-translation.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
31
pluma.spec
31
pluma.spec
@ -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
4
pluma.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: mate-desktop/pluma
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user