Opened 18 years ago
Closed 18 years ago
#6872 closed defect (bug) (fixed)
Always set the language attribute on a WordPress site
| Reported by: | MarcoZ | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | I18N | Version: | 2.5.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
#2
@
18 years ago
- Component Template → i18n
- Milestone 2.5.2 → 2.6
- Owner removed
- Status assigned → new
Setting to 2.6. It'll be backported to 2.5.x if need be. :)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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).