When I click a category link on my theme, the title of my page is “Category: NAME”
I don’t understand, as I use French language for WordPress, why it is not “Catégorie : NAME” as Loco Translate Tool says the string “Category: %s” is translated by “Catégorie : %s”.
So I use my own “get_the_archive_title” with a filter :
They are translated, there must be something wrong with your site.
This is s a screen shot of a new empty site language set to Francais
This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install and activate “Health Check”: https://wordpress.org/plugins/health-check/ It will add some additional features under the menu item under Tools > Site Health. On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues. There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/
Just thinking about why. Perhaps your translation files ( for FR) some how got corrupted? You mentioned the plugin LocoTranslate? Maybe they partially downloaded? Who knows.
If it happens again, instead of re-install try deleting wp-content/languages as WordPress caches language files there, delete the folder and they get re downloaded.
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Why strings are hardcoded to get_the_archive_title function ?’ is closed to new replies.