Skip to content

Commit 403120d

Browse files
committed
Fix text domain for twig templates
Accept any domain now.
1 parent eed1168 commit 403120d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/Services.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function register(Pimple $container)
7676
$twig->addFunction($function);
7777

7878
$function = new Twig_SimpleFunction(
79-
'__', function ($id) {
80-
return __($id, 'publishpress-authors');
79+
'__', function ($id, $domain = 'publishpress-authors') {
80+
return __($id, $domain);
8181
}
8282
);
8383
$twig->addFunction($function);

0 commit comments

Comments
 (0)