Sync from SUSE:SLFO:Main gnome-patch-translation revision d93e3ee5fe55a58cf1cd728c9c4c9b38

This commit is contained in:
Adrian Schröter 2024-05-03 13:00:54 +02:00
commit 98b7d6f15c
16 changed files with 1098 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

16
HEADER.pot Normal file
View File

@ -0,0 +1,16 @@
# 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: 2018-03-06 20:18+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"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

99
HOWTO Normal file
View File

@ -0,0 +1,99 @@
scripts for gnome-patch-translation maintainers
===============================================
HOW TO UPDATE TRANSLATIONS
Scripts for gnome-patch-translation package maintainers are intended to
update package from LCN, then update translations from latest package
shapshots and then merge them back to LCN.
Note that in difference to all other packages, gnome-patch-translation
provides fuzzy strings from upstream translations not present in the po
file.
These scripts are intended to be started from inside directory
containing unpacked sources of gnome-patch-translation. Please also see
HOWTO in gnome-patch-translation sources.
Run scripts in following order:
./update-step1-update-translations-from-lcn (calls gnome-patch-translation-from-lcn):
Collects translations from LCN and updates gnome-patch-translation.tar.bz2.
./update-step2-update-strings-from-packages (calls gnome-patch-translation-collect):
Collects strings in patches.
You need following special tools: osc svn
Note: These tools work on packages already submitted and accepted into
defined repository. If you want to use more fresh copy of your package,
you can use a simple trick: When package is checked out (during
update-step2-update-strings-from-packages) and before the source is
unpacked, pause tool running by Ctrl+S. Then replace the source
directory with a directory you want to use in an another terminal.
Return back, press Ctrl+Q and the tool will continue with sources you
need.
./update-step3-upload-strings-to-lcn (calls gnome-patch-translation-to-lcn):
Picks updated translations and fuzzy files and puts them back to LCN.
After successful call please call
./update-step1-update-translations-from-lcn
once again.
If gnome-patch-translation-to-lcn fails due to third party commits
during gnome-patch-translation-collect run, run script:
./update-solve-upload-conflict
Then you can continue with
./update-step3-upload-strings-to-lcn
gnome-patch-translation-from-lcn:
You can optionally repeat its run to merge new strings to the package.
If you will not do it, next changelog checker will consider files as
changes and you will have to check manually, which changes were provided
by translators.
After using tools, submit updated packages!
DETAILS
Tools perform following steps for you:
1) Collect all files created by COMPENDIUM_UPDATE_MODE=1
gnome-patch-translation-update in all included packages. They are picked
by calling %prep phase of rpmbuild.
2) Use upper mentioned files to update
gnome-patch-translation-files.tar.bz2
3) Prepare 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

97
README Normal file
View File

@ -0,0 +1,97 @@
This package is intended for collection of translation strings in
patches and merging translations back to packages.
It works only with packages that can use 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 related 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 are sent to translators by the update process.
THE WORK FLOW SUMMARY:
Update of gnome-patch-translation string is done manually. You need to
check-out gnome-patch-translation source package and read HOWTO. The
package contains update script wrappers. Update scripts themselves
reside in LCN SVN and they are downloaded during the update run.
1. Package with gnome-patch-translation infrastructure is checked-in.
2. Package is added to gnome-patch-translation.conf in
gnome-patch-translation package and in LCN SVN.
3. Next time of update-strings-from-packages (in gnome-patch-translation
sources), strings are collected.
4. After run of upload-strings-to-lcn (in gnome-patch-translation
sources), pot files (and string proposals) are uploaded to the LCN
SVN.
5. Translators need some time to pick new pot file and complete
translations.
6. Next time of update-translations-from-lcn (in gnome-patch-translation
sources), translations appear in gnome-patch-translation.
7. gnome-patch-translation is checked-in, packages are recompiled and
translations will appear in its place.
8. Next translation round everything repeats from step 3.
HOW TO PREPARE PACKAGE FOR TRANSLATION
1) Search for candidates on unpacked source packages:
( find -name '*patch*' ; find -name '*dif*' ) | xargs fgrep '_("' | less | grep ':[+-]' | less
2) 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) Get source of package gnome-patch-translation and include selected
packages to gnome-patch-translation.conf, variable GPT_PACKAGES.
4) Then you have to provide translations for translators:
HOW TO PROVIDE TRANSLATIONS
You have to update strings for translators, if any translatable string
in any patch is changed.
Follow HOWTO in gnome-patch-translation package source and your strings
will be populated to translators.
Note: These tools work on packages already submitted and accepted into
defined repository. If you want to use more fresh copy of your package,
you can use a simple trick: When package is checked out (during
update-step2-update-strings-from-packages) and before the source is
unpacked, pause tool running by Ctrl+S. Then replace the source
directory with a directory you want to use in an another terminal.
Return back, press Ctrl+Q and the tool will continue with sources you
need.

