diff --git a/en/translations.php b/en/translations.php index 2480827..5223bfc 100644 --- a/en/translations.php +++ b/en/translations.php @@ -24,7 +24,7 @@ global $const; global $langs; - $sum = shell_exec('cd /var/www/website; $(($(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 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))"'); return "
  • " . $langs[$tl][0] . " (" . $langs[$tl][1] . ", /" . $tl . "/)" . "
  • \n
    \n" . intdiv(($sum * 100), $const) . "%

    "; } ?>