diff --git a/eng/translations.php b/eng/translations.php index cbaa06a..b4d7180 100644 --- a/eng/translations.php +++ b/eng/translations.php @@ -25,7 +25,7 @@ global $const; global $langs; - $sum = shell_exec('cd /var/www/website; echo "$(($(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "^Only in en/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < en/"$line";printf "+"; done)0))"'); + $sum = shell_exec('cd /var/www/website; echo "$(($(diff 2>/dev/null -y --suppress-common-lines eng/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines eng/ '.$tl.'/ | grep "^Only in eng/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < eng/"$line";printf "+"; done)0))"'); $percent = intdiv(($sum * 100), $const); return "
  • " . $langs[$tl][0] . " (" . $langs[$tl][1] . ", /$tl/)
  • \n$percent% complete
    \n$percent%
    "; }