Translation helper scripts
Go to file
Andrius Štikonas df9c64376f Replace kf5 with kf6. 2024-01-18 23:37:49 +00:00
CHANGELOG Fix wrong svn up path for documentation in checkout script. 2009-03-22 16:16:12 +02:00
COPYING Update the address of the Free Software Foundation. 2009-02-11 21:20:12 +02:00
README Updated README file to reflect massive changes. 2015-04-19 20:30:45 +03:00
applysed Remove scripty. 2021-01-29 20:05:07 +00:00
autotranslate Adapt to KF5 2014-11-21 23:12:46 +02:00
backport Replace kf5 with kf6. 2024-01-18 23:37:49 +00:00
checkout Replace kf5 with kf6. 2024-01-18 23:37:49 +00:00
init-po-files Replace kf5 with kf6. 2024-01-18 23:37:49 +00:00
obsolete Replace kf5 with kf6. 2024-01-18 23:37:49 +00:00
pack-po-files Replace kf5 with kf6. 2024-01-18 23:37:49 +00:00
pocompare More shellcheck fixes. 2023-02-26 00:27:22 +08:00
pocompare-kdiff3 More shellcheck fixes. 2023-02-26 00:27:22 +08:00
potopot More shellcheck fixes. 2023-02-26 00:27:22 +08:00
poupdate shellcheck fixes. 2021-01-29 20:05:52 +00:00
stripfuzzy More shellcheck fixes. 2023-02-26 00:27:22 +08:00
ths-variables Adapt to KF5 2014-11-21 23:12:46 +02:00

README

"Translation helper scripts" (ths-scripts) might mostly be of help to translation team coordinators who want easy way to do some coordinator type operations: add files sent to them by team members automatically, do automatic translation of the whole file tree, get rid of fuzzy strings, change certain words in the whole project, convert translation files to pot (template) files, merge translations, etc.

These scripts have been inspired by the excellent "translation-toolkit" project. Some code (for example, in autotranslate script) has been borrowed from there.

INSTALLATION
Make the scripts executable. You can do that by running this command in the directory with scripts: "chmod +x *; chmod -x README CHANGELOG COPYING". Then simply copy the scripts to some directory in your PATH. If you have previously installed older versions of ths-scripts, remove them by running in the directory with those scripts this command: "rm ths-*".

DEPENDENCIES
Most scripts depend on gettext. pocompare-kdiff3 depends also on kdiff3 KDE package (you can easily modify the script to use meld, kompare or other graphical diff frontent of your choice).

USAGE
Run a command without any arguments to see the usage instructions.

AVAILABLE SCRIPTS
applysed - apply a sed script to the whole project (the sed commands have to be supplied in an external file).
autotranslate - automatically translates project files (may initialize files that have not been started to translate) using a specified compendium.
backport - backport new translations to an older branch.
checkout - (KDE specific) checks out KDE translation repositories for specified language or updates repositories if they have been checked out before.
init-po-files - (KDE specific) initiated po files, whose translation has not been started, based on pot file tree.
pack-po-files - (KDE specific) packs stable and trunk translation trees.
pocompare - compare two translation files using diff, unwrapps first for best comparison.
pocompare-kdiff3 - compare two translation files using kdiff3, unwrapps first for best comparison.
potopot - converts po files to pot (template) files (basically strips all the translation).
poupdate - takes a bunch of files from a single directory and transfers the translations therein to a translation file tree; may use the new files either as primary, or as secondary translations.
stripfuzzy - makes all fuzzy strings non-fuzzy (and non-translated) in a translation project.

CHANGELOG
0.9 (2015-04-29) - scripts renamed (stripping ths- and .sh parts). Serious revision of code by Andrius štikonas. New scripts by Andrius Štikonas. 
0.2 (2008-01-18) - updated ths-applysed.sh command, removed a serious flaw that would at times eat half a file where it should not have.
0.1 (2007-09-17) - initial release.

AUTHOR 
Andrius Štikonas <andrius@stikonas.eu>, 2008-2015
Donatas Glodenis <dgvirtual@akl.lt>, 2007

LICENCE
These scripts are distributed under the GPL v2 licence. It is included as file COPYING.  See header of each script for details.