Author: cazfi
Date: Fri Jan  8 15:32:45 2016
New Revision: 31419

URL: http://svn.gna.org/viewcvs/freeciv?rev=31419&view=rev
Log:
Show translation statistics of the ruledit domain in Ruledit Windows Installer

See patch #6803

Modified:
    branches/S2_6/win32/installer/Makefile
    branches/S2_6/win32/installer/create-freeciv-ruledit-nsi.sh

Modified: branches/S2_6/win32/installer/Makefile
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/win32/installer/Makefile?rev=31419&r1=31418&r2=31419&view=diff
==============================================================================
--- branches/S2_6/win32/installer/Makefile      (original)
+++ branches/S2_6/win32/installer/Makefile      Fri Jan  8 15:32:45 2016
@@ -67,6 +67,8 @@
        cd build-ruledit; ../../../configure --disable-client --disable-server 
--disable-fcmp --disable-freeciv-manual
        # make
        make -C build-ruledit
+       make -C build-ruledit/translations/ruledit update-po
+       make -C build-ruledit/bootstrap langstat_ruledit.txt
 
 build-freeciv-gtk3: build-freeciv-common
 

Modified: branches/S2_6/win32/installer/create-freeciv-ruledit-nsi.sh
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/win32/installer/create-freeciv-ruledit-nsi.sh?rev=31419&r1=31418&r2=31419&view=diff
==============================================================================
--- branches/S2_6/win32/installer/create-freeciv-ruledit-nsi.sh (original)
+++ branches/S2_6/win32/installer/create-freeciv-ruledit-nsi.sh Fri Jan  8 
15:32:45 2016
@@ -162,16 +162,16 @@
 ### additional languages ###
 
 cat <<EOF
-SectionGroup "Additional languages"
-
-EOF
-
-cat ../../bootstrap/langnames.txt |
+SectionGroup "Additional languages (translation %)"
+
+EOF
+
+cat ../../bootstrap/langstat_ruledit.txt |
 sort -k 2 |
-while read -r code name
+while read -r code prct name
 do
 if test -e $1/share/locale/$code/LC_MESSAGES/freeciv-ruledit.mo; then
-echo "  Section \"$name ($code)\""
+echo "  Section \"$name ($code) $prct\""
 echo "  SetOutPath \$INSTDIR\\share\\locale\\$code"
 echo "  File /r $1\\share\\locale\\$code\*.*"
 echo "  SetOutPath \$INSTDIR"
@@ -226,12 +226,12 @@
   \${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
 EOF
 
-  cat ../../bootstrap/langnames.txt |
+  cat ../../bootstrap/langstat_ruledit.txt |
   sort -k 2 |
-  while read -r code name
+  while read -r code prct name
   do
   if test -e $1/share/locale/$code/LC_MESSAGES/freeciv-ruledit.mo; then
-  echo "  \${NSD_CB_AddString} \$DefaultLanguageDropList \"$name ($code)\""
+  echo "  \${NSD_CB_AddString} \$DefaultLanguageDropList \"$name ($code) 
$prct\""
   fi
   done
 
@@ -250,10 +250,10 @@
   echo "    StrCpy \$DefaultLanguageCode \"en_US\""
   echo "  \${EndIf}"
 
-  cat ../../bootstrap/langnames.txt |
-  while read -r code name
+  cat ../../bootstrap/langstat_freeciv.txt |
+  while read -r code prct name
   do
-    echo "  \${If} \$LangName == \"$name ($code)\""
+    echo "  \${If} \$LangName == \"$name ($code) $prct\""
     echo "    StrCpy \$DefaultLanguageCode \"$code\""
     echo "  \${EndIf}"
   done


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to