GithubHelp home page GithubHelp logo

language_attributes() in header.php about sage HOT 5 CLOSED

roots avatar roots commented on July 17, 2024
language_attributes() in header.php

from sage.

Comments (5)

retlehs avatar retlehs commented on July 17, 2024

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

from sage.

bjornjohansen avatar bjornjohansen commented on July 17, 2024

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 :-)

from sage.

swalkinshaw avatar swalkinshaw commented on July 17, 2024

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.

from sage.

philipashlock avatar philipashlock commented on July 17, 2024

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

from sage.

swalkinshaw avatar swalkinshaw commented on July 17, 2024

@philipashlock thanks for bringing this up again. See #942 for updates.

from sage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.