Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#63713 closed defect (bug) (duplicate)

Fatal Error on /wp-admin/options-permalink.php with Afrikaans translation

Reported by: hermankritz's profile hermankritz Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Permalinks Keywords:
Focuses: administration Cc:

Description (last modified by sabernhardt)

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&#8217;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&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;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.

Change History (1)

#1 @sabernhardt
9 months ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 6.8.2 deleted

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.

Note: See TracTickets for help on using tickets.