BIN
gnome-patch-translation-files.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,30 @@
#!/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
touch empty.po
for LNG in $(<../gnome-patch-translation-merged/lang.lst) ; do
msgcomm --more-than=0 -o ../gnome-patch-translation-merged/$LNG.po empty.po *-$LNG.po
done
rm empty.po
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,51 @@
#! /bin/bash
if test "$1" = "--help" ; then
echo "Patch translation update tool works in top directory of unpacked source code."
echo "$0 is an utility that is called before applying of patches."
echo "Usage: $0 [translation_directory] [translation_domain] [command to create pot file]"
fi
set -o errexit
shopt -s nullglob
TOP_DIR=$PWD
DIR=${1:-po}
DOMAIN=$2
if test -d "$1" ; then
EXT=."$1"
else
EXT=
fi
cd "$DIR"
# This action takes some time. But run it every time to confirm, that update is still needed.
if test -z "$3" ; then
if test -z "$DOMAIN" ; then
intltool-update --pot
else
intltool-update --gettext-package=$DOMAIN --pot
fi
else
eval $3
fi
POT_NOT_UNIQUE=false
MISSING=true
for POT in *.pot ; do
if $POT_NOT_UNIQUE ; then
echo "ERROR: Directory $DIR contains more than one .pot file."
exit 1
fi
POT_NOT_UNIQUE=true
MISSING=false
mkdir -p "../gnome-patch-translation$EXT/old"
mv "$POT" "../gnome-patch-translation$EXT/old"
done
if $MISSING ; then
echo "ERROR: Directory $DIR does not contains any .pot file."
exit 1
fi

View File

@ -0,0 +1,101 @@
#! /bin/bash
if test "$1" = "--help" ; then
echo "Patch translation update tool works in top directory of unpacked source code."
echo "$0 is an utility that is called after applying of all patches."
echo "Usage: $0 [translation_directory] [translation_domain] [command to create pot file]"
fi
set -o errexit
shopt -s nullglob
TOP_DIR=$PWD
DIR=${1:-po}
DOMAIN=$2
if test -d "$1" ; then
EXT=."$1"
else
EXT=
fi
cd "$DIR"
# This action takes some time. But run it every time to confirm, that update is still needed.
if test -z "$3" ; then
if test -z "$DOMAIN" ; then
intltool-update --pot
else
intltool-update --gettext-package=$DOMAIN --pot
fi
else
eval $3
fi
POT_NOT_UNIQUE=false
MISSING=true
for POT in *.pot ; do
if $POT_NOT_UNIQUE ; then
echo "ERROR: Directory $DIR contains more than one .pot file."
exit 1
fi
POT_NOT_UNIQUE=true
MISSING=false
POT=${POT%.pot}
done
if $MISSING ; then
echo "ERROR: Directory $DIR does not contains any .pot file."
exit 1
fi
mkdir $TOP_DIR/gnome-patch-translation$EXT/new
cp -a $POT.pot $TOP_DIR/gnome-patch-translation$EXT/new
cd $TOP_DIR/gnome-patch-translation$EXT
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 directory."
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 "$TOP_DIR/$DIR"
# 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'/@' $TOP_DIR/gnome-patch-translation$EXT/$POT-patch.pot
for PO in *.po ; do
LNG=${PO%.po}
echo "Creating fuzzy $PO for gnome-patch-translation."
msgmerge -o $TOP_DIR/gnome-patch-translation$EXT/$POT-$LNG.po $PO $TOP_DIR/gnome-patch-translation$EXT/$POT-patch.pot
sed '/^#:/s@ \.\./@ '$POT'/@' <$TOP_DIR/gnome-patch-translation$EXT/$POT-$LNG.po >$TOP_DIR/gnome-patch-translation$EXT/$POT-$LNG.po.new
msgattrib --no-obsolete --force-po $TOP_DIR/gnome-patch-translation$EXT/$POT-$LNG.po.new -o $TOP_DIR/gnome-patch-translation$EXT/$POT-$LNG.po
rm $TOP_DIR/gnome-patch-translation$EXT/$POT-$LNG.po.new
done
echo "================================================================="
echo " Translatable strings from patches were written to"
echo " gnome-patch-translation$EXT/."
echo " If you did any translatable string change in any patch,"
echo " please follow HOWTO in gnome-patch-translation package source."
echo "================================================================="
else
echo " Skipping compendium update. Use COMPENDIUM_UPDATE_MODE=1 to force it."
fi

