-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 cannot be set on posts #15350
Comments
This is a very interesting point. Historically, for multi-language sites, WordPress relied on plugins that offer the ability to translate the whole page, including the post content. To my knowledge, the need to have only the post content in a different language, while keeping the rest of a web page in the original language, hasn't been considered so often. This isn't new, as the Classic Editor doesn't provide any user interface to offer this ability. However, I guess Gutenberg could add this feature, as in providing a way to add "meta" information to the post content. In this specific case, these meta info would be rendered as |
Relatedly, language direction on pages or parts of page #12352 |
We discussed this in today's #design triage. As noted in #15349, I think it'd be really interesting to dive into this holistically. It's clear from this and other issues that the experience for writers who use multiple languages is subpar, and it'd be great to focus in on that use case in its entirety. Seeing as this functionality didn't appear in the classic editor, I'm not sure if this would best be explored in a plugin or here, but it's worth exploring in any case. Adding the |
Setting the post's This would set the post's lang attribute to While I don't think this setting alone calls for a new accordion section in the sidebar, if we were to also implement the See #15349 for a block-level exploration of this same setting. |
As pointed out earlier, this use-case is normally handled through plugins. I wonder if we should leave this in the plugin territory? The design to make this happen from @enriquesanchez looks fairly straightforward and may not require a lot of development if it's a setting that just appends a cc @mtias and @youknowriad for additional thoughts. |
Reminds me of https://github.com/glueckpress/wordpress-post-language. IMO we should take a more holistic approach on this as part of Gutenberg phase 4 instead of just adding some setting field for post meta and later regret it because of backward compatibility. |
Agreed about not rushing anything, even if it seems simple on the surface, and focus properly on the full problem in phase 4. |
Alrighty then, closing for now and will wait for Phase 4's support for multilingual sites. |
Not sure why this issue was closed, as the problem is yet to solve. I do realize improvements are planned for multilingual support in phase 4 but that doesn't seem a good reason to close a valid issue :) Also, please do not close issues from the WPCampus accessibility audit if not solved. Keeping them open serves the purpose of keeping track of the progress on the audit. Thanks. |
I brought it up during a Gutenberg Design Triage. I see that nothing should be done here at the moment and approach it again when we begin to think about multilingual sites in phase 4. |
Language cannot be set on posts
Issue description
Posts written in languages other than the editor's own setting cannot
have the correct language attributes defined.
Declaring the correct language of a page is vital, so that browsers can
determine how to render the textual content, and assistive technologies
can determine how it should be pronounced.
Issue Code
Remediation Guidance
Allow authors to set
lang
anddir
attributes that apply to thewhole post.
Recommended Code
Relevant standards
(Level A)
AA)
Note: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-110 in Tenon's report
The text was updated successfully, but these errors were encountered: