[SAC] [OSGeo] #2990: WordPress user and error pages are in Dutch

#2990: WordPress user and error pages are in Dutch
---------------------------+-----------------------
Reporter: lnicola | Owner: sac@…
     Type: defect | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Keywords:
---------------------------+-----------------------
The site is set to display in English, but for some reason user profile
pages are titled "Name, auteur op OSGeo", which is probably Dutch, e.g.
Sandro Santilli, auteur op OSGeo. Error pages also have Dutch
titles: https://www.osgeo.org/member/strk/ ("Pagina niet gevonden").
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2990&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#2990: WordPress user and error pages are in Dutch
---------------------------+------------------------
Reporter: lnicola | Owner: sac@…
     Type: defect | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+------------------------
Comment (by strk):

The reported problem occurs in anonymous windows as well, so it's not
related to user settings.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2990#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2990: WordPress user and error pages are in Dutch
---------------------------+------------------------
Reporter: lnicola | Owner: sac@…
     Type: defect | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+------------------------
Comment (by cvvergara):

{{{
curl -s 'https://www.osgeo.org/members/strk’ -H 'Accept-Language:
en,ro;q=0.5' | rg -F '<title>'
   <title>Pagina niet gevonden - OSGeo</title>
curl -s 'https://www.osgeo.org/members/strk’ | rg -F '<title>'
   <title>Pagina niet gevonden - OSGeo</title>
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2990#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2990: WordPress user and error pages are in Dutch
---------------------------+------------------------
Reporter: lnicola | Owner: sac@…
     Type: defect | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+------------------------
Comment (by cvvergara):

Tried several approaches:

- Using the Say what plugin, Defined: "Page not found" to use the sentence
"Page not found"
- Editing the .po files where "Page not found" is translated to "Pagina
niet gevonden"
   - `Pagina niet gevonden`-> `Page not found`
- Manually modifying the core function
[https://developer.wordpress.org/reference/functions/wp_title/ wp_title]
so that it does not get translated
   - `$title = __( 'Page not found' );` -> `$title = 'Page not found';`

Nothing seemed to work.
Some upgrades are pending on plugins and on core, will try again after the
upgrades.

Investigating, found this [https://wordpress.org/support/topic/404-page-
title/#post-13534417 comment] and the [https://www.jacksheo.com/foo Page
not found] in this case says `Untitled`

TODO: need to see where in `roots` the page title is handled.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2990#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.