Opened 17 years ago
Closed 17 years ago
#6872 closed defect (bug) (fixed)
Always set the language attribute on a WordPress site
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.5.1 |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
Description
On a standard WordPress installation that is not localized (e.g. $WPLANG is empty in wp-config.php), WordPress does not set a default lang and xml:lang attribute on the pages when it renders them. I come from Germany, and while my speech synthesizer used to read text to me is capable of speaking English, it does not switch to it automatically when I load my own or many other WordPress sites. If this lang attribute was set to en-us when there's no override, this would allow the speech synthesizer to switch automatically.
Attachments (1)
Change History (6)
#1
@
17 years ago
- Keywords has-patch added
- Owner changed from anonymous to MarcoZ
- Status changed from new to assigned
#2
@
17 years ago
- Component changed from Template to i18n
- Milestone changed from 2.5.2 to 2.6
- Owner MarcoZ deleted
- Status changed from assigned to new
Setting to 2.6. It'll be backported to 2.5.x if need be. :)
Note: See
TracTickets for help on using
tickets.
In get_bloginfo, apply the same rule as used in many places in l10n.php. If get_locale returns an empty string, assume en_US (the blog hasn't been localized from its default English language).