Author: mdke
Date: Fri Oct  5 08:34:07 2007
New Revision: 4420

Modified:
   branches/gutsy/debian/rules

Log:
only install translations over 90% complete (temporary)



Modified: branches/gutsy/debian/rules
==============================================================================
--- branches/gutsy/debian/rules (original)
+++ branches/gutsy/debian/rules Fri Oct  5 08:34:07 2007
@@ -31,15 +31,15 @@
                /usr/share/ubuntu-artwork/home/locales-ubuntu \
                ../index.html
 
-# Install the documents; skip documents which are less than 30% translated
+# Install the documents; skip documents which are less than 90% translated
 
        set -x; for doc in `cat ubuntu/libs/shipped-docs`; do \
                numstrings=`LANG=C msgfmt --statistics ubuntu/$$doc/*.pot 2>&1 
| sed -r 's/^.* ([[:digit:]]+) untranslated.*$$/\1/'`; \
                        for lang in `ls ubuntu/$$doc/`; do \
                                if [ -e ubuntu/$$doc/po/$$lang.po ]; then \
                                        translated=`LANG=C msgfmt -o /dev/null 
--statistics ubuntu/$$doc/po/$$lang.po 2>&1| cut -f1 -d\ `; \
-                                       if [ "`echo "$$translated./$$numstrings 
> 0.3" | bc -l`" = "0" ]; then \
-                                               echo "$$doc $$lang is less than 
30% translated, skipping"; \
+                                       if [ "`echo "$$translated./$$numstrings 
> 0.9" | bc -l`" = "0" ]; then \
+                                               echo "$$doc $$lang is less than 
90% translated, skipping"; \
                                                continue; \
                                        fi; \
                                fi; \
@@ -61,7 +61,7 @@
                        for lang in `ls generic/$$doc/`; do \
                                if [ -e generic/serverguide/po/$$lang.po ]; 
then \
                                        translated=`LANG=C msgfmt -o /dev/null 
--statistics generic/serverguide/po/$$lang.po 2>&1| cut -f1 -d\ `; \
-                                       if [ "`echo "$$translated./$$numstrings 
> 0.30" | bc -l`" = "0" ]; then \
+                                       if [ "`echo "$$translated./$$numstrings 
> 0.90" | bc -l`" = "0" ]; then \
                                                echo "$$doc $$lang is less than 
30% translated, skipping"; \
                                                continue; \
                                        fi; \

-- 
ubuntu-doc-commits mailing list
ubuntu-doc-commits@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc-commits

Reply via email to