WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3611 closed defect (bug) (fixed)

Lack of WPLANG in config causes blog to claim it's language is en-US

Reported by: nickshanks Owned by:
Milestone: 2.1 Priority: high
Severity: normal Version: 2.1
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

The best solution would be to omit the language attribute completely when WPLANG is empty, however this patch simply changes it to "en" for the time being.

Priority set to high as it's a trivial patch and should go in 2.1

Attachments (1)

lang-en.diff (331 bytes) - added by nickshanks 7 years ago.
patch

Download all attachments as: .zip

Change History (5)

nickshanks7 years ago

patch

comment:1 Viper007Bond7 years ago

If it's not en-US, wouldn't you define WPLANG?

comment:2 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4764]) If WPLANG is empty leave empty. fixes #3611

comment:3 nickshanks7 years ago

Shouldn't all these be "en" not "en-US" though? That was part of the point in opening this in the first place. Leaving as closed but would like response.

comment:4 ryan7 years ago

en_US is fine in the context of loading gettext files. It isn't shown in the lang attributes.

Note: See TracTickets for help on using tickets.