Accepting request 600386 from system:install:head
OBS-URL: https://build.opensuse.org/request/show/600386 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/package-translations?expand=0&rev=117
This commit is contained in:
commit
9cdb1e05d7
@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">git://github.com/openSUSE/packages-i18n.git</param>
|
||||
<param name="changesrevision">aabc1653ead4fd8918d934a34c37f746c7566851</param></service></servicedata>
|
||||
<param name="changesrevision">8e00def2e114f2e55d6c044cb59678241cee1444</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6a3250ea822de92ac597902d147b2edb7a661a844d49c94045014aa03a0d0f0
|
||||
size 45686328
|
3
package-translations-84.87.20180423.8e00def2.tar.xz
Normal file
3
package-translations-84.87.20180423.8e00def2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:503ba99c398d697483a28c7dd267f28cc60619caa8563a22da51a4442dc399f8
|
||||
size 52351096
|
@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 24 10:24:12 UTC 2018 - opensuse-packaging@opensuse.org
|
||||
|
||||
- Update to version 84.87.20180423.8e00def2:
|
||||
* Translated using Weblate (Arabic)
|
||||
* Translated using Weblate (Chinese (China))
|
||||
* Translated using Weblate (Czech)
|
||||
* Translated using Weblate (Dutch)
|
||||
* Translated using Weblate (French)
|
||||
* Translated using Weblate (German)
|
||||
* Translated using Weblate (Hungarian)
|
||||
* Translated using Weblate (Italian)
|
||||
* Translated using Weblate (Japanese)
|
||||
* Translated using Weblate (Polish)
|
||||
* Translated using Weblate (Portuguese (Brazil))
|
||||
* Translated using Weblate (Russian)
|
||||
* Translated using Weblate (Spanish)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 16 12:03:31 UTC 2018 - opensuse-packaging@opensuse.org
|
||||
|
||||
- Update to version 84.87.20180416.1a836422:
|
||||
* Adjust for Leap 15
|
||||
- remove translate_packages.pl, no longer needed with product builder
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 19 14:47:59 UTC 2017 - lnussel@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package package-translations
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,16 +17,14 @@
|
||||
|
||||
|
||||
Name: package-translations
|
||||
Version: 84.87.20170719.aabc165
|
||||
Version: 84.87.20180423.8e00def2
|
||||
Release: 0
|
||||
Summary: Summary and Descriptions Translations
|
||||
License: BSD-3-Clause
|
||||
Group: System/GUI/Other
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: translate_packages.pl
|
||||
BuildArch: noarch
|
||||
Requires: perl-gettext
|
||||
Url: https://github.com/openSUSE/packages-i18n/
|
||||
|
||||
%define build_languages cs de es fr hu it ja lt nl nn ru uk zh_CN
|
||||
@ -46,12 +44,9 @@ mkdir -p $target_dir
|
||||
for lang in %build_languages; do
|
||||
msgcat --use-first $lang/po/*.po | msgfmt -o $target_dir/package-translations-$lang.mo -
|
||||
done
|
||||
#cp -a mo/* $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
|
||||
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/bin/translate_packages.pl
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%lang(en) /usr/share/locale/en_US/LC_MESSAGES/*
|
||||
/usr/bin/translate_packages.pl
|
||||
|
||||
%changelog
|
||||
|
@ -1,110 +0,0 @@
|
||||
#!/usr/bin/perl
|
||||
# Copyright (c) 2007, 2008, SUSE Linux Products GmbH
|
||||
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
use Locale::gettext;
|
||||
use POSIX; # Needed for setlocale()
|
||||
|
||||
$ENV{'LC_ALL'} = 'en_US.UTF-8';
|
||||
setlocale(LC_MESSAGES, "en_US.UTF-8");
|
||||
setlocale(LC_ALL, "en_US.UTF-8");
|
||||
|
||||
my $lang = $ARGV[0];
|
||||
textdomain("package-translations-$lang");
|
||||
|
||||
my $indesc = 0;
|
||||
my $ineula = 0;
|
||||
my $descr = '';
|
||||
my $pkg = '';
|
||||
|
||||
while ( <STDIN> ) {
|
||||
if ($_ =~ m/^=Ver:/ || $_ =~ m/^#/) {
|
||||
print $_;
|
||||
next;
|
||||
}
|
||||
if ($_ =~ m/^=Pkg:\s*(\S*)\s/) {
|
||||
$pkg = $1;
|
||||
print $_;
|
||||
next;
|
||||
}
|
||||
|
||||
if ($_ =~ m/^=Sum:\s*(.*)\s*$/) {
|
||||
my $sum = $1;
|
||||
print "=Sum: " . gettext($sum) . "\n";
|
||||
next;
|
||||
}
|
||||
if ($_ =~ m/^\+Eul:/) {
|
||||
$ineula = 1;
|
||||
next;
|
||||
}
|
||||
if ($_ =~ m/^\-Eul:/) {
|
||||
$ineula = 0;
|
||||
$descr = '';
|
||||
next;
|
||||
}
|
||||
if ($_ =~ m/^\+Des:/) {
|
||||
print $_;
|
||||
$indesc = 1;
|
||||
next;
|
||||
}
|
||||
if ($_ =~ m/^-Des:/) {
|
||||
$indesc = 0;
|
||||
$descr =~ s,\s*Authors:\n--------[.\s\n]*,\@AUTHORS\@,g;
|
||||
$descr =~ s,\@AUTHORS\@[\S\s\n]*,\@AUTHORS\@,g;
|
||||
$descr =~ s,\@AUTHORS\@,,g;
|
||||
print gettext($descr) . "\n";
|
||||
$descr = '';
|
||||
print $_;
|
||||
|
||||
if (-f "/usr/share/doc/packages/eulas/$pkg.$lang") {
|
||||
print "+Eul:\n";
|
||||
open(EULA, "/usr/share/doc/packages/eulas/$pkg.$lang");
|
||||
while ( <EULA> ) {
|
||||
print $_;
|
||||
}
|
||||
close(EULA);
|
||||
print "-Eul:\n";
|
||||
}
|
||||
next;
|
||||
}
|
||||
|
||||
if ($indesc == 1) {
|
||||
my $line = $_;
|
||||
chomp $line;
|
||||
if ($descr) {
|
||||
$descr = $descr . "\n" . $line;
|
||||
} else {
|
||||
$descr = $line;
|
||||
}
|
||||
next;
|
||||
}
|
||||
if ($ineula == 1) {
|
||||
my $line = $_;
|
||||
chomp $line;
|
||||
if ($descr) {
|
||||
$descr = $descr . "\n" . $line;
|
||||
} else {
|
||||
$descr = $line;
|
||||
}
|
||||
next;
|
||||
}
|
||||
|
||||
die "DIE " . $_;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user