Does translate.sh work definitely?
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Ubuntu Documentation |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
I could not create xml/omf files by translate.sh
$ cd ubuntu-
$ ./translate.sh -d about-ubuntu -l ja
Entering about-ubuntu
ja
about-ubuntu.xml
Error: You can merge translations with only one XML file at a time.
Error: cannot open file 'C/-C.omf'.
Validating ja/.xml ...
warning: failed to load external entity "ja/.xml"
I reviced translate.sh as follows, and succeeded.
----
--- translate.sh.orig 2007-09-20 06:12:56.000000000 +0900
+++ translate.sh 2007-09-20 06:42:01.000000000 +0900
@@ -38,7 +38,7 @@
for i in C/*xml; do
j=$(basename ${i} C/)
echo ${j}
- xml2po -e -p ${1} C/${j} C/${j} >${y}/${j}
+ xml2po -e -p ${1} C/${j} >${y}/${j}
done
xml2po -e -p ${1} C/$doc-C.omf >${y}/$doc-${y}.omf
sed -i -e s@\"C\"@\"${y}\"@g -e s@C/@${y}/@g ${y}/$doc-${y}.omf
@@ -62,14 +62,14 @@
while getopts "d:l:" Option
do
case ${Option} in
- d) document=
+ d) doc=${OPTARG};;
l) lang=${OPTARG};;
*) echo "Please, specify an argument.";;
esac
done
-if [ ${document} ]; then
- choose_language ${document} ${lang}
+if [ ${doc} ]; then
+ choose_language ${doc} ${lang}
else
for doc in `cat libs/shipped-docs`
do

Hi, you are right - it looks like it isn't working. I'll take a look into this, your patch might help, so thanks for that!