summaryrefslogtreecommitdiff
path: root/textproc/translate-toolkit/files/patch-tools-pomigrate2
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-09-27 19:29:50 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-09-27 19:29:50 +0000
commit20e01801965f4dad6b5a5159f974f3aae3a1460c (patch)
tree4cfb99b5f5dddd277e783399fe7f9536f1611082 /textproc/translate-toolkit/files/patch-tools-pomigrate2
parentUpdtae to 1.66.0 (diff)
Add translate-toolkit 3.1.1
The Translate Toolkit is a set of software and documentation designed to help make the lives of localizers both more productive and less frustrating. The Toolkit is part of the Translate project. The software includes programs to convert localization formats to the common PO, and emerging XLIFF format. There are also programs to check and manage PO and XLIFF files. Online documentation includes guides on using the tools, running a localization project and how to localize various projects from OpenOffice.org to Mozilla. At its core the software contains a set of classes for handling various localization storage formats: DTD, properties, OpenOffice.org GSI/SDF, CSV, MO, Qt .ts, TMX, TBX, WordFast txt, Gettext .mo, Windows RC, and of course PO and XLIFF. It also provides scripts to convert between these formats. Also part of the Toolkit are Python programs to create word counts, merge translations and perform various checks on translation files. WWW: https://toolkit.translatehouse.org/ WWW: https://github.com/translate/translate
Notes
Notes: svn path=/head/; revision=550296
Diffstat (limited to 'textproc/translate-toolkit/files/patch-tools-pomigrate2')
-rw-r--r--textproc/translate-toolkit/files/patch-tools-pomigrate222
1 files changed, 22 insertions, 0 deletions
diff --git a/textproc/translate-toolkit/files/patch-tools-pomigrate2 b/textproc/translate-toolkit/files/patch-tools-pomigrate2
new file mode 100644
index 000000000000..db624196313b
--- /dev/null
+++ b/textproc/translate-toolkit/files/patch-tools-pomigrate2
@@ -0,0 +1,22 @@
+--- tools/pomigrate2.orig 2020-04-25 10:43:45 UTC
++++ tools/pomigrate2
+@@ -125,7 +125,7 @@ done
+
+ if [ "$option_use_compendium" != "" ]; then
+ echo "** Creating compendium from old files... **"
+- compendium=`mktemp tmp.compendium.XXXXXXXXXX`
++ compendium=`mktemp -t /tmp tmp.compendium.XXXXXXXXXX`
+ # Move and rename to work around inability of mktemp TEMPLATE to end on anything but X's
+ mv $compendium ${compendium}.po
+ compendium=${compendium}.po
+@@ -144,8 +144,8 @@ if [ ! $option_pot2po ]; then
+ [ -f $templates/${po}t ] && msgmerge --previous $option_verbose_msgmerge $option_no_fuzzy_matching $option_no_wrap $option_use_compendium $option_use_own_compendium --backup=off --update $new/$po $templates/${po}t
+ done
+ else
+- temp_pot2po_new=`mktemp -d tmp.XXXXXXXXXX`
+- temp_msgcat_new=`mktemp -d tmp.XXXXXXXXXX`
++ temp_pot2po_new=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
++ temp_msgcat_new=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
+ cp -rp $new/* $temp_pot2po_new
+ pot2po --errorlevel=traceback --progress=none $option_pot2po_use_compendium $option_pot2po_use_own_compendium -t $temp_pot2po_new $templates $temp_msgcat_new
+ for file in `cd $temp_msgcat_new; find . -name "*.po"`