From 738c6ce41e698826b8cf408809aa40ccedfe8101 Mon Sep 17 00:00:00 2001 From: "Skylar \"The Cobra\" Widulski" Date: Sat, 2 Dec 2023 01:17:53 -0500 Subject: [PATCH] Add echo Signed-off-by: Skylar "The Cobra" Widulski --- en/translations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) . "%

    "; } ?>