OBS User unknown 2009-02-19 21:23:46 +00:00 committed by Git OBS Bridge
parent 92aa6a6f6d
commit 3be4167942
4 changed files with 37 additions and 19 deletions

9
HOWTO
View File

@ -30,6 +30,15 @@ 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-forge):

38
README
View File

@ -1,7 +1,7 @@
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 works only with packages that can use intltool for translation.
It contains:
@ -19,14 +19,14 @@ tool:
gnome-patch-translation-files.tar.bz2: Files created by
COMPENDIUM_UPDATE_MODE=1 gnome-patch-translation-update collected from
all needed packages.
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 should be sent to translators for update.
translation. These files are sent to translators by the update process.
@ -35,9 +35,7 @@ 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) Include selected packages to gnome-patch-translation.
You have to do following changes in the spec file:
2) You have to do following changes in the spec file:
...
+BuildRequires: gnome-patch-translation
@ -50,21 +48,25 @@ You have to do following changes in the spec file:
...
+gnome-patch-translation-update
3) You have to update gnome-patch-translation package, if any
translatable string is changed in any patch.
3) Get source of package gnome-patch-translation and include selected
packages to gnome-patch-translation.conf, variable GPT_PACKAGES.
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.
4) See Novell Forge LCN repository and update
gnome-patch-translation-collect from translation collection tools:
https://forgesvn1.novell.com/svn/suse-i18n/trunk/lcn/50-tools
4) Then you have to provide translations for translators:
HOW TO PROVIDE TRANSLATIONS
See HOWTO in this package source.
You have to update strings for translators, if any translatable string
in any patch is changed.
See Novell Forge LCN repository for more:
https://forgesvn1.novell.com/svn/suse-i18n
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.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
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

View File

@ -23,7 +23,7 @@ License: GPL v2 or later
Group: System/GUI/GNOME
AutoReqProv: on
Version: 0.1
Release: 216
Release: 218
Summary: Collect and Merge Translations From RPM Patches
Source: gnome-patch-translation-files.tar.bz2
Source1: gnome-patch-translation.tar.bz2
@ -75,6 +75,8 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gnome-patch-translation
%changelog
* Thu Feb 19 2009 sbrabec@suse.cz
- Updated README and HOWTO to describe current work-flow.
* Thu Feb 05 2009 sbrabec@suse.cz
- Updated cs, hu, it, ja, ko, nb, pt_BR, ru.
- Added evolution (bnc#464770).