View File

@ -0,0 +1,507 @@
-------------------------------------------------------------------
Tue Feb 1 13:00:30 UTC 2022 - Dirk Müller <dmueller@suse.com>
- invoke bash for bash scripts (bsc#1195391)
-------------------------------------------------------------------
Tue Mar 6 20:08:11 CET 2018 - sbrabec@suse.cz
- Updated ko, lt, nn, pl, sk, sv, uk, zh_TW (bsc#1085376).
- Version bump to 15.0:
* Updated for the latest Factory (1 new strings, obsolete xchat,
gstreamer-0_10).
-------------------------------------------------------------------
Wed Feb 28 16:29:13 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
-------------------------------------------------------------------
Thu Sep 4 17:59:40 CEST 2014 - sbrabec@suse.cz
- Version bump to 13.2:
* Updated for the latest Factory (0 new strings, 6 obsolete).
- Updated ca, ja.
- gnome-patch-translation.conf: Remove dropped gnome-panel and
gnome-screensaver.
-------------------------------------------------------------------
Fri Oct 18 21:12:06 CEST 2013 - sbrabec@suse.cz
- Updated pl, ro, zh_CN.
-------------------------------------------------------------------
Tue Feb 26 15:22:18 CET 2013 - sbrabec@suse.cz
- Added gstreamer (no new strings).
-------------------------------------------------------------------
Mon Feb 11 19:57:54 CET 2013 - sbrabec@suse.cz
- Updated pl, ro.
-------------------------------------------------------------------
Fri Jan 18 20:55:15 CET 2013 - sbrabec@suse.cz
- Updated pl, ro.
- Allow to set translation domain.
-------------------------------------------------------------------
Mon Jan 7 20:52:57 CET 2013 - sbrabec@suse.cz
- Updated ar, fr, hu, lt, pl, ro, wa.
- Updated for the latest Factory (0 new strings, 3 obsolete).
-------------------------------------------------------------------
Tue Jul 24 17:16:14 CEST 2012 - sbrabec@suse.cz
- Updated ar, cs, de, el, es, fi, fr, gl, hu, km, lt, nb, pl, pt,
pt_BR, ro, zh_CN, zh_TW.
- Migrate to svn.opensuse.org.
-------------------------------------------------------------------
Thu Oct 20 15:03:34 CEST 2011 - sbrabec@suse.cz
- Updated da, el, fr, hu, it, ja, nb, nl, pl, ru.
- Fix of update-solve-upload-conflict supplementary script.
-------------------------------------------------------------------
Fri Oct 14 16:15:18 CEST 2011 - sbrabec@suse.cz
- Added several packages with strings in patches (9 new strings).
- Updated el, hu, it, km, pl, pt_BR, zh_TW.
-------------------------------------------------------------------
Tue Jun 21 18:44:19 CEST 2011 - sbrabec@suse.cz
- Updated da, de, es, fi, fr, gl, hr, hu, it, ja, km, lt, nb, nl,
pl, pt_BR, ro, ru, wa.
- Updated for the latest Factory.
-------------------------------------------------------------------
Fri Feb 4 19:59:45 CET 2011 - sbrabec@suse.cz
- Updated all available translations for 11.4.
-------------------------------------------------------------------
Wed Nov 24 14:15:51 CET 2010 - sbrabec@suse.cz
- Updated fi.
- Updated for the latest Factory.
-------------------------------------------------------------------
Mon Sep 6 19:08:59 CEST 2010 - sbrabec@suse.cz
- Updated de, lt, ru.
- Updated for the latest Factory.
-------------------------------------------------------------------
Wed Jun 16 15:42:08 CEST 2010 - sbrabec@suse.cz
- Updated af, bn, ca, el, et, fr, gl, gu, hi, hr, ka, km, lt, mk,
mr, nb, pa, pl, pt, ro, si, sl, sr, ta, uk, wa, xh, zu.
-------------------------------------------------------------------
Tue Jun 1 19:12:00 CEST 2010 - sbrabec@suse.cz
- Updated cs, da, es, fi, fr, gl, hu, it, ja, km, lt, nb, nl, pl,
pt_BR, ro, ru, sk, uk.
- Updated list of packages.
- Plural declaration added into HEADER.pot (bnc#594753).
-------------------------------------------------------------------
Mon Mar 8 20:29:20 CET 2010 - sbrabec@suse.cz
- Updated gl, lt, pt_BR, ro, wa, zh_TW.
- Updated list of packages with patches.
- Updated strings from the latest Factory (19 new strings).
- LCN migrated to Berlios.
-------------------------------------------------------------------
Thu Oct 29 17:12:00 CET 2009 - sbrabec@suse.cz
- Updated da, fr, gl, it, ko, lt, nb, pl, ru.
- 11 lost gtk2 strings from the old version re-added.
-------------------------------------------------------------------
Wed Oct 21 13:09:25 CEST 2009 - sbrabec@suse.cz
- Updated de, fi, hu, ja, km, ko, nb, nl, pl, sk.
-------------------------------------------------------------------
Mon Oct 19 18:07:37 CEST 2009 - sbrabec@suse.cz
- Updated cs, da, de, es, fi, fr, gl, hu, it, ja, km, ko, nb, nl,
pl, pt_BR, ro, ru, sk, uk, wa, zh_TW.
- Added libgnomesu (bnc#541653, 6 new strings).
-------------------------------------------------------------------
Wed Sep 9 16:26:14 CEST 2009 - sbrabec@suse.cz
- Updated da, de, es, fr, gl, hr, hu, km, ko, nb, pl, uk, wa,
zh_TW.
- Added bluez-gnome (7 new strings).
-------------------------------------------------------------------
Tue Jun 30 13:28:35 CEST 2009 - sbrabec@suse.cz
- Updated ja, ko, nl, pl, pt_BR, ru, sk.
-------------------------------------------------------------------
Fri Jun 5 14:15:48 CEST 2009 - sbrabec@suse.cz
- Updated cs, da, de, en_GB, es, et, fi, fr, hu, it, ja, km, ko,
nb, nl, pa, pl, pt, pt_BR, ro, ru, sk, sr, sv, th, uk, zh_CN,
zh_TW.
- Fixes for bash 4.
-------------------------------------------------------------------
Thu Feb 19 18:13:41 CET 2009 - sbrabec@suse.cz
- Updated README and HOWTO to describe current work-flow.
-------------------------------------------------------------------
Thu Feb 5 15:22:46 CET 2009 - sbrabec@suse.cz
- Updated cs, hu, it, ja, ko, nb, pt_BR, ru.
- Added evolution (bnc#464770).
- Updated strings from the latest Factory snapshot (8 new strings).
-------------------------------------------------------------------
Tue Jan 27 16:40:35 CET 2009 - sbrabec@suse.cz
- Updated cs, da, de, en_US, es, fi, fr, gl, hu, it, ja, km, ko,
nb, nl, pa, pl, pt_BR, ru, uk, wa, zh_CN.
- Updated strings from the latest Factory (20 new strings).
-------------------------------------------------------------------
Fri Nov 21 17:06:10 CET 2008 - sbrabec@suse.cz
- Updated de, fi, fr, pt_BR, ru, sv.
- Updated strings from the latest Factory (11 new strings).
-------------------------------------------------------------------
Tue Nov 4 19:14:00 CET 2008 - sbrabec@suse.cz
- Package updating tools reworked and migrated to osc.
- Updated pl, pt_BR.
-------------------------------------------------------------------
Wed Oct 22 13:51:22 CEST 2008 - sbrabec@suse.cz
- Updated da, de, en_US, es, gl, hr, hu, it, ja, km, ko, nb, nl,
pl, pt_BR, ro, uk, wa, zh_CN.
-------------------------------------------------------------------
Wed Oct 8 12:03:28 CEST 2008 - sbrabec@suse.cz
- Updated af, ar, bg, bn, bs, ca, cs, cy, da, de, el, en_GB, en_US,
es, et, fi, fr, gl, gu, he, hi, hr, hu, id, it, ja, ka, km, ko,
lt, mk, mr, nb, nl, pa, pl, pt, pt_BR, ro, ru, si, sk, sl, sr,
sr@Latn, sv, ta, th, tr, uk, vi, wa, xh, zh_CN, zh_TW, zu.
-------------------------------------------------------------------
Wed Sep 17 18:10:00 CEST 2008 - sbrabec@suse.cz
- Updated af, ar, bg, bn, bs, ca, cs, cy, da, de, el, en_GB, en_US,
es, et, fi, fr, gl, gu, he, hi, hr, hu, id, it, ja, ka, km, ko,
lt, mk, mr, nb, nl, pa, pl, pt, pt_BR, ro, ru, si, sk, sl, sr,
sr@Latn, sv, ta, th, tr, uk, vi, wa, xh, zh_CN, zh_TW, zu.
-------------------------------------------------------------------
Wed Aug 20 12:34:31 CEST 2008 - sbrabec@suse.cz
- Updated cs, el, en_US, fi, hu, it, ko, pt_BR, ro, uk, zh_CN.
-------------------------------------------------------------------
Fri May 23 15:34:55 CEST 2008 - sbrabec@suse.cz
- Updated cs, it, ko, nl, pt_BR, sk, zh_TW.
-------------------------------------------------------------------
Fri May 9 16:34:36 CEST 2008 - sbrabec@suse.cz
- Updated pl, pt_BR.
-------------------------------------------------------------------
Fri May 2 15:27:17 CEST 2008 - sbrabec@suse.cz
- Updated fi, it, km, ko, pt_BR, zh_CN.
-------------------------------------------------------------------
Fri Apr 25 13:13:41 CEST 2008 - sbrabec@suse.cz
- Updated de, fr, hu, it, km, ko, pl, pt, ru, zh_CN.
- Updated strings for the latest Factory (1 new string).
-------------------------------------------------------------------
Fri Apr 18 13:28:29 CEST 2008 - sbrabec@suse.cz
- Updated da, de, el, en_US, es, fi, fr, hu, it, ja, ko, pl, pt,
pt_BR, th, uk, zh_CN, zh_TW.
- Updated strings for the latest Factory (13 string changes).
-------------------------------------------------------------------
Tue Mar 18 10:23:11 CET 2008 - sbrabec@suse.cz
- Updated en_US, es, et, fr, hu, ja, lt, nl, ro, uk, zh_CN, zh_TW.
- Do not replace translation header by a dumb one.
- Updated strings for the latest Factory (8 new strings).
-------------------------------------------------------------------
Mon Sep 24 13:19:09 CEST 2007 - sbrabec@suse.cz
- Updated sk.
-------------------------------------------------------------------
Mon Sep 17 18:14:35 CEST 2007 - sbrabec@suse.cz
- Updated fi, pt.
-------------------------------------------------------------------
Fri Sep 7 16:19:01 CEST 2007 - sbrabec@suse.cz
- Updated cs, hi, hu, pt_BR, sv, zh_CN.
-------------------------------------------------------------------
Fri Aug 24 12:31:57 CEST 2007 - sbrabec@suse.cz
- Updated da, de, fi, hu, it, km, nb, nl, pa, pl, pt, ru, sk, uk.
-------------------------------------------------------------------
Mon Aug 20 16:27:29 CEST 2007 - sbrabec@suse.cz
- Updated ca, cs, da, de, el, en_GB, en_US, es, et, fi, fr, hr, hu,
id, it, ja, km, lt, mk, mr, nb, nl, pa, pl, pt, pt_BR, ru, sk,
sr@Latn, sv, wa, zh_CN, zh_TW.
- Updated strings from the latest sources.
- Activated strings from uncommented gdm patches.
- Updated HOWTO.
-------------------------------------------------------------------
Fri Aug 3 16:26:20 CEST 2007 - sbrabec@suse.cz
- Updated strings from the latest sources.
- Branched separate project for Factory strings.
-------------------------------------------------------------------
Mon Jul 16 12:30:24 CEST 2007 - sbrabec@suse.cz
- Updated bn, gu, hi, hu, mr, ta.
- Updated strings from the latest sources.
-------------------------------------------------------------------
Wed Jun 13 14:20:16 CEST 2007 - sbrabec@suse.cz
- Updated af, ar, ca, hu, it, ja, pl, pt_BR, xh, zu.
- Updated strings from the latest sources.
-------------------------------------------------------------------
Fri Apr 20 16:56:37 CEST 2007 - sbrabec@suse.cz
- Updated hu.
- Updated strings from the latest sources.
-------------------------------------------------------------------
Tue Apr 10 12:07:57 CEST 2007 - sbrabec@suse.cz
- Updated af, ar, bg, bn, bs, ca, cs, cy, da, de, el, en_GB, en_US,
es, et, fi, fr, gl, gu, he, hi, hr, hu, id, it, ja, ka, km, ko,
lt, mk, mr, nb, nl, pa, pl, pt, pt_BR, ro, ru, sk, sl, sr,
sr@Latn, sv, ta, tr, uk, vi, xh, zh_CN, zh_TW, zu.
-------------------------------------------------------------------
Wed Feb 21 13:53:03 CET 2007 - sbrabec@suse.cz
- Updated af, bg, cs, da, de, el, en_US, es, et, fi, fr, hr, hu,
it, ja, km, lt, nb, nl, pa, pl, pt, pt_BR, ru, sk, sl, sr, sv,
uk, zh_CN, zh_TW, zu.
- Merged new strings from evolution-exchange.
-------------------------------------------------------------------
Wed Feb 14 17:33:58 CET 2007 - sbrabec@suse.cz
- Merged new strings from NetworkManager, gnome-power-manager and
evolution.
- Updated af, de, en_US, es, fr, hu, it, ja, pt_BR, xh, zh_CN,
zh_TW, zu.
- Do not strip pot headers to allow UTF-8 characters in sources.
-------------------------------------------------------------------
Tue Jan 23 16:43:59 CET 2007 - sbrabec@suse.cz
- Merged latest snapshots and updated HOWTO for Novell Forge SVN.
-------------------------------------------------------------------
Tue Jan 23 01:46:20 CET 2007 - ro@suse.de
- drop requires for gnome-filesystem
-------------------------------------------------------------------
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,27 @@
# gnome-patch-translation.conf: Configuration for
# updating of gnome-patch-translation package.
#
# Your account at svn.opensuse.org. Empty means your local id.
NAME=
# URI of LCN SVN repository.
# It should contain string "$BRANCH_PATH", which will be replaced by the
# BRANCH path (see below) and may contain NAME, which will be replaced by user name above.
LCN_SVN_URI='https://$NAME@svn.opensuse.org/svn/opensuse-i18n/$BRANCH_PATH/lcn'
# lcn branch on LCN SVN
LCN_BRANCH=trunk
# osc repositories with packages (space separated list in parentheses, first takes precedence)
OSC_REPOSITORIES=( openSUSE:Factory )
# list of packages in gnome-patch-translation project
# can re-appear after rebase of patches: gnome-power-manager gnome-session nautilus
GPT_PACKAGES="gconf-editor gnome-vfs2 gstreamer gtk2 pan"
# Version of gnome-patch-translation-package.
GPT_VERSION="15.0"
# osc server, empty for using of the osc default
OSC_APIURL=

View File

@ -0,0 +1,63 @@
#
# spec file for package gnome-patch-translation
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: gnome-patch-translation
Version: 15.0
Release: 0
Summary: Collect and Merge Translations From RPM Patches
License: GPL-2.0-or-later
Group: System/GUI/GNOME
Source: gnome-patch-translation-files.tar.bz2
Source1: gnome-patch-translation.tar.bz2
Source2: README
Source3: gnome-patch-translation-prepare
Source4: gnome-patch-translation-update
Source5: gnome-patch-translation-merge
Source6: HEADER.pot
Source7: HOWTO
Source8: update-step1-update-translations-from-lcn
Source9: update-step2-update-strings-from-packages
Source10: update-step3-upload-strings-to-lcn
Source11: update-solve-upload-conflict
Source12: gnome-patch-translation.conf
Requires: intltool
BuildArch: noarch
%description
This package provides scripts for collecting strings changed in RPM
patches and merging them to one translation compendium.
%prep
%setup -q -T -a0 -a1 -c %{name}-%{version}
cp -a %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} .
%build
bash gnome-patch-translation-merge
%install
mkdir -p %{buildroot}%{_bindir}
install gnome-patch-translation-prepare gnome-patch-translation-update %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/gnome-patch-translation
cp gnome-patch-translation/*.po gnome-patch-translation-merged/*.pot %{buildroot}%{_datadir}/gnome-patch-translation
%files
%doc README
%{_bindir}/*
%{_datadir}/gnome-patch-translation
%changelog

BIN
gnome-patch-translation.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,22 @@
#!/bin/bash
# Fail on errors:
set -e
if ! test -x 50-tools/gnome-patch-translation-collect ; then
echo "ERROR: 50-tools/gnome-patch-translation-collect is missing.
Please call update-step1-update-translations-from-lcn."
exit 1
fi
. ./gnome-patch-translation.conf
export CALLING_FROM_G_P_T=1
RPM_OSC_REPOSITORIES="${OSC_REPOSITORIES[*]}"
export LCN_SVN_URI LCN_BRANCH RPM_OSC_REPOSITORIES GPT_PACKAGES OSC_APIURL
# Delete the old LCN snapshot.
rm -rf LCN-${LCN_BRANCH//\//-}
# And then run needed scripts:
50-tools/gnome-patch-translation-from-lcn
exec 50-tools/gnome-patch-translation-remerge

View File

@ -0,0 +1,26 @@
#!/bin/bash
# Fail on errors:
set -e
# Read the config:
. ./gnome-patch-translation.conf
BRANCH=$LCN_BRANCH
if test "$BRANCH" = trunk ; then
BRANCH_PATH="$BRANCH"
else
BRANCH_PATH="branches/$BRANCH"
fi
if test -z "$NAME" ; then
NAME="$USER"
fi
# First of all, read set of update tools from SVN:
eval svn co $LCN_SVN_URI/50-tools
export CALLING_FROM_G_P_T=1
RPM_OSC_REPOSITORIES="${OSC_REPOSITORIES[*]}"
export LCN_SVN_URI LCN_BRANCH RPM_OSC_REPOSITORIES GPT_PACKAGES OSC_APIURL
# And then run gnome-patch-translation-from-lcn
exec 50-tools/gnome-patch-translation-from-lcn

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Fail on errors:
set -e
if ! test -x 50-tools/gnome-patch-translation-collect ; then
echo "ERROR: 50-tools/gnome-patch-translation-collect is missing.
Please call update-step1-update-translations-from-lcn."
exit 1
fi
export CALLING_FROM_G_P_T=1
# And then run gnome-patch-translation-collect
exec 50-tools/gnome-patch-translation-collect

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Fail on errors:
set -e
if ! test -x 50-tools/gnome-patch-translation-collect ; then
echo "ERROR: 50-tools/gnome-patch-translation-collect is missing.
Please call update-step1-update-translations-from-lcn."
exit 1
fi
export CALLING_FROM_G_P_T=1
# And then run gnome-patch-translation-to-lcn
exec 50-tools/gnome-patch-translation-to-lcn