OBS User unknown 2007-01-05 15:52:24 +00:00 committed by Git OBS Bridge
commit f8a89d161d
12 changed files with 546 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

15
HEADER.pot Normal file
View File

@ -0,0 +1,15 @@
# Translation of SuSE patches included in gnome-patch-translation.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2006-11-14 17:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

95
HOWTO Normal file
View File

@ -0,0 +1,95 @@
This package is intended for collection of translation strings in
patches and merging translations back to packages.
It works only with packages using intltool for translation.
It contains:
gnome-patch-translation-prepare: This tool collects strings from
intact package.
gnome-patch-translation-update: Using previously collected strings, this
tool:
- Collects actual strings in patches into gnome-patch-translation/
sub-directory in build directory.
- Prepares fuzzy translations for existing translations.
(only if COMPENDIUM_UPDATE_MODE=1)
- Updates actual translations in po/ using translations from
gnome-patch-translation package.
gnome-patch-translation-files.tar.bz2: Files created by
COMPENDIUM_UPDATE_MODE=1 gnome-patch-translation-update collected from
all needed packages.
gnome-patch-translation.tar.bz2: Translation files provided by
translators.
gnome-patch-translation-merged and /usr/share/gnome-patch-translation
(autogenerated): It contains merged files, which will be used for
translation. These files should be sent to translators for update.
HOW TO PREPARE PACKAGE FOR TRANSLATION
See SuSE LCN repository for more:
https://svn.suse.de/svn/lcn/trunk/gnome-patch-translation and
https://svn.suse.de/svn/lcn/trunk/gnome-patch-translation/packagers
1) Search for candidates on unpacked source packages:
( find -name '*patch*' ; find -name '*dif*' ) | xargs fgrep '_("' | less | grep ':[+-]' | less
2) Include selected packages to gnome-patch-translation.
You have to do following changes in the spec file:
...
+BuildRequires: gnome-patch-translation
...
%prep
%setup
+gnome-patch-translation-prepare
...
%patch
...
+gnome-patch-translation-update
3) You have to update gnome-patch-translation package, if any
translatable string is changed in any patch.
Call %prep phase of the package, copy contents of
gnome-patch-translation/ to the gnome-patch-translation package, file
gnome-patch-translation-files.tar.bz2.
HOW TO PROVIDE TRANSLATIONS
See SuSE LCN repository for more:
https://svn.suse.de/svn/lcn/trunk/gnome-patch-translation
If you plan to update translations, you should do following steps:
1) Collect all files created by COMPENDIUM_UPDATE_MODE=1
gnome-patch-translation-update in all included packages. You can get
these files by picking it from last build process or by calling %prep
phase of rpmbuild (you have to install gnome-patch-translation package).
2) Using upper mentioned files update
gnome-patch-translation-files.tar.bz2
3) Build this package (it is enough to unpack archives and call
"sh gnome-patch-translation-merge").
4a) If there is not yet any translation for particular language, pick
fuzzy po file from gnome-patch-translation-merged from build directory
and send it to translator for translation.
4b) If there is already a translation for particular language, pick
updated file from /usr/share/gnome-patch-translation (resp.
gnome-patch-translation-merged) and send it to translator for update.
5) Put your new translation into gnome-patch-translation.tar.bz2
6) Submit to build system or rebuild gnome-patch-translation and all
dependent packages.

View File

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

View File

@ -0,0 +1,28 @@
#! /bin/bash
set -o errexit
mkdir -p gnome-patch-translation-merged
cd gnome-patch-translation-files
msgcomm --more-than=0 -o ../gnome-patch-translation-merged/gnome-patch-translation.pot ../HEADER.pot *.pot
ls -1 *.po | sed 's/^.*-//;s/\.po//' | sort -u >../gnome-patch-translation-merged/lang.lst
for LNG in $(<../gnome-patch-translation-merged/lang.lst) ; do
msgcomm --more-than=0 -o ../gnome-patch-translation-merged/$LNG.po ../HEADER.pot *-$LNG.po
done
cd ../gnome-patch-translation-merged
for PO in *.po ; do
msgmerge -o $PO.new $PO gnome-patch-translation.pot
mv $PO.new $PO
done
cd ../gnome-patch-translation
for PO in *.po ; do
if test -f ../gnome-patch-translation-merged/$PO ; then
msgmerge -o $PO.new $PO ../gnome-patch-translation-merged/$PO
else
echo "WARNING: Translation $PO has no use in any project!"
msgmerge -o $PO.new $PO ../gnome-patch-translation-merged/gnome-patch-translation.pot
fi
mv $PO.new $PO
done

