Opened 8 years ago
Closed 6 years ago
#1081 closed enhancement (fixed)
Implement language tagging
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.1 |
| Component: | General | Version: | 1.5.1 |
| Severity: | normal | Keywords: | bg|dev-feedback bg|2nd-opinion |
| 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)
Thanks, idanso. I've uploaded a new blog-lang.diff that includes the fix.
- 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?
- Resolution set to fixed
- Status changed from assigned to closed
Fixed by 3136, according to Ryan. Closed.
- Milestone set to 2.1
- Resolution fixed deleted
- Status changed from closed to reopened

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)