commit package-translations for openSUSE:12.1
Hello community, here is the log from the commit of package package-translations for openSUSE:12.1 checked in at 2011-10-28 19:41:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.1/package-translations (Old) and /work/SRC/openSUSE:12.1/.package-translations.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "package-translations", Maintainer is "coolo@suse.com" Changes: -------- --- /work/SRC/openSUSE:12.1/package-translations/package-translations.changes 2011-10-28 17:11:38.000000000 +0200 +++ /work/SRC/openSUSE:12.1/.package-translations.new/package-translations.changes 2011-10-29 00:24:28.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Oct 28 08:53:01 UTC 2011 - coolo@suse.com + +- insert EULAs into the suse tags + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ translate_packages.pl ++++++ --- /var/tmp/diff_new_pack.R84aIl/_old 2011-10-29 00:24:28.000000000 +0200 +++ /var/tmp/diff_new_pack.R84aIl/_new 2011-10-29 00:24:28.000000000 +0200 @@ -26,16 +26,24 @@ setlocale(LC_MESSAGES, "en_US.UTF-8"); setlocale(LC_ALL, "en_US.UTF-8"); -textdomain("package-translations-" . $ARGV[0]); +my $lang = $ARGV[0]; +textdomain("package-translations-$lang"); my $indesc = 0; my $descr = ''; +my $pkg = ''; while ( <STDIN> ) { - if ($_ =~ m/^=Ver:/ || $_ =~ m/^#/ || $_ =~ m/^=Pkg:/) { + 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"; @@ -54,6 +62,16 @@ 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; } -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de