[wp-trac] [WordPress Trac] #63713: Fatal Error on /wp-admin/options-permalink.php with Afrikaans translation
WordPress Trac
noreply at wordpress.org
Thu Jul 17 08:11:14 UTC 2025
#63713: Fatal Error on /wp-admin/options-permalink.php with Afrikaans translation
--------------------------+-----------------------------
Reporter: hermankritz | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Permalinks | Version:
Severity: normal | Resolution: duplicate
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by sabernhardt):
* status: new => closed
* version: 6.8.2 =>
* resolution: => duplicate
* milestone: Awaiting Review =>
Old description:
> Wordpress 6.8.2 running on PHP 8.2
>
> Issue appears on the admin dashboard when using the Afrikaans language in
> WordPress. From some inspection, there are placeholder mismatches in
> admin-af.po.
>
> {{{
> PHP Fatal error: Uncaught ValueError: Unknown format specifier "<" in
> /.../.../wp-admin/options-permalink.php:35\nStack trace:\n#0 /.../.../wp-
> admin/options-permalink.php(35): sprintf()\n#1 {main}\n thrown in
> /mnt/regstreeks.co.za/wp-admin/options-permalink.php on line 35
> }}}
>
> I have found 3 possible errors in the admin-af.po file:
>
> 1.
> Source text:
> {{{
> Every plugin and theme in WordPress.org’s directory is 100%% GPL or
> a similarly free and compatible license, so you can feel safe finding <a
> href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a
> plugin or theme from another source, make sure to <a href="%3$s">ask them
> if it’s GPL</a> first. If they don’t respect the WordPress
> license, we don’t recommend them.
> }}}
>
> Afrikaans translation:
> {{{
> Elke Plugin en tema in WordPress.org se gids is 100% GPL of 'n
> soortgelyke gratis en versoenbare lisensie. Dus kan jy veilig voel om <a
> href="%1$s">Plugins</a> en <a href="%2$s">temas</a> daar te vind. Indien
> jy 'n Plugin of tema van 'n ander bron gebruik, maak seker om <a
> href="%3$s">hulle eers te vra of dit GPL is</a>. Indien hulle nie die
> WordPress lisensie respekteer nie, sal ons hulle nie aanbeveel nie.
> }}}
>
> 2.
> Source text:
> {{{
> If you pick an option other than Plain, your general URL path with
> structure tags (terms surrounded by %s) will also appear in the custom
> structure field and your path can be further modified there.
> }}}
>
> Afrikaans translation:
> {{{
> Indien jy 'n ander opsie as Eenvoudig kies, sal jou algemene URL pad met
> struktuur sleutelwoorde (terms met <code>%</code> aan beide kante) sal
> ook wys in die unieke struktuur veld. Jou pad kan dan verder hiervandaan
> verander word.
> }}}
>
> 3.
> Source text:
> {{{
> When you assign multiple categories or tags to a post, only one can show
> up in the permalink: the lowest numbered category. This applies if your
> custom structure includes %1$s or %2$s.
> }}}
>
> Afrikaans translation:
> {{{
> Wanneer jy 'n klomp kategorieƫ of sleutelwoorde tot 'n artikel toewys,
> kan met een wys in die skakelstruktuur. Dit is van toepassing wanneer jou
> skakelstruktuur <code>%category%</code> of <code>%tag%</code> bevat.
> }}}
New description:
Wordpress 6.8.2 running on PHP 8.2
Issue appears on the admin dashboard when using the Afrikaans language in
WordPress. From some inspection, there are placeholder mismatches in
admin-af.po.
{{{PHP Fatal error: Uncaught ValueError: Unknown format specifier "<" in
/.../.../wp-admin/options-permalink.php:35\nStack trace:\n#0 /.../.../wp-
admin/options-permalink.php(35): sprintf()\n#1 {main}\n thrown in
/.../.../wp-admin/options-permalink.php on line 35}}}
I have found 3 possible errors in the admin-af.po file:
1.
Source text:
{{{Every plugin and theme in WordPress.org’s directory is 100%% GPL
or a similarly free and compatible license, so you can feel safe finding
<a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get
a plugin or theme from another source, make sure to <a href="%3$s">ask
them if it’s GPL</a> first. If they don’t respect the
WordPress license, we don’t recommend them.}}}
Afrikaans translation:
{{{Elke Plugin en tema in WordPress.org se gids is 100% GPL of 'n
soortgelyke gratis en versoenbare lisensie. Dus kan jy veilig voel om <a
href="%1$s">Plugins</a> en <a href="%2$s">temas</a> daar te vind. Indien
jy 'n Plugin of tema van 'n ander bron gebruik, maak seker om <a
href="%3$s">hulle eers te vra of dit GPL is</a>. Indien hulle nie die
WordPress lisensie respekteer nie, sal ons hulle nie aanbeveel nie.}}}
2.
Source text:
{{{If you pick an option other than Plain, your general URL path with
structure tags (terms surrounded by %s) will also appear in the custom
structure field and your path can be further modified there.}}}
Afrikaans translation:
{{{Indien jy 'n ander opsie as Eenvoudig kies, sal jou algemene URL pad
met struktuur sleutelwoorde (terms met <code>%</code> aan beide kante) sal
ook wys in die unieke struktuur veld. Jou pad kan dan verder hiervandaan
verander word.}}}
3.
Source text:
{{{When you assign multiple categories or tags to a post, only one can
show up in the permalink: the lowest numbered category. This applies if
your custom structure includes %1$s or %2$s.}}}
Afrikaans translation:
{{{Wanneer jy 'n klomp kategorieƫ of sleutelwoorde tot 'n artikel toewys,
kan met een wys in die skakelstruktuur. Dit is van toepassing wanneer jou
skakelstruktuur <code>%category%</code> of <code>%tag%</code> bevat. }}}
--
Comment:
Thanks for the report!
#58502 reported about this in another language, but Afrikaans is one of
two that still need correcting. I'll add a message in Slack for some
attention.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63713#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list