From edf3ff5a53b353ed4a5d9d617bfd06a6c13b3bac Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 Aug 2016 11:52:49 +0200 Subject: Initialize a translation function It matches the API of ngettext(). --- application/Languages.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 application/Languages.php (limited to 'application') diff --git a/application/Languages.php b/application/Languages.php new file mode 100644 index 00000000..c8b0a25a --- /dev/null +++ b/application/Languages.php @@ -0,0 +1,21 @@ + 1 ? $nText : $text; + return sprintf($actualForm, $nb); +} -- cgit v1.2.3