[packages/xchm] - added new pl.po-update patch - package Greek translation (in proper directory)

qboosh qboosh at pld-linux.org
Sat Jan 25 16:11:21 CET 2014


commit 6120c53f596837e50d478e7bb6d327103e606dc6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 25 16:12:42 2014 +0100

    - added new pl.po-update patch
    - package Greek translation (in proper directory)

 xchm-pl.po-update.patch | 77 +++++++++++++++++++++++++++++++++++++++++++++++++
 xchm.spec               |  9 ++++--
 2 files changed, 84 insertions(+), 2 deletions(-)
---
diff --git a/xchm.spec b/xchm.spec
index cb01a63..5cdb2cd 100644
--- a/xchm.spec
+++ b/xchm.spec
@@ -14,8 +14,9 @@ Source0:	http://downloads.sourceforge.net/xchm/%{name}-%{version}.tar.gz
 # Source0-md5:	486d029bd81071a2d04e7181909b1602
 Source1:	%{name}.desktop
 Patch0:		wxWidgets3.patch
+Patch1:		%{name}-pl.po-update.patch
 URL:		http://xchm.sourceforge.net/
-BuildRequires:	autoconf
+BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	chmlib-devel
 BuildRequires:	gettext-devel >= 0.14.3
@@ -39,6 +40,7 @@ CHMLIB Jeda Winga, z użyciem wxWidgets.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %{__rm} po/stamp-po
 
@@ -63,8 +65,10 @@ install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
 install art/xchm-48.xpm	$RPM_BUILD_ROOT%{_pixmapsdir}/xchm.xpm
 install %{SOURCE1}	$RPM_BUILD_ROOT%{_desktopdir}
 
+# unify to short code pt=pt_PT
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT,pt}
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/gr
+# fix Greek language code
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{gr,el}
 
 %find_lang %{name}
 
@@ -82,4 +86,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS ChangeLog README %{?with_xmlrpc:README.xmlrpc}
 %attr(755,root,root) %{_bindir}/xchm
 %{_desktopdir}/xchm.desktop
+%{_pixmapsdir}/xchm*.png
 %{_pixmapsdir}/xchm*.xpm
diff --git a/xchm-pl.po-update.patch b/xchm-pl.po-update.patch
new file mode 100644
index 0000000..c875273
--- /dev/null
+++ b/xchm-pl.po-update.patch
@@ -0,0 +1,77 @@
+--- xchm-1.23/po/pl.po.orig	2013-08-30 10:32:57.000000000 +0200
++++ xchm-1.23/po/pl.po	2014-01-25 16:01:16.645507496 +0100
+@@ -1,15 +1,15 @@
+ # Polish translation for xchm.
+ # This file is distributed under the same license as the xchm package.
+-# Jakub Bogusz <qboosh at pld-linux.org>, 2004-2011.
++# Jakub Bogusz <qboosh at pld-linux.org>, 2004-2014.
+ #
+ # vi:encoding=utf-8
+ #
+ msgid ""
+ msgstr ""
+-"Project-Id-Version: xchm 1.20\n"
++"Project-Id-Version: xchm 1.23\n"
+ "Report-Msgid-Bugs-To: \n"
+ "POT-Creation-Date: 2013-08-30 11:32+0300\n"
+-"PO-Revision-Date: 2011-05-20 16:45+0200\n"
++"PO-Revision-Date: 2014-01-25 15:58+0100\n"
+ "Last-Translator: Jakub Bogusz <qboosh at pld-linux.org>\n"
+ "Language-Team: Polish <translation-team-pl at lists.sourceforge.net>\n"
+ "Language: pl\n"
+@@ -86,9 +86,8 @@
+ msgstr "Wydruk aktualnie wyświetlanej strony."
+ 
+ #: src/chmframe.cpp:52
+-#, fuzzy
+ msgid "Toggle table of contents."
+-msgstr "Odtwarzanie spisu treści..."
++msgstr "Przełączenie spisu treści."
+ 
+ #: src/chmframe.cpp:53
+ msgid "Go to the book's start page."
+@@ -116,7 +115,7 @@
+ 
+ #: src/chmframe.cpp:59
+ msgid "Toggle fullscreen mode."
+-msgstr ""
++msgstr "Przełączenie trybu pełnoekranowego."
+ 
+ #: src/chmframe.cpp:60
+ msgid "Close the current tab"
+@@ -236,7 +235,7 @@
+ 
+ #: src/chmframe.cpp:824
+ msgid "Toggle &fullscreen\tF11"
+-msgstr ""
++msgstr "Pełny &ekran\tF11"
+ 
+ #: src/chmframe.cpp:828
+ msgid "&File"
+@@ -244,7 +243,7 @@
+ 
+ #: src/chmframe.cpp:829
+ msgid "&View"
+-msgstr ""
++msgstr "&Widok"
+ 
+ #: src/chmframe.cpp:830
+ msgid "&Edit"
+@@ -304,7 +303,7 @@
+ 
+ #: src/chmframe.cpp:1039
+ msgid "Fullscreen"
+-msgstr ""
++msgstr "Pełny ekran"
+ 
+ #: src/chmframe.cpp:1044
+ msgid "Back"
+@@ -352,7 +351,7 @@
+ 
+ #: src/chmhtmlwindow.cpp:59
+ msgid "&Toggle fullscreen mode"
+-msgstr ""
++msgstr "&Przełącz tryb pełnoekranowy"
+ 
+ #: src/chmhtmlwindow.cpp:307
+ msgid "OpenFile("
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xchm.git/commitdiff/6120c53f596837e50d478e7bb6d327103e606dc6



More information about the pld-cvs-commit mailing list