mirror of
https://git.freebsd.org/ports.git
synced 2025-05-07 19:30:46 -04:00
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
22 lines
1.2 KiB
Text
22 lines
1.2 KiB
Text
--- 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"`
|