From: Jakub Bogusz Date: Sat, 25 Jan 2014 15:12:42 +0000 (+0100) Subject: - added new pl.po-update patch X-Git-Tag: auto/th/xchm-1.23-4~2 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fxchm.git;a=commitdiff_plain;h=6120c53f596837e50d478e7bb6d327103e606dc6 - added new pl.po-update patch - package Greek translation (in proper directory) --- 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 , 2004-2011. ++# Jakub Bogusz , 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 \n" + "Language-Team: Polish \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(" 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