-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMoreI18N.php
29 lines (23 loc) · 1.09 KB
/
MoreI18N.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace Cissee\WebtreesExt;
use Fisharebest\Webtrees\I18N;
class MoreI18N {
//functionally same as I18N::translate,
//different name prevents gettext from picking this up
//(intention: use where already expected to be translated via main webtrees)
public static function xlate(string $message, ...$args): string {
return I18N::translate($message, ...$args);
}
//functionally same as I18N::translateContext,
//different name prevents gettext from picking this up
//(intention: use where already expected to be translated via main webtrees)
public static function xlateContext(string $context, string $message, ...$args): string {
return I18N::translateContext($context, $message, ...$args);
}
//functionally same as I18N::plural,
//different name prevents gettext from picking this up
//(intention: use where already expected to be translated via main webtrees)
public static function plural(string $singular, string $plural, int $count, ...$args): string {
return I18N::plural($singular, $plural, $count, ...$args);
}
}