| Server IP : 54.36.91.62 / Your IP : 216.73.217.117 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/voscatalogues/templates/yootheme/packages/translation/ |
Upload File : |
<?php
namespace YOOtheme;
/**
* Translates the given message.
*
* @param array<string, string> $parameters
*/
function trans(string $id, array $parameters = [], ?string $locale = null): string
{
$app = Application::getInstance();
return $app(Translator::class)->trans($id, $parameters, $locale);
}
/**
* Translates the given choice message by choosing a translation according to a number.
*
* @param array<string, string> $parameters An array of parameters for the message
*/
function transChoice(
string $id,
int $number,
array $parameters = [],
?string $locale = null
): string {
$app = Application::getInstance();
return $app(Translator::class)->trans($id, $number, $parameters, $locale);
}