View File

@ -0,0 +1,8 @@
#! /bin/bash
set -o errexit
cd po
intltool-update --pot
mkdir -p ../gnome-patch-translation/old
mv *.pot ../gnome-patch-translation/old

View File

@ -0,0 +1,61 @@
#! /bin/bash
set -o errexit
# This action takes some time. But run it every time to confirm, that update is still needed.
cd po
intltool-update --pot
mkdir ../gnome-patch-translation/new
cp -a *.pot ../gnome-patch-translation/new
cd ../gnome-patch-translation/new
eval POT=$(echo *)
POT=${POT%.pot}
cd ..
msgcomm --unique -o $POT-unique.pot old/$POT.pot new/$POT.pot
if test $? -eq 0 -a ! -f $POT-unique.pot ; then
echo ""
echo "No unique patch specific strings in project!"
echo "You can remove gnome-patch-translation support from this project."
echo ""
exit 1
fi
msgcomm --more-than=1 -o $POT-patch.pot $POT-unique.pot new/$POT.pot
rm -rf new old $POT-unique.pot
cd ../po
# Main action. Only this is really needed for package rebuild.
for PO in *.po ; do
LNG=${PO%.po}
if test -f /usr/share/gnome-patch-translation/$LNG.po ; then
echo "Updating $PO using gnome-patch-translation compendium."
if test "$COMPENDIUM_UPDATE_MODE" = 1 ; then
msgmerge --compendium=/usr/share/gnome-patch-translation/$LNG.po -o $PO.new $PO $POT.pot
else
# For compilation use --no-fuzzy-matching to run faster.
msgmerge --no-fuzzy-matching --compendium=/usr/share/gnome-patch-translation/$LNG.po -o $PO.new $PO $POT.pot
fi
mv $PO.new $PO
fi
done
# This action takes long time. Run it only if we really need it.
if test "$COMPENDIUM_UPDATE_MODE" = 1 ; then
sed -i 's@#: \.\./@#: '$POT'/@;1,/^$/d' ../gnome-patch-translation/$POT-patch.pot
for PO in *.po ; do
LNG=${PO%.po}
echo "Creating fuzzy $PO for gnome-patch-translation."
msgmerge -o ../gnome-patch-translation/$POT-$LNG.po $PO ../gnome-patch-translation/$POT-patch.pot
sed -i 's@#: \.\./@#: '$POT'/@;/#~/,$d' ../gnome-patch-translation/$POT-$LNG.po
done
echo "================================================================="
echo " Translatable strings from patches were written to"
echo " gnome-patch-translation/. If you did any translabable string"
echo " change in any patch, please copy contents of this directory"
echo " to the gnome-patch-translation package, file"
echo " gnome-patch-translation-files.tar.bz2."
echo "================================================================="
else
echo " Skipping compendium update. Use COMPENDIUM_UPDATE_MODE=1 to force it."
fi

View File

