From 0d23dd6a8a266536fa01d7d0574fc7a24443643765616449d1f874938a8c54e3 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Fri, 29 Nov 2024 23:33:20 +0000 Subject: [PATCH 1/6] Accepting request 1227383 from home:sbrabec:branches:M17N - Update to version 0.20241115.cac1c69... - Add URLs. OBS-URL: https://build.opensuse.org/request/show/1227383 OBS-URL: https://build.opensuse.org/package/show/M17N/translate-suse-desktop?expand=0&rev=5 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 16 +++++ _servicedata | 4 ++ ...top-translations-0.20240907.481ec87.tar.xz | 3 + ...top-translations-0.20241004.009da54.tar.xz | 3 + ...top-translations-0.20241115.cac1c69.tar.xz | 3 + translate-suse-desktop.changes | 38 ++++++++++++ translate-suse-desktop.spec | 58 +++++++++++++++++++ translate_suse_desktop.macro | 6 ++ translate_suse_desktop.sh | 24 ++++++++ 11 files changed, 179 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 suse-desktop-translations-0.20240907.481ec87.tar.xz create mode 100644 suse-desktop-translations-0.20241004.009da54.tar.xz create mode 100644 suse-desktop-translations-0.20241115.cac1c69.tar.xz create mode 100644 translate-suse-desktop.changes create mode 100644 translate-suse-desktop.spec create mode 100644 translate_suse_desktop.macro create mode 100644 translate_suse_desktop.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e86b50e --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + git + %cd.%h + 0 + enable +opensuse-packaging@opensuse.org +refs/heads/main + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..eed8633 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + cac1c69b28b3d9c97c7e35fb64e455b3f3f5490d \ No newline at end of file diff --git a/suse-desktop-translations-0.20240907.481ec87.tar.xz b/suse-desktop-translations-0.20240907.481ec87.tar.xz new file mode 100644 index 0000000..706717b --- /dev/null +++ b/suse-desktop-translations-0.20240907.481ec87.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d4999b7663a25af8cb34e80e310efc7bc93a58b2c5c9dccd39a2e07b07e1167 +size 23404 diff --git a/suse-desktop-translations-0.20241004.009da54.tar.xz b/suse-desktop-translations-0.20241004.009da54.tar.xz new file mode 100644 index 0000000..4b92ffc --- /dev/null +++ b/suse-desktop-translations-0.20241004.009da54.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3855653e80ac4914bb212afa96aa66c68565ebc17414724e172bff89186ca11d +size 26020 diff --git a/suse-desktop-translations-0.20241115.cac1c69.tar.xz b/suse-desktop-translations-0.20241115.cac1c69.tar.xz new file mode 100644 index 0000000..9fb98de --- /dev/null +++ b/suse-desktop-translations-0.20241115.cac1c69.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a679805c97061a8faf7bbb32cd0a9518a2024fa0510a25ce7757c83f57e3c46 +size 26200 diff --git a/translate-suse-desktop.changes b/translate-suse-desktop.changes new file mode 100644 index 0000000..053f5e6 --- /dev/null +++ b/translate-suse-desktop.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +Fri Nov 29 22:11:19 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241115.cac1c69: + * Translated using Weblate (Norwegian Bokmål (nb)) + * Translated using Weblate (Turkish) + * Translated using Weblate (Georgian) + * Translated using Weblate (Galician) + * Translated using Weblate (Spanish) + * Translated using Weblate (Japanese) + * Translated using Weblate (Swedish) + * Translated using Weblate (Catalan) + * Translated using Weblate (Slovak) + +------------------------------------------------------------------- +Tue Oct 29 22:33:17 UTC 2024 - Stanislav Brabec + +- Add URLs. + +------------------------------------------------------------------- +Fri Oct 04 19:08:44 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241004.009da54: + * Remove confusing en_US.po. + * Add MozillaFirefox + +------------------------------------------------------------------- +Sat Sep 07 01:46:14 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20240907.481ec87: + * First import of translations from a newly created project. + +------------------------------------------------------------------- +Fri Sep 6 19:01:26 UTC 2024 - Stanislav Brabec + +- New package that supports translation of SUSE specific desktop + files. (boo#1158957) + diff --git a/translate-suse-desktop.spec b/translate-suse-desktop.spec new file mode 100644 index 0000000..5d40ede --- /dev/null +++ b/translate-suse-desktop.spec @@ -0,0 +1,58 @@ +# +# spec file for package translate-suse-desktop +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: translate-suse-desktop +Version: 0.20241115.cac1c69 +Release: 0 +Summary: A Build Tool to Provide Desktop Translation +License: GPL-3.0-or-later +Group: Development/Tools/Building +URL: https://github.com/openSUSE/suse-desktop-translations +Source: suse-desktop-translations-%{version}.tar.xz +Source1: translate_suse_desktop.macro +Source2: translate_suse_desktop.sh +Requires: intltool +BuildArch: noarch + +%description +This package provides a tool that will import translations for SUSE +specific desktop files. + +For more, see +https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#%translate_suse_desktop + +%prep +%setup -q -n suse-desktop-translations-%{version} +cp -a %{SOURCE1} %{SOURCE2} . + +%build + +%install +for PO in po/*.po ; do + install -m0644 -D $PO $RPM_BUILD_ROOT%{_datadir}/%{name}/${PO##*/} +done +install -m0755 -D translate_suse_desktop.sh $RPM_BUILD_ROOT%{_rpmconfigdir}/translate_suse_desktop.sh +install -m0644 -D translate_suse_desktop.macro $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.translate_suse_desktop + +%files +%defattr(-,root,root) +%{_datadir}/%{name} +%{_rpmconfigdir}/* +%{_rpmmacrodir}/* + +%changelog diff --git a/translate_suse_desktop.macro b/translate_suse_desktop.macro new file mode 100644 index 0000000..7b26026 --- /dev/null +++ b/translate_suse_desktop.macro @@ -0,0 +1,6 @@ +# macro: %translate_suse_desktop +# Used to add easily a category to .desktop files according to XDG +# standard. +%translate_suse_desktop() \ + /usr/lib/rpm/translate_suse_desktop.sh %{**} \ + %nil diff --git a/translate_suse_desktop.sh b/translate_suse_desktop.sh new file mode 100644 index 0000000..ca67ba6 --- /dev/null +++ b/translate_suse_desktop.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# macro: translate_suse_desktop +# +# Used to add translation to a SUSE specifc .desktop files. +# + +set -o errexit +intltool-merge /usr/share/translate-suse-desktop $1.in $1 -d -u +mkdir -p suse_translate_desktop +cd suse_translate_desktop +ln ../$1.in . +intltool-extract --type=gettext/ini $1.in +xgettext --default-domain=$APPLICATION --add-comments --keyword=_ --keyword=N_ --keyword=U_ $1.in.h -o ${1%.desktop}.pot +RPM_OTHER_DIR=${RPM_BUILD_DIR%/BUILD*}/OTHER +if test -f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ; then + X=r +else + X=c +fi +tar ${X}f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ${1%.desktop}.pot +echo "Wrote ${1%.desktop}.pot to $RPM_OTHER_DIR/translate-suse-desktop.gz" +echo "with for https://github.com/openSUSE/suse-desktop-translations translatable by" +echo "https://l10n.opensuse.org/projects/suse-desktop-translations/" -- 2.51.1 From 00b0843df246981a486f3abb5ab7ce3711690a08a70340e5a2e17f34cb81c055 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 12 Dec 2024 01:42:05 +0000 Subject: [PATCH 2/6] - Update to version 0.20241212.ec89550... OBS-URL: https://build.opensuse.org/package/show/M17N/translate-suse-desktop?expand=0&rev=7 --- _servicedata | 2 +- suse-desktop-translations-0.20241115.cac1c69.tar.xz | 3 --- suse-desktop-translations-0.20241212.ec89550.tar.xz | 3 +++ translate-suse-desktop.changes | 11 +++++++++++ translate-suse-desktop.spec | 2 +- 5 files changed, 16 insertions(+), 5 deletions(-) delete mode 100644 suse-desktop-translations-0.20241115.cac1c69.tar.xz create mode 100644 suse-desktop-translations-0.20241212.ec89550.tar.xz diff --git a/_servicedata b/_servicedata index eed8633..8700022 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ git@github.com:openSUSE/suse-desktop-translations.git - cac1c69b28b3d9c97c7e35fb64e455b3f3f5490d \ No newline at end of file + ec89550553e5c156359c192577a7b9417a0d910f \ No newline at end of file diff --git a/suse-desktop-translations-0.20241115.cac1c69.tar.xz b/suse-desktop-translations-0.20241115.cac1c69.tar.xz deleted file mode 100644 index 9fb98de..0000000 --- a/suse-desktop-translations-0.20241115.cac1c69.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a679805c97061a8faf7bbb32cd0a9518a2024fa0510a25ce7757c83f57e3c46 -size 26200 diff --git a/suse-desktop-translations-0.20241212.ec89550.tar.xz b/suse-desktop-translations-0.20241212.ec89550.tar.xz new file mode 100644 index 0000000..997bad6 --- /dev/null +++ b/suse-desktop-translations-0.20241212.ec89550.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7768efb4600ec17020a6b0785347e0f75aa7b89c528328eb5518f30c5aea62f8 +size 27996 diff --git a/translate-suse-desktop.changes b/translate-suse-desktop.changes index 053f5e6..153d67e 100644 --- a/translate-suse-desktop.changes +++ b/translate-suse-desktop.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Dec 12 01:35:00 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241212.ec89550: + * Import translations from conflicting mis-named languages from + MozillaFirefox.desktop. + * Import remaining translations from MozillaFirefox.desktop + * Import translations from mis-named languages from + MozillaFirefox.desktop. + * Remove en_GB.po that contains no real contents. + ------------------------------------------------------------------- Fri Nov 29 22:11:19 UTC 2024 - opensuse-packaging@opensuse.org diff --git a/translate-suse-desktop.spec b/translate-suse-desktop.spec index 5d40ede..38de742 100644 --- a/translate-suse-desktop.spec +++ b/translate-suse-desktop.spec @@ -17,7 +17,7 @@ Name: translate-suse-desktop -Version: 0.20241115.cac1c69 +Version: 0.20241212.ec89550 Release: 0 Summary: A Build Tool to Provide Desktop Translation License: GPL-3.0-or-later -- 2.51.1 From e627fd920afd5b035b3373aa0e5fc3a5d9789581567095c2888c3a1cc2f623e8 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 12 Dec 2024 01:55:09 +0000 Subject: [PATCH 3/6] - Update to version 0.20241212.07d20b6... OBS-URL: https://build.opensuse.org/package/show/M17N/translate-suse-desktop?expand=0&rev=8 --- _servicedata | 2 +- suse-desktop-translations-0.20241212.07d20b6.tar.xz | 3 +++ suse-desktop-translations-0.20241212.ec89550.tar.xz | 3 --- translate-suse-desktop.changes | 5 +++-- translate-suse-desktop.spec | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 suse-desktop-translations-0.20241212.07d20b6.tar.xz delete mode 100644 suse-desktop-translations-0.20241212.ec89550.tar.xz diff --git a/_servicedata b/_servicedata index 8700022..e844c79 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ git@github.com:openSUSE/suse-desktop-translations.git - ec89550553e5c156359c192577a7b9417a0d910f \ No newline at end of file + 07d20b6d6e2166c0a43db5cd97afde7c5ae3a8bb \ No newline at end of file diff --git a/suse-desktop-translations-0.20241212.07d20b6.tar.xz b/suse-desktop-translations-0.20241212.07d20b6.tar.xz new file mode 100644 index 0000000..abea87b --- /dev/null +++ b/suse-desktop-translations-0.20241212.07d20b6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:229a4d12ff2d607cd923ee942a8c5c25f55edc6bc172e76183dbb6dcb12603a8 +size 27992 diff --git a/suse-desktop-translations-0.20241212.ec89550.tar.xz b/suse-desktop-translations-0.20241212.ec89550.tar.xz deleted file mode 100644 index 997bad6..0000000 --- a/suse-desktop-translations-0.20241212.ec89550.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7768efb4600ec17020a6b0785347e0f75aa7b89c528328eb5518f30c5aea62f8 -size 27996 diff --git a/translate-suse-desktop.changes b/translate-suse-desktop.changes index 153d67e..9871431 100644 --- a/translate-suse-desktop.changes +++ b/translate-suse-desktop.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- -Thu Dec 12 01:35:00 UTC 2024 - opensuse-packaging@opensuse.org +Thu Dec 12 01:49:23 UTC 2024 - opensuse-packaging@opensuse.org -- Update to version 0.20241212.ec89550: +- Update to version 0.20241212.07d20b6: + * Remove English text from Burmese translation. * Import translations from conflicting mis-named languages from MozillaFirefox.desktop. * Import remaining translations from MozillaFirefox.desktop diff --git a/translate-suse-desktop.spec b/translate-suse-desktop.spec index 38de742..9d51a77 100644 --- a/translate-suse-desktop.spec +++ b/translate-suse-desktop.spec @@ -17,7 +17,7 @@ Name: translate-suse-desktop -Version: 0.20241212.ec89550 +Version: 0.20241212.07d20b6 Release: 0 Summary: A Build Tool to Provide Desktop Translation License: GPL-3.0-or-later -- 2.51.1 From 7bd014f4f746f87e7ba137b86ca65cdb57a31d2ca0ac673201adb78ae5cf7c5a Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 26 Aug 2025 09:31:06 +0000 Subject: [PATCH 4/6] - Update to version 0.20250826.ec6cc16: * Add firefox-esr and TreeMaker * Translated using Weblate (Spanish) * Translated using Weblate (Portuguese (Brazil)) * Translated using Weblate (Thai) * Translated using Weblate (Hebrew) * Translated using Weblate (Kabyle) * Translated using Weblate (Esperanto) OBS-URL: https://build.opensuse.org/package/show/M17N/translate-suse-desktop?expand=0&rev=10 --- .gitattributes | 23 +++++++ .gitignore | 1 + _service | 16 +++++ _servicedata | 4 ++ ...top-translations-0.20250826.ec6cc16.tar.xz | 3 + translate-suse-desktop.changes | 62 +++++++++++++++++++ translate-suse-desktop.spec | 58 +++++++++++++++++ translate_suse_desktop.macro | 6 ++ translate_suse_desktop.sh | 24 +++++++ 9 files changed, 197 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 suse-desktop-translations-0.20250826.ec6cc16.tar.xz create mode 100644 translate-suse-desktop.changes create mode 100644 translate-suse-desktop.spec create mode 100644 translate_suse_desktop.macro create mode 100644 translate_suse_desktop.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e86b50e --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + git + %cd.%h + 0 + enable +opensuse-packaging@opensuse.org +refs/heads/main + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..5cd81e9 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + ec6cc160dde18976744adf1e10a8cddc0e749032 \ No newline at end of file diff --git a/suse-desktop-translations-0.20250826.ec6cc16.tar.xz b/suse-desktop-translations-0.20250826.ec6cc16.tar.xz new file mode 100644 index 0000000..844f5f6 --- /dev/null +++ b/suse-desktop-translations-0.20250826.ec6cc16.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b338b5ba3afb9fd7fc640e585b956854df303c1e23b207d278058c2f582ed87e +size 28268 diff --git a/translate-suse-desktop.changes b/translate-suse-desktop.changes new file mode 100644 index 0000000..f9ea5bf --- /dev/null +++ b/translate-suse-desktop.changes @@ -0,0 +1,62 @@ +------------------------------------------------------------------- +Mon Aug 25 22:39:23 UTC 2025 - opensuse-packaging@opensuse.org + +- Update to version 0.20250826.ec6cc16: + * Add firefox-esr and TreeMaker + * Translated using Weblate (Spanish) + * Translated using Weblate (Portuguese (Brazil)) + * Translated using Weblate (Thai) + * Translated using Weblate (Hebrew) + * Translated using Weblate (Kabyle) + * Translated using Weblate (Esperanto) + +------------------------------------------------------------------- +Thu Dec 12 01:49:23 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241212.07d20b6: + * Remove English text from Burmese translation. + * Import translations from conflicting mis-named languages from + MozillaFirefox.desktop. + * Import remaining translations from MozillaFirefox.desktop + * Import translations from mis-named languages from + MozillaFirefox.desktop. + * Remove en_GB.po that contains no real contents. + +------------------------------------------------------------------- +Fri Nov 29 22:11:19 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241115.cac1c69: + * Translated using Weblate (Norwegian Bokmål (nb)) + * Translated using Weblate (Turkish) + * Translated using Weblate (Georgian) + * Translated using Weblate (Galician) + * Translated using Weblate (Spanish) + * Translated using Weblate (Japanese) + * Translated using Weblate (Swedish) + * Translated using Weblate (Catalan) + * Translated using Weblate (Slovak) + +------------------------------------------------------------------- +Tue Oct 29 22:33:17 UTC 2024 - Stanislav Brabec + +- Add URLs. + +------------------------------------------------------------------- +Fri Oct 04 19:08:44 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241004.009da54: + * Remove confusing en_US.po. + * Add MozillaFirefox + +------------------------------------------------------------------- +Sat Sep 07 01:46:14 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20240907.481ec87: + * First import of translations from a newly created project. + +------------------------------------------------------------------- +Fri Sep 6 19:01:26 UTC 2024 - Stanislav Brabec + +- New package that supports translation of SUSE specific desktop + files. (boo#1158957) + diff --git a/translate-suse-desktop.spec b/translate-suse-desktop.spec new file mode 100644 index 0000000..b2f5ebb --- /dev/null +++ b/translate-suse-desktop.spec @@ -0,0 +1,58 @@ +# +# spec file for package translate-suse-desktop +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: translate-suse-desktop +Version: 0.20250826.ec6cc16 +Release: 0 +Summary: A Build Tool to Provide Desktop Translation +License: GPL-3.0-or-later +Group: Development/Tools/Building +URL: https://github.com/openSUSE/suse-desktop-translations +Source: suse-desktop-translations-%{version}.tar.xz +Source1: translate_suse_desktop.macro +Source2: translate_suse_desktop.sh +Requires: intltool +BuildArch: noarch + +%description +This package provides a tool that will import translations for SUSE +specific desktop files. + +For more, see +https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#%translate_suse_desktop + +%prep +%setup -q -n suse-desktop-translations-%{version} +cp -a %{SOURCE1} %{SOURCE2} . + +%build + +%install +for PO in po/*.po ; do + install -m0644 -D $PO $RPM_BUILD_ROOT%{_datadir}/%{name}/${PO##*/} +done +install -m0755 -D translate_suse_desktop.sh $RPM_BUILD_ROOT%{_rpmconfigdir}/translate_suse_desktop.sh +install -m0644 -D translate_suse_desktop.macro $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.translate_suse_desktop + +%files +%defattr(-,root,root) +%{_datadir}/%{name} +%{_rpmconfigdir}/* +%{_rpmmacrodir}/* + +%changelog diff --git a/translate_suse_desktop.macro b/translate_suse_desktop.macro new file mode 100644 index 0000000..7b26026 --- /dev/null +++ b/translate_suse_desktop.macro @@ -0,0 +1,6 @@ +# macro: %translate_suse_desktop +# Used to add easily a category to .desktop files according to XDG +# standard. +%translate_suse_desktop() \ + /usr/lib/rpm/translate_suse_desktop.sh %{**} \ + %nil diff --git a/translate_suse_desktop.sh b/translate_suse_desktop.sh new file mode 100644 index 0000000..ca67ba6 --- /dev/null +++ b/translate_suse_desktop.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# macro: translate_suse_desktop +# +# Used to add translation to a SUSE specifc .desktop files. +# + +set -o errexit +intltool-merge /usr/share/translate-suse-desktop $1.in $1 -d -u +mkdir -p suse_translate_desktop +cd suse_translate_desktop +ln ../$1.in . +intltool-extract --type=gettext/ini $1.in +xgettext --default-domain=$APPLICATION --add-comments --keyword=_ --keyword=N_ --keyword=U_ $1.in.h -o ${1%.desktop}.pot +RPM_OTHER_DIR=${RPM_BUILD_DIR%/BUILD*}/OTHER +if test -f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ; then + X=r +else + X=c +fi +tar ${X}f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ${1%.desktop}.pot +echo "Wrote ${1%.desktop}.pot to $RPM_OTHER_DIR/translate-suse-desktop.gz" +echo "with for https://github.com/openSUSE/suse-desktop-translations translatable by" +echo "https://l10n.opensuse.org/projects/suse-desktop-translations/" -- 2.51.1 From 543509af52fadc1ae3f5d2e2114d4573edc98c532537930980bb82b8764e6929 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Mon, 10 Nov 2025 04:40:10 +0000 Subject: [PATCH 5/6] - Update to version 0.20251110.9aa9f6b: * Collect strings from Factory * Translated using Weblate (Georgian) * Translated using Weblate (Catalan) * Translated using Weblate (Kabyle) * Translated using Weblate (Swedish) * Translated using Weblate (Japanese) * Translated using Weblate (German) OBS-URL: https://build.opensuse.org/package/show/M17N/translate-suse-desktop?expand=0&rev=12 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 16 ++++ _servicedata | 4 + ...top-translations-0.20250826.ec6cc16.tar.xz | 3 + ...top-translations-0.20251110.9aa9f6b.tar.xz | 3 + translate-suse-desktop.changes | 74 +++++++++++++++++++ translate-suse-desktop.spec | 58 +++++++++++++++ translate_suse_desktop.macro | 6 ++ translate_suse_desktop.sh | 24 ++++++ 10 files changed, 212 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 suse-desktop-translations-0.20250826.ec6cc16.tar.xz create mode 100644 suse-desktop-translations-0.20251110.9aa9f6b.tar.xz create mode 100644 translate-suse-desktop.changes create mode 100644 translate-suse-desktop.spec create mode 100644 translate_suse_desktop.macro create mode 100644 translate_suse_desktop.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e86b50e --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + git + %cd.%h + 0 + enable +opensuse-packaging@opensuse.org +refs/heads/main + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..2cfa697 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + 9aa9f6b92e2c7a3dcd1c7e31bbb129e601ff78ab \ No newline at end of file diff --git a/suse-desktop-translations-0.20250826.ec6cc16.tar.xz b/suse-desktop-translations-0.20250826.ec6cc16.tar.xz new file mode 100644 index 0000000..844f5f6 --- /dev/null +++ b/suse-desktop-translations-0.20250826.ec6cc16.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b338b5ba3afb9fd7fc640e585b956854df303c1e23b207d278058c2f582ed87e +size 28268 diff --git a/suse-desktop-translations-0.20251110.9aa9f6b.tar.xz b/suse-desktop-translations-0.20251110.9aa9f6b.tar.xz new file mode 100644 index 0000000..b760886 --- /dev/null +++ b/suse-desktop-translations-0.20251110.9aa9f6b.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f3e28f4e138ca8baabf05e28ca156a69bf83316d62998105de59f9fd2931153 +size 32232 diff --git a/translate-suse-desktop.changes b/translate-suse-desktop.changes new file mode 100644 index 0000000..84664e2 --- /dev/null +++ b/translate-suse-desktop.changes @@ -0,0 +1,74 @@ +------------------------------------------------------------------- +Mon Nov 10 04:36:36 UTC 2025 - opensuse-packaging@opensuse.org + +- Update to version 0.20251110.9aa9f6b: + * Collect strings from Factory + * Translated using Weblate (Georgian) + * Translated using Weblate (Catalan) + * Translated using Weblate (Kabyle) + * Translated using Weblate (Swedish) + * Translated using Weblate (Japanese) + * Translated using Weblate (German) + +------------------------------------------------------------------- +Mon Aug 25 22:39:23 UTC 2025 - opensuse-packaging@opensuse.org + +- Update to version 0.20250826.ec6cc16: + * Add firefox-esr and TreeMaker + * Translated using Weblate (Spanish) + * Translated using Weblate (Portuguese (Brazil)) + * Translated using Weblate (Thai) + * Translated using Weblate (Hebrew) + * Translated using Weblate (Kabyle) + * Translated using Weblate (Esperanto) + +------------------------------------------------------------------- +Thu Dec 12 01:49:23 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241212.07d20b6: + * Remove English text from Burmese translation. + * Import translations from conflicting mis-named languages from + MozillaFirefox.desktop. + * Import remaining translations from MozillaFirefox.desktop + * Import translations from mis-named languages from + MozillaFirefox.desktop. + * Remove en_GB.po that contains no real contents. + +------------------------------------------------------------------- +Fri Nov 29 22:11:19 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241115.cac1c69: + * Translated using Weblate (Norwegian Bokmål (nb)) + * Translated using Weblate (Turkish) + * Translated using Weblate (Georgian) + * Translated using Weblate (Galician) + * Translated using Weblate (Spanish) + * Translated using Weblate (Japanese) + * Translated using Weblate (Swedish) + * Translated using Weblate (Catalan) + * Translated using Weblate (Slovak) + +------------------------------------------------------------------- +Tue Oct 29 22:33:17 UTC 2024 - Stanislav Brabec + +- Add URLs. + +------------------------------------------------------------------- +Fri Oct 04 19:08:44 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241004.009da54: + * Remove confusing en_US.po. + * Add MozillaFirefox + +------------------------------------------------------------------- +Sat Sep 07 01:46:14 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20240907.481ec87: + * First import of translations from a newly created project. + +------------------------------------------------------------------- +Fri Sep 6 19:01:26 UTC 2024 - Stanislav Brabec + +- New package that supports translation of SUSE specific desktop + files. (boo#1158957) + diff --git a/translate-suse-desktop.spec b/translate-suse-desktop.spec new file mode 100644 index 0000000..17ed75c --- /dev/null +++ b/translate-suse-desktop.spec @@ -0,0 +1,58 @@ +# +# spec file for package translate-suse-desktop +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: translate-suse-desktop +Version: 0.20251110.9aa9f6b +Release: 0 +Summary: A Build Tool to Provide Desktop Translation +License: GPL-3.0-or-later +Group: Development/Tools/Building +URL: https://github.com/openSUSE/suse-desktop-translations +Source: suse-desktop-translations-%{version}.tar.xz +Source1: translate_suse_desktop.macro +Source2: translate_suse_desktop.sh +Requires: intltool +BuildArch: noarch + +%description +This package provides a tool that will import translations for SUSE +specific desktop files. + +For more, see +https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#%translate_suse_desktop + +%prep +%setup -q -n suse-desktop-translations-%{version} +cp -a %{SOURCE1} %{SOURCE2} . + +%build + +%install +for PO in po/*.po ; do + install -m0644 -D $PO $RPM_BUILD_ROOT%{_datadir}/%{name}/${PO##*/} +done +install -m0755 -D translate_suse_desktop.sh $RPM_BUILD_ROOT%{_rpmconfigdir}/translate_suse_desktop.sh +install -m0644 -D translate_suse_desktop.macro $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.translate_suse_desktop + +%files +%defattr(-,root,root) +%{_datadir}/%{name} +%{_rpmconfigdir}/* +%{_rpmmacrodir}/* + +%changelog diff --git a/translate_suse_desktop.macro b/translate_suse_desktop.macro new file mode 100644 index 0000000..7b26026 --- /dev/null +++ b/translate_suse_desktop.macro @@ -0,0 +1,6 @@ +# macro: %translate_suse_desktop +# Used to add easily a category to .desktop files according to XDG +# standard. +%translate_suse_desktop() \ + /usr/lib/rpm/translate_suse_desktop.sh %{**} \ + %nil diff --git a/translate_suse_desktop.sh b/translate_suse_desktop.sh new file mode 100644 index 0000000..ca67ba6 --- /dev/null +++ b/translate_suse_desktop.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# macro: translate_suse_desktop +# +# Used to add translation to a SUSE specifc .desktop files. +# + +set -o errexit +intltool-merge /usr/share/translate-suse-desktop $1.in $1 -d -u +mkdir -p suse_translate_desktop +cd suse_translate_desktop +ln ../$1.in . +intltool-extract --type=gettext/ini $1.in +xgettext --default-domain=$APPLICATION --add-comments --keyword=_ --keyword=N_ --keyword=U_ $1.in.h -o ${1%.desktop}.pot +RPM_OTHER_DIR=${RPM_BUILD_DIR%/BUILD*}/OTHER +if test -f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ; then + X=r +else + X=c +fi +tar ${X}f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ${1%.desktop}.pot +echo "Wrote ${1%.desktop}.pot to $RPM_OTHER_DIR/translate-suse-desktop.gz" +echo "with for https://github.com/openSUSE/suse-desktop-translations translatable by" +echo "https://l10n.opensuse.org/projects/suse-desktop-translations/" -- 2.51.1 From a3eeae53f13b51f7eef8d5300d7f47e7ca31e4649533d13434bcb919e13b25e3 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 13 Nov 2025 02:00:32 +0000 Subject: [PATCH 6/6] - Update to version 0.20251113.f49c23d: * Add thunderbird desktop files. OBS-URL: https://build.opensuse.org/package/show/M17N/translate-suse-desktop?expand=0&rev=14 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 16 ++++ _servicedata | 4 + ...top-translations-0.20250826.ec6cc16.tar.xz | 3 + ...top-translations-0.20251110.9aa9f6b.tar.xz | 3 + ...top-translations-0.20251113.f49c23d.tar.xz | 3 + translate-suse-desktop.changes | 80 +++++++++++++++++++ translate-suse-desktop.spec | 58 ++++++++++++++ translate_suse_desktop.macro | 6 ++ translate_suse_desktop.sh | 24 ++++++ 11 files changed, 221 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 suse-desktop-translations-0.20250826.ec6cc16.tar.xz create mode 100644 suse-desktop-translations-0.20251110.9aa9f6b.tar.xz create mode 100644 suse-desktop-translations-0.20251113.f49c23d.tar.xz create mode 100644 translate-suse-desktop.changes create mode 100644 translate-suse-desktop.spec create mode 100644 translate_suse_desktop.macro create mode 100644 translate_suse_desktop.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e86b50e --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + git + %cd.%h + 0 + enable +opensuse-packaging@opensuse.org +refs/heads/main + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..3b705de --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + git@github.com:openSUSE/suse-desktop-translations.git + f49c23d8677daafbb7c1e8c0531f804013067a4c \ No newline at end of file diff --git a/suse-desktop-translations-0.20250826.ec6cc16.tar.xz b/suse-desktop-translations-0.20250826.ec6cc16.tar.xz new file mode 100644 index 0000000..844f5f6 --- /dev/null +++ b/suse-desktop-translations-0.20250826.ec6cc16.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b338b5ba3afb9fd7fc640e585b956854df303c1e23b207d278058c2f582ed87e +size 28268 diff --git a/suse-desktop-translations-0.20251110.9aa9f6b.tar.xz b/suse-desktop-translations-0.20251110.9aa9f6b.tar.xz new file mode 100644 index 0000000..b760886 --- /dev/null +++ b/suse-desktop-translations-0.20251110.9aa9f6b.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f3e28f4e138ca8baabf05e28ca156a69bf83316d62998105de59f9fd2931153 +size 32232 diff --git a/suse-desktop-translations-0.20251113.f49c23d.tar.xz b/suse-desktop-translations-0.20251113.f49c23d.tar.xz new file mode 100644 index 0000000..b288d51 --- /dev/null +++ b/suse-desktop-translations-0.20251113.f49c23d.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bd628883c42178b5a13f0d37582413b0130299ceee41ebd0dd79c1e01917903 +size 32608 diff --git a/translate-suse-desktop.changes b/translate-suse-desktop.changes new file mode 100644 index 0000000..bfe23c2 --- /dev/null +++ b/translate-suse-desktop.changes @@ -0,0 +1,80 @@ +------------------------------------------------------------------- +Thu Nov 13 01:56:33 UTC 2025 - opensuse-packaging@opensuse.org + +- Update to version 0.20251113.f49c23d: + * Add thunderbird desktop files. + +------------------------------------------------------------------- +Mon Nov 10 04:36:36 UTC 2025 - opensuse-packaging@opensuse.org + +- Update to version 0.20251110.9aa9f6b: + * Collect strings from Factory + * Translated using Weblate (Georgian) + * Translated using Weblate (Catalan) + * Translated using Weblate (Kabyle) + * Translated using Weblate (Swedish) + * Translated using Weblate (Japanese) + * Translated using Weblate (German) + +------------------------------------------------------------------- +Mon Aug 25 22:39:23 UTC 2025 - opensuse-packaging@opensuse.org + +- Update to version 0.20250826.ec6cc16: + * Add firefox-esr and TreeMaker + * Translated using Weblate (Spanish) + * Translated using Weblate (Portuguese (Brazil)) + * Translated using Weblate (Thai) + * Translated using Weblate (Hebrew) + * Translated using Weblate (Kabyle) + * Translated using Weblate (Esperanto) + +------------------------------------------------------------------- +Thu Dec 12 01:49:23 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241212.07d20b6: + * Remove English text from Burmese translation. + * Import translations from conflicting mis-named languages from + MozillaFirefox.desktop. + * Import remaining translations from MozillaFirefox.desktop + * Import translations from mis-named languages from + MozillaFirefox.desktop. + * Remove en_GB.po that contains no real contents. + +------------------------------------------------------------------- +Fri Nov 29 22:11:19 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241115.cac1c69: + * Translated using Weblate (Norwegian Bokmål (nb)) + * Translated using Weblate (Turkish) + * Translated using Weblate (Georgian) + * Translated using Weblate (Galician) + * Translated using Weblate (Spanish) + * Translated using Weblate (Japanese) + * Translated using Weblate (Swedish) + * Translated using Weblate (Catalan) + * Translated using Weblate (Slovak) + +------------------------------------------------------------------- +Tue Oct 29 22:33:17 UTC 2024 - Stanislav Brabec + +- Add URLs. + +------------------------------------------------------------------- +Fri Oct 04 19:08:44 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20241004.009da54: + * Remove confusing en_US.po. + * Add MozillaFirefox + +------------------------------------------------------------------- +Sat Sep 07 01:46:14 UTC 2024 - opensuse-packaging@opensuse.org + +- Update to version 0.20240907.481ec87: + * First import of translations from a newly created project. + +------------------------------------------------------------------- +Fri Sep 6 19:01:26 UTC 2024 - Stanislav Brabec + +- New package that supports translation of SUSE specific desktop + files. (boo#1158957) + diff --git a/translate-suse-desktop.spec b/translate-suse-desktop.spec new file mode 100644 index 0000000..a235ada --- /dev/null +++ b/translate-suse-desktop.spec @@ -0,0 +1,58 @@ +# +# spec file for package translate-suse-desktop +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: translate-suse-desktop +Version: 0.20251113.f49c23d +Release: 0 +Summary: A Build Tool to Provide Desktop Translation +License: GPL-3.0-or-later +Group: Development/Tools/Building +URL: https://github.com/openSUSE/suse-desktop-translations +Source: suse-desktop-translations-%{version}.tar.xz +Source1: translate_suse_desktop.macro +Source2: translate_suse_desktop.sh +Requires: intltool +BuildArch: noarch + +%description +This package provides a tool that will import translations for SUSE +specific desktop files. + +For more, see +https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#%translate_suse_desktop + +%prep +%setup -q -n suse-desktop-translations-%{version} +cp -a %{SOURCE1} %{SOURCE2} . + +%build + +%install +for PO in po/*.po ; do + install -m0644 -D $PO $RPM_BUILD_ROOT%{_datadir}/%{name}/${PO##*/} +done +install -m0755 -D translate_suse_desktop.sh $RPM_BUILD_ROOT%{_rpmconfigdir}/translate_suse_desktop.sh +install -m0644 -D translate_suse_desktop.macro $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.translate_suse_desktop + +%files +%defattr(-,root,root) +%{_datadir}/%{name} +%{_rpmconfigdir}/* +%{_rpmmacrodir}/* + +%changelog diff --git a/translate_suse_desktop.macro b/translate_suse_desktop.macro new file mode 100644 index 0000000..7b26026 --- /dev/null +++ b/translate_suse_desktop.macro @@ -0,0 +1,6 @@ +# macro: %translate_suse_desktop +# Used to add easily a category to .desktop files according to XDG +# standard. +%translate_suse_desktop() \ + /usr/lib/rpm/translate_suse_desktop.sh %{**} \ + %nil diff --git a/translate_suse_desktop.sh b/translate_suse_desktop.sh new file mode 100644 index 0000000..ca67ba6 --- /dev/null +++ b/translate_suse_desktop.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# macro: translate_suse_desktop +# +# Used to add translation to a SUSE specifc .desktop files. +# + +set -o errexit +intltool-merge /usr/share/translate-suse-desktop $1.in $1 -d -u +mkdir -p suse_translate_desktop +cd suse_translate_desktop +ln ../$1.in . +intltool-extract --type=gettext/ini $1.in +xgettext --default-domain=$APPLICATION --add-comments --keyword=_ --keyword=N_ --keyword=U_ $1.in.h -o ${1%.desktop}.pot +RPM_OTHER_DIR=${RPM_BUILD_DIR%/BUILD*}/OTHER +if test -f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ; then + X=r +else + X=c +fi +tar ${X}f $RPM_OTHER_DIR/translate-suse-desktop.tar.gz ${1%.desktop}.pot +echo "Wrote ${1%.desktop}.pot to $RPM_OTHER_DIR/translate-suse-desktop.gz" +echo "with for https://github.com/openSUSE/suse-desktop-translations translatable by" +echo "https://l10n.opensuse.org/projects/suse-desktop-translations/" -- 2.51.1