diff --git a/src/functions/gettext.php b/src/functions/gettext.php index fe0d949a..852a9fdd 100644 --- a/src/functions/gettext.php +++ b/src/functions/gettext.php @@ -6,7 +6,7 @@ * @author Jay Trees */ -function __(string $text) +function __(string $text): string { global $translations; @@ -22,3 +22,8 @@ function __(string $text) return htmlentities($text); } + +function _n(string $singular, string $plural, int $amount): string +{ + return 1 === $amount ? __($singular) : __($plural); +} diff --git a/src/pages/profile.php b/src/pages/profile.php index f752e783..1d0a069d 100644 --- a/src/pages/profile.php +++ b/src/pages/profile.php @@ -317,7 +317,20 @@ $page->navigation();
-
+
+ +