php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23767 Need to set <html lang="XX"> on generated manual pages
Submitted: 2003-05-22 20:47 UTC Modified: 2004-02-29 13:52 UTC
From: wez@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2RC4 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wez@php.net
New email:
PHP Version: OS:

 

 [2003-05-22 20:47 UTC] wez@php.net
The generated manual pages should provide the lang attribute so that search engines can correctly categorize the content.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-23 05:49 UTC] goba@php.net
In case someone can point to a free resource which lists the valid codes that can be there, I would be happy to add this to phpweb. We have quite some internally used codes which are not valid on the net [hk for example].

In case these valid codes are the same to those used for Accept-language, then we already have a reverse translator, so forward translations can be done easily.
 [2003-05-23 05:59 UTC] shimi at shimi dot net
I found the following using google. It's the DoD list of language, and there's a summarized index in the end.

http://buperscd.technology.navy.mil/bup_updt/508/OfficerClassification/ii/II14_a.htm
 [2003-05-23 06:06 UTC] shimi at shimi dot net
Oops. You would want the ISO codes, I guess.

http://www.w3.org/WAI/ER/IG/ert/iso639.htm
 [2003-05-23 06:42 UTC] mgf@php.net
This list seems to be more up-to-date: http://www.loc.gov/standards/iso639-2/englangn.html (as it should, being maintained by the Registration Authority for these codes).  It also links to a useful history of changes.
 [2004-02-29 13:19 UTC] nlopess@php.net
May I close this?

Search Engines (at least Google) detect automaticaly the language of the pages.
 [2004-02-29 13:40 UTC] derick@php.net
Would be easy to add to livedocs... why not keep it open until it is implemented there?
 [2004-02-29 13:45 UTC] nlopess@php.net
It is implemented in livedocs.
 [2004-02-29 13:52 UTC] derick@php.net
Then it's closed :-)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 17:00:01 2025 UTC