[gnome3-web] The output file will have the correct lang parameter.



commit 4f976e78136fdc4789e5d7f44b821e483f636e20
Author: Yaron Shahrabani <sh yaron gmail com>
Date:   Mon Apr 25 17:02:03 2011 +0300

    The output file will have the correct lang parameter.

 po/build.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/po/build.sh b/po/build.sh
index 4755417..8712d50 100755
--- a/po/build.sh
+++ b/po/build.sh
@@ -15,6 +15,8 @@ do
     do
       echo "Writing $HTMLFILE.$LANG"
       xml2po -p $POFILE -m xhtml -o $HTMLFILE.$LANG $HTMLFILE
+      grep -q '<html lang="en"' $HTMLFILE.$LANG && \
+	sed -i -e "s/lang=\"en\"/lang=\"$LANG\"/" $HTMLFILE.$LANG
       grep -q '<script src' $HTMLFILE.$LANG && \
         sed -i -e 's/\(<script src.*\)/\1<\/script>/' $HTMLFILE.$LANG
       grep -q '<iframe' $HTMLFILE.$LANG && \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]