[www-doc] [Git][VideoLAN.org/websites][master] Provide vlc-stats.ref file with i18n stats and a script to generate it.

Konstantin Pavlov gitlab at videolan.org
Tue Apr 14 23:19:27 CEST 2020



Konstantin Pavlov pushed to branch master at VideoLAN organization / websites


Commits:
429f2f5d by Konstantin Pavlov at 2020-04-15T00:19:11+03:00
Provide vlc-stats.ref file with i18n stats and a script to generate it.

While at it, made i18n stats page static

- - - - -


4 changed files:

- www.videolan.org/developers/i18n/Makefile.inc
- + www.videolan.org/developers/i18n/create-vlc-stats.ref.sh
- www.videolan.org/developers/i18n/index.php
- + www.videolan.org/developers/i18n/vlc-stats.ref


Changes:

=====================================
www.videolan.org/developers/i18n/Makefile.inc
=====================================
@@ -1,4 +1,2 @@
-PHP_IGNORES = vlcstat
-
 # Additionnal dependencies
 index.html: languages


=====================================
www.videolan.org/developers/i18n/create-vlc-stats.ref.sh
=====================================
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# This scripts creates a ref file to use with vlc website to report i18n statistics
+# put it in vlc checkout's po/ directory and run to produce a file with output
+#
+set -x
+
+OUTPUT="./vlc-stats.ref"
+umask 022
+export LC_ALL=C
+
+truncate -s 0 $OUTPUT
+
+for pofile in `ls *.po`; do
+  tmp=`'msgfmt' --statistics -o /dev/null $pofile 2>&1`
+  tr=`echo $tmp|awk '{print $1}'`
+  ut=`echo $tmp|awk '{print $7}'`
+  case $tr in
+    "")
+        tr=0
+        ;;
+  esac
+  case $ut in
+    "")
+        ut=`echo $tmp|awk '{print $4}'`
+        fu=0
+        ;;
+  esac
+  case $ut in
+    "")
+        ut=0
+        ;;
+  esac
+  case `echo $tmp|awk '{print $4}'` in
+    "")
+        fu=0
+        ;;
+  esac
+  case `echo $tmp|awk '{print $5}'` in
+    "fuzzy")
+        fu=`echo $tmp|awk '{print $4}'`
+        ;;
+  esac
+  echo $pofile" "$tr" "$fu" "$ut >> $OUTPUT
+done


=====================================
www.videolan.org/developers/i18n/index.php
=====================================
@@ -17,7 +17,7 @@
 <p>VLC media player is translated using <a
 href="http://www.gnu.org/software/gettext/gettext.html">GNU Gettext</a>.</p>
 
-<p><a href="vlcstat.php">Stats for VLC localization</a></p>
+<p><a href="vlcstat.html">Stats for VLC localization</a></p>
 
 <p><a href="vlc-howto.html">How to translate ?</a></p>
 


=====================================
www.videolan.org/developers/i18n/vlc-stats.ref
=====================================
@@ -0,0 +1,97 @@
+ach.po 879 1 5340
+af.po 1663 2 4555
+am.po 880 1 5339
+am_ET.po 1428 1 4791
+an.po 4363 3 1854
+ar.po 3501 2 2717
+as_IN.po 5503 4 713
+ast.po 4451 3 1766
+be.po 5311 3 906
+bg.po 4198 2 2020
+bn.po 3966 3 2251
+bn_IN.po 4603 3 1614
+br.po 2030 2 4188
+brx.po 5511 4 705
+bs.po 2384 2 3834
+ca.po 5457 0 763
+ca at valencia.po 5306 2 912
+cgg.po 598 1 5621
+co.po 2589 3 3628
+cs.po 3888 2 2330
+cy.po 3657 2 2561
+da.po 5830 4 386
+de.po 6220 0 0
+el.po 5647 4 569
+en_GB.po 516 2 5702
+es.po 6220 0 0
+es_MX.po 6213 4 3
+et.po 4864 2 1354
+eu.po 6220 0 0
+fa.po 1768 1 4451
+ff.po 1230 2 4988
+fi.po 5269 4 947
+fr.po 6220 0 0
+fur.po 660 1 5559
+fy.po 5644 4 572
+ga.po 2727 3 3490
+gd.po 2472 1 3747
+gl.po 6127 4 89
+gu.po 5509 4 707
+he.po 3927 3 2290
+hi.po 1095 2 5123
+hr.po 5044 2 1174
+hu.po 6220 0 0
+hy.po 1817 2 4401
+id.po 4893 3 1324
+is.po 4425 3 1792
+it.po 6205 0 15
+ja.po 6220 0 0
+ka.po 756 2 5462
+kab.po 953 2 5265
+kk.po 2600 2 3618
+km.po 5311 3 906
+kn.po 5392 2 826
+ko.po 6213 4 3
+ks_IN.po 5513 4 703
+ku_IQ.po 1114 1 5105
+ky.po 751 1 5468
+lg.po 815 1 5404
+lt.po 3906 0 2314
+lv.po 6220 0 0
+mai.po 5511 4 705
+ml.po 6220 0 0
+mn.po 1331 2 4887
+mr.po 5524 4 692
+ms.po 6220 0 0
+nb.po 5842 4 374
+ne.po 2625 3 3592
+nl.po 6220 0 0
+nn.po 3552 2 2666
+oc.po 5521 4 695
+pa.po 3432 4 2784
+pl.po 6220 0 0
+ps.po 714 2 5504
+pt_BR.po 6220 0 0
+pt_PT.po 6213 4 3
+ro.po 4480 2 1738
+ru.po 6220 0 0
+sc.po 802 0 5414
+si.po 2640 2 3578
+sk.po 6220 0 0
+sl.po 6163 4 53
+sq.po 957 1 5262
+sr.po 3148 1 3071
+sv.po 5536 0 684
+ta.po 1779 3 4438
+te.po 1758 3 4459
+th.po 3633 0 2587
+tr.po 6220 0 0
+tt.po 876 1 5343
+ug.po 926 0 5294
+uk.po 6220 0 0
+uz.po 899 2 5319
+vi.po 4528 4 1688
+wa.po 3515 2 2703
+zh_CN.po 6220 0 0
+zh_TW.po 4075 4 2141
+zu.po 881 1 5338



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/429f2f5d783c4c26b6157b9ffa7ab1c5b805a3cc

-- 
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/429f2f5d783c4c26b6157b9ffa7ab1c5b805a3cc
You're receiving this email because of your account on code.videolan.org.




More information about the www-doc mailing list