Hey, thanks for your message. I just looked the language code up, and it seems that cy would be the correct code for Welsh: https://translate.wordpress.org/locale/cy/
Is your language code somehow set to gb_WLS? The flags.php file is autogenerated. It uses input from the core and applies the exceptions from one of my build scripts.
Hi Dennis,
Thanks for your quick reply.
No my language code is cy:
<html lang=”cy” …
All my translations are working with the translation file cy.po/.mo so that’s working ok.
Here is a section of code from /css/flags.php
return $className = [
'af' => 'flag-icon-za',
'ary' => 'flag-icon-ma',
'as' => 'flag-icon-in',
'azb' => 'flag-icon-az',
'az' => 'flag-icon-az',
'bel' => 'flag-icon-by',
'bg_BG' => 'flag-icon-bg',
'bn_BD' => 'flag-icon-bd',
'bo' => 'flag-icon-cn',
'bs_BA' => 'flag-icon-ba',
'ca' => 'flag-icon-es-ca',
'ceb' => 'flag-icon-ph',
'cs_CZ' => 'flag-icon-cz',
'cy' => 'flag-icon-gb-ls',
'da_DK' => 'flag-icon-dk',
'de_DE_formal' => 'flag-icon-de',
'de_AT' => 'flag-icon-at',
'de_DE' => 'flag-icon-de',
'de_CH_informal' => 'flag-icon-ch',
'de_CH' => 'flag-icon-ch',
'dzo' => 'flag-icon-bt',
so cy is defaulting to flag icon flag-icon-gb-ls
If I amend this plugin code to flag-con-gb-wls, or change it in the browser, then the Welsh flag shows
I see. I will, right away, correct it and send a new version online. Thanks!
Hi Dennis,
I can see that you have updated /css/flags.php but the same update I believe is required in /css-flags/flags.php, as the Welsh flag is still not showing in my admin.
No hurry to fix – just when you next do an update!
Thank you so much for this plugin, and your top-rate support!