@ -0,0 +1,168 @@
-------------------------------------------------------------------
Fri Jan 5 15:10:21 CET 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
-------------------------------------------------------------------
Thu Nov 23 19:27:28 CET 2006 - sbrabec@suse.cz
- Updated cs, hu.
-------------------------------------------------------------------
Tue Nov 14 15:24:38 CET 2006 - sbrabec@suse.cz
- Skip unneeded steps during compilation.
- Merged SLE10-SP and FACTORY strings into one compendium.
- Updated cs, fi, hu, mi, ru, vi.
-------------------------------------------------------------------
Wed Sep 20 18:15:11 CEST 2006 - sbrabec@suse.cz
- Detect, if all strings are upstreamed.
-------------------------------------------------------------------
Mon Jun 26 19:06:19 CEST 2006 - sbrabec@suse.cz
- Merged gedit false UTF-16 detection fix (#116777).
- Updated hu.
-------------------------------------------------------------------
Mon Jun 26 12:54:27 CEST 2006 - sbrabec@suse.cz
- Updated cs, de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
- Merged missing strings from nautilus-share (#183392).
-------------------------------------------------------------------
Tue Jun 20 12:22:52 CEST 2006 - sbrabec@suse.cz
- Merged missing string from gnome-passwd (#185584#c7).
- Updated cs, hu, ja.
-------------------------------------------------------------------
Fri Jun 16 14:10:03 CEST 2006 - sbrabec@suse.cz
- Merged missing strings from gnome-passwd (#185584#c3) and
gnome-sound-properties (#185591).
- Updated cs, pl.
-------------------------------------------------------------------
Thu Jun 15 10:48:44 CEST 2006 - sbrabec@suse.cz
- Updated de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
-------------------------------------------------------------------
Wed Jun 7 13:45:44 CEST 2006 - sbrabec@suse.cz
- Fixed strings for gedit locale detection (#180613).
-------------------------------------------------------------------
Mon Jun 5 16:35:36 CEST 2006 - sbrabec@suse.cz
- Added new strings from control-center2 passwd capplet (#179459).
- Added new strings from NetworkManager (#169096).
- Updated cs, fi, hu.
-------------------------------------------------------------------
Mon May 22 12:40:10 CEST 2006 - sbrabec@suse.cz
- Updated de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
-------------------------------------------------------------------
Thu May 18 11:08:28 CEST 2006 - sbrabec@suse.cz
- Merged missing nautilus string to translations (#173448).
-------------------------------------------------------------------
Wed May 3 14:00:15 CEST 2006 - sbrabec@suse.cz
- Updated fi.
-------------------------------------------------------------------
Mon Apr 24 14:43:32 CEST 2006 - sbrabec@suse.cz
- Updated cs, hu.
-------------------------------------------------------------------
Tue Apr 18 18:55:15 CEST 2006 - sbrabec@suse.cz
- Updated hu.
-------------------------------------------------------------------
Tue Apr 18 17:56:00 CEST 2006 - sbrabec@suse.cz
- Updated de, es, fi, fr, hu, it, ja, pl, pt_BR, zh_CN, zh_TW.
-------------------------------------------------------------------
Fri Apr 7 15:34:31 CEST 2006 - sbrabec@suse.cz
- Added evolution, gdm, libgnomeui.
- Updated cs.
-------------------------------------------------------------------
Mon Mar 27 18:17:51 CEST 2006 - sbrabec@suse.cz
- Updated cs.
-------------------------------------------------------------------
Fri Mar 24 16:31:00 CET 2006 - sbrabec@suse.cz
- Updated de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
-------------------------------------------------------------------
Fri Mar 24 14:17:41 CET 2006 - sbrabec@suse.cz
- Updated cs, fi, hu, nb, pl, pt, uk.
-------------------------------------------------------------------
Fri Mar 17 16:24:39 CET 2006 - sbrabec@suse.cz
- Merged translations from old modemlights applet (#158257).
-------------------------------------------------------------------
Wed Mar 15 13:46:24 CET 2006 - sbrabec@suse.cz
- Updated hu, fi.
- Added support for shared-mime-info, merged new strings.
-------------------------------------------------------------------
Fri Mar 3 15:04:23 CET 2006 - sbrabec@suse.cz
- Added fi, fr, km, es, fr, it, ja, pt_BR.
- Updated cs, de, hu, zh_CN, zh_TW.
- Merged upstream translations from nautilus.
- Added support for gnome-system-monitor.
-------------------------------------------------------------------
Fri Feb 24 15:57:34 CET 2006 - sbrabec@suse.cz
- Updated strings from nautilus-share.
- Updated Czech and Hungarian.
-------------------------------------------------------------------
Wed Feb 22 15:29:22 CET 2006 - sbrabec@suse.cz
- Added support for gnome-menus (144946#c12).
- Updated Czech, German and Hungarian translations.
-------------------------------------------------------------------
Fri Feb 17 15:18:07 CET 2006 - sbrabec@suse.cz
- Updated Czech and Hungarian translation.
- Fixed merge if upstream translation is missing in some projects.
-------------------------------------------------------------------
Fri Feb 3 14:29:52 CET 2006 - sbrabec@suse.cz
- Added Hungarian translation.
-------------------------------------------------------------------
Thu Feb 2 18:09:53 CET 2006 - sbrabec@suse.cz
- Updated translation files for gnome-panel.
- Updated Czech translation.
-------------------------------------------------------------------
Wed Feb 1 17:10:21 CET 2006 - sbrabec@suse.cz
- New SuSE package (#144946).

View File

@ -0,0 +1,141 @@
#
# spec file for package gnome-patch-translation (Version 0.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnome-patch-translation
License: GNU General Public License (GPL)
Group: System/GUI/GNOME
Autoreqprov: on
Version: 0.1
Release: 76
Summary: Collect and Merge Translations From RPM Patches
Source: gnome-patch-translation-files.tar.bz2
Source1: gnome-patch-translation.tar.bz2
Source2: HOWTO
Source3: gnome-patch-translation-prepare
Source4: gnome-patch-translation-update
Source5: gnome-patch-translation-merge
Source6: HEADER.pot
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gnome-filesystem intltool
BuildArchitectures: noarch
%description
This package provides scripts for collecting strings changed in RPM
patches and merging them to one translation compendium.
Authors:
--------
Stanislav Brabec <sbrabec@suse.cz>
%prep
%setup -T -a0 -a1 -c %{name}-%{version}
cp -a %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} .
%build
sh gnome-patch-translation-merge
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install gnome-patch-translation-prepare gnome-patch-translation-update $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-patch-translation
cp gnome-patch-translation/*.po gnome-patch-translation-merged/*.pot $RPM_BUILD_ROOT%{_datadir}/gnome-patch-translation
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc HOWTO
%{_bindir}/*
%{_datadir}/gnome-patch-translation
%changelog -n gnome-patch-translation
* Fri Jan 05 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
* Thu Nov 23 2006 - sbrabec@suse.cz
- Updated cs, hu.
* Tue Nov 14 2006 - sbrabec@suse.cz
- Skip unneeded steps during compilation.
- Merged SLE10-SP and FACTORY strings into one compendium.
- Updated cs, fi, hu, mi, ru, vi.
* Wed Sep 20 2006 - sbrabec@suse.cz
- Detect, if all strings are upstreamed.
* Mon Jun 26 2006 - sbrabec@suse.cz
- Merged gedit false UTF-16 detection fix (#116777).
- Updated hu.
* Mon Jun 26 2006 - sbrabec@suse.cz
- Updated cs, de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
- Merged missing strings from nautilus-share (#183392).
* Tue Jun 20 2006 - sbrabec@suse.cz
- Merged missing string from gnome-passwd (#185584#c7).
- Updated cs, hu, ja.
* Fri Jun 16 2006 - sbrabec@suse.cz
- Merged missing strings from gnome-passwd (#185584#c3) and
gnome-sound-properties (#185591).
- Updated cs, pl.
* Thu Jun 15 2006 - sbrabec@suse.cz
- Updated de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
* Wed Jun 07 2006 - sbrabec@suse.cz
- Fixed strings for gedit locale detection (#180613).
* Mon Jun 05 2006 - sbrabec@suse.cz
- Added new strings from control-center2 passwd capplet (#179459).
- Added new strings from NetworkManager (#169096).
- Updated cs, fi, hu.
* Mon May 22 2006 - sbrabec@suse.cz
- Updated de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
* Thu May 18 2006 - sbrabec@suse.cz
- Merged missing nautilus string to translations (#173448).
* Wed May 03 2006 - sbrabec@suse.cz
- Updated fi.
* Mon Apr 24 2006 - sbrabec@suse.cz
- Updated cs, hu.
* Tue Apr 18 2006 - sbrabec@suse.cz
- Updated hu.
* Tue Apr 18 2006 - sbrabec@suse.cz
- Updated de, es, fi, fr, hu, it, ja, pl, pt_BR, zh_CN, zh_TW.
* Fri Apr 07 2006 - sbrabec@suse.cz
- Added evolution, gdm, libgnomeui.
- Updated cs.
* Mon Mar 27 2006 - sbrabec@suse.cz
- Updated cs.
* Fri Mar 24 2006 - sbrabec@suse.cz
- Updated de, es, fr, it, ja, pt_BR, zh_CN, zh_TW.
* Fri Mar 24 2006 - sbrabec@suse.cz
- Updated cs, fi, hu, nb, pl, pt, uk.
* Fri Mar 17 2006 - sbrabec@suse.cz
- Merged translations from old modemlights applet (#158257).
* Wed Mar 15 2006 - sbrabec@suse.cz
- Updated hu, fi.
- Added support for shared-mime-info, merged new strings.
* Fri Mar 03 2006 - sbrabec@suse.cz
- Added fi, fr, km, es, fr, it, ja, pt_BR.
- Updated cs, de, hu, zh_CN, zh_TW.
- Merged upstream translations from nautilus.
- Added support for gnome-system-monitor.
* Fri Feb 24 2006 - sbrabec@suse.cz
- Updated strings from nautilus-share.
- Updated Czech and Hungarian.
* Wed Feb 22 2006 - sbrabec@suse.cz
- Added support for gnome-menus (144946#c12).
- Updated Czech, German and Hungarian translations.
* Fri Feb 17 2006 - sbrabec@suse.cz
- Updated Czech and Hungarian translation.
- Fixed merge if upstream translation is missing in some projects.
* Fri Feb 03 2006 - sbrabec@suse.cz
- Added Hungarian translation.
* Thu Feb 02 2006 - sbrabec@suse.cz
- Updated translation files for gnome-panel.
- Updated Czech translation.
* Wed Feb 01 2006 - sbrabec@suse.cz
- New SuSE package (#144946).

View File

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

0
ready Normal file
View File