Hello community, here is the log from the commit of package package-translations for openSUSE:Factory checked in at 2016-11-17 12:20:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/package-translations (Old) and /work/SRC/openSUSE:Factory/.package-translations.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "package-translations" Changes: -------- --- /work/SRC/openSUSE:Factory/package-translations/package-translations.changes 2016-10-06 12:27:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.package-translations.new/package-translations.changes 2016-11-17 12:20:57.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Nov 08 20:55:52 UTC 2016 - alex...@gmail.com + +- automated update on 2016-11-08 +- added source service for OBS + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ package-translations.spec ++++++ --- /var/tmp/diff_new_pack.wUa3ID/_old 2016-11-17 12:21:00.000000000 +0100 +++ /var/tmp/diff_new_pack.wUa3ID/_new 2016-11-17 12:21:00.000000000 +0100 @@ -23,11 +23,14 @@ License: BSD-3-Clause Group: System/GUI/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: package-translations.tar.bz2 +Source0: %{name}.tar.bz2 Source1: translate_packages.pl Source99: PREPARE_PACKAGE 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 %description This package provides translations for our packages. You don't want to install this @@ -39,8 +42,12 @@ %build %install -mkdir -p $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES -cp -a mo/* $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES +target_dir=$RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES +mkdir -p $target_dir +for lang in %build_languages; do +msgcat --use-first package-translations/$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 ++++++ package-translations.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/package-translations/package-translations.tar.bz2 /work/SRC/openSUSE:Factory/.package-translations.new/package-translations.tar.bz2 differ: char 11, line 1 ++++++ translate_packages.pl ++++++ --- /var/tmp/diff_new_pack.wUa3ID/_old 2016-11-17 12:21:00.000000000 +0100 +++ /var/tmp/diff_new_pack.wUa3ID/_new 2016-11-17 12:21:00.000000000 +0100 @@ -30,6 +30,7 @@ textdomain("package-translations-$lang"); my $indesc = 0; +my $ineula = 0; my $descr = ''; my $pkg = ''; @@ -49,6 +50,15 @@ 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; @@ -79,6 +89,16 @@ 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;