-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
language_attributes() in header.php #37
Comments
doing that makes it spit out lang="en-US" rather than lang="en" i believe which is why i didn't originally do it will look into this further, and also we'll be implementing #24 soon thanks for the issue |
Well, if "en-US" isn't what you want, you probably should edit the constant WPLANG in your wp-config.php. Thanks for the good work BTW. Just reading the documentation was a joy :-) |
en-US is actually a valid language code: http://www.w3.org/TR/html401/struct/dirlang.html#h-8.1.1 I'm assuming there wouldn't be much real world difference between "en" and "en-US" since the primary code is still the same. |
Why is "en-US" converted to "en" when it is a valid language code (as @swalkinshaw said) and is based on what is already properly set by (or defaulted to by) WPLANG? I also don't understand why dir="rtl" is added if applicable, but dir="ltr" is not Furthermore, it doesn't look like is_rtl() is used properly since it's only supposed to return a boolean - http://codex.wordpress.org/Function_Reference/is_rtl |
@philipashlock thanks for bringing this up again. See #942 for updates. |
A small issue, but if the lang="en" attributes in header.php could be replaced with lang="" the theme would be more compatible with non-English web sites:
The text was updated successfully, but these errors were encountered: