[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r20194: {translation} fix for translation priority (translation/trunk/tools/gsoc09)
Author: runa
Date: 2009-07-29 10:09:52 -0400 (Wed, 29 Jul 2009)
New Revision: 20194
Modified:
translation/trunk/tools/gsoc09/po2wml.sh
Log:
fix for translation priority
Modified: translation/trunk/tools/gsoc09/po2wml.sh
===================================================================
--- translation/trunk/tools/gsoc09/po2wml.sh 2009-07-29 12:42:17 UTC (rev 20193)
+++ translation/trunk/tools/gsoc09/po2wml.sh 2009-07-29 14:09:52 UTC (rev 20194)
@@ -18,9 +18,9 @@
podir=""
# A lot of the wml files have custom tags. These tags have been defined
-# in website/include/versions.wmi. I have also added the tags that
-# people usually forget to close.
-customtag=`echo $(cat "$wmldir/include/versions.wmi" | awk '{ printf "<%s> " , $2 }' | sed 's/<>//g') "<input> <hr> <br> <img>"`
+# in website/include/versions.wmi. Tags that people usually forget to close,
+# as well as tags that are not defined in versions.wmi have been added.
+customtag=`echo $(cat "$wmldir/include/versions.wmi" | awk '{ printf "<%s> " , $2 }' | sed 's/<>//g') "<svnsandbox> <svnwebsite> <input> <hr> <br> <img>"`
# We also need to use the nodefault option of po4a; space separated list
# of tags that the module should not try to set by default in any
@@ -53,8 +53,9 @@
# Get the basename of the file we are dealing with
pofile=`basename $file`
- # Strip the file for its original extension and add .wml
- wmlfile="${pofile%%.*}.wml"
+ # Strip the file for its original extension and the translation
+ # priority, and add .wml
+ wmlfile="`echo $pofile | cut -d . -f 2`.wml"
# Find out what directory the file is in.
indir=`dirname $file`