Does translate.sh work definitely?

Bug #141099 reported by Mitsuya Shibata
2
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-docs-7.09.2/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=${OPTARG};;
+ 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

Revision history for this message
Matthew East (mdke) wrote :

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!

Changed in ubuntu-doc:
status: New → Confirmed
Revision history for this message
Matthew East (mdke) wrote :

It's working now

Changed in ubuntu-doc:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.