<html lang="">
Posted by: theking2 (---.dyn.cable.fcom.ch)
Date: October 24, 2023 07:26PM

Setting the language of the main (localhost) web page does not honor the language selected.
Selecting another language than french does change the language but <html lang="fr"> stays the same.

Options: ReplyQuote
Re: <html lang="">
Posted by: Otomatic (Moderator)
Date: October 25, 2023 08:47AM

Language selection in the index.php page is made via a drop-down menu in the top right-hand corner.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: <html lang="">
Posted by: theking2 (---.dyn.cable.fcom.ch)
Date: October 26, 2023 08:32PM

sure but it is no reflected on the home page of wampserver there the english page has the wrong meta data

Options: ReplyQuote
Re: <html lang="">
Posted by: Otomatic (Moderator)
Date: October 27, 2023 09:23AM

Hi,

In the headers of the "localhost" page (index.php), there are no instructions or directives indicating the language used, whether English, French or other in the drop-down menu:
<!DOCTYPE html>
<html>
<head>
  <title>Accueil WAMPSERVER</title>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width">
  <link id="stylecall" rel="stylesheet" href="wampthemes/classic/style.css" />
  <link id="stylecall" rel="stylesheet" href="wampthemes/popupmodal.css" />
  <link rel="shortcut icon" href="favicon.ico" type="image/ico" />
</head>
Similarly, in the "headers", there is no information or directive on the language used:
connection: Upgrade, Keep-Alive
content-type: text/html; charset=UTF-8
date: Fri, 27 Oct 2023 07:11:03 GMT
keep-alive: timeout=5, max=100
server: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.11 mod_fcgid/2.3.10-dev
transfer-encoding: chunked
upgrade: h2,h2c
x-powered-by: PHP/8.2.11
I don't understand what the problem could be!

Adding a <html lang="en"> directive won't magically translate the page content into English.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.