Opened 20 years ago
Closed 18 years ago
#1081 closed enhancement (fixed)
Implement language tagging
Reported by: | kim | Owned by: | shorty114 |
---|---|---|---|
Milestone: | 2.1 | Priority: | low |
Severity: | normal | Version: | 1.5.1 |
Component: | General | Keywords: | bg|dev-feedback bg|2nd-opinion |
Focuses: | Cc: |
Description
The attached patch implements specifying the language for WordPress content:
- send Content-Language (as header and in a meta tag where already done for Content-Type)
- specify text processing language in the <html> tag
This also fixes the issue that feeds always specify the language as "en" (the default value of option rss_language) regardless of the language setting of the blog (such as WPLANG).
The patch deprecates rss_language and introduces a new option called blog_lang. It can be modified on the Reading Options page, below blog_charset.
The default value for blog_lang is based on WPLANG (using "en" if WPLANG is empty).
Attachments (3)
Change History (8)
#4
@
18 years ago
- Cc idanso removed
- Keywords bg|dev-feedback bg|2nd-opinion added
- Owner changed from anonymous to shorty114
- Priority changed from normal to low
- Status changed from new to assigned
The header() part would be easy, and why not just include the meta tag in wp_head hook?
#5
@
18 years ago
- Resolution set to fixed
- Status changed from assigned to closed
Fixed by 3136, according to Ryan. Closed.
Note: See
TracTickets for help on using
tickets.
The current patch does not close the xml:lang attriute with a double-quote, thus breaking the page XHTML validity.
A fix is attached (needs to be applied over the first one)