1
0

Accepting request 596984 from home:lnussel:branches:system:install:head

- Update to version 84.87.20180414.0e51d366:
  * Adjust for Leap 15
- remove translate_packages.pl, no longer needed with product builder

OBS-URL: https://build.opensuse.org/request/show/596984
OBS-URL: https://build.opensuse.org/package/show/system:install:head/package-translations?expand=0&rev=276
This commit is contained in:
Ludwig Nussel 2018-04-16 11:56:10 +00:00 committed by Git OBS Bridge
parent fc60466a14
commit ceef89df14
5 changed files with 10 additions and 116 deletions

View File

@ -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">0e51d36663b189e3132defe642d5f84791da441f</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6a3250ea822de92ac597902d147b2edb7a661a844d49c94045014aa03a0d0f0
size 45686328

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Apr 16 11:43:35 UTC 2018 - lnussel@suse.de
- Update to version 84.87.20180414.0e51d366:
* 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

View File

@ -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,7 +17,7 @@
Name: package-translations
Version: 84.87.20170719.aabc165
Version: 84.87.20180414.0e51d366
Release: 0
Summary: Summary and Descriptions Translations
License: BSD-3-Clause

View File

@ -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 " . $_;
}