You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,9 @@ Register the translations with the `pll_translations` function. They will now be
24
24
25
25
```php
26
26
pll_translations([
27
+
'group' => [
28
+
'String that should be translatable by Polylang' => 'Explanation of how the string is used',
29
+
]
27
30
'general' => [
28
31
'English' => 'The english language',
29
32
'Swedish' => 'The swedish language',
@@ -38,7 +41,7 @@ pll_translations([
38
41
Then to fetch and print a translation you can use the `trans` function like you would use regular [__()](https://developer.wordpress.org/reference/functions/__) function.
0 commit comments