Set HTML lang attribute per post
This wordpress plugin adds a meta box for specifying html lang="" language per post.
The facts
- Rating
- 4.3★ from 3
- Active installs
- 100+
- Price
- Free
- Last updated
- 11 Jan 2015
- Added
- Jan 2015
- Requires WP
- 3.0.1
- Tested up to
- WP 4.1.42
- Downloads
- 2,294
Our analysis
AI-assistedSet HTML lang attribute per post is a WordPress plugin that allows you to specify the HTML language attribute for individual posts. It adds a meta box in the post editor where you can select the language of the post, which is useful for blogs that feature content in multiple languages.
This plugin addresses the issue of having a single site-wide language setting that may not be appropriate for all posts. For instance, if your site is set to English but you have posts in Norwegian, this plugin helps ensure that the correct language is indicated in the HTML, improving readability and formatting for those languages.
Best for: This plugin suits bloggers who publish content in multiple languages.
What it does well
- ✓Adds a meta box for specifying post language
- ✓Useful for multilingual blogs
- ✓Helps improve formatting for non-default languages
Where it falls short
- •Lacks testing code
- •Last updated in January 2015
- •Limited to WordPress version 4.1.42
Verdict
Set HTML lang attribute per post provides a straightforward solution for managing post languages, but its outdated status may be a concern for some users.
From the developer
nilsnh's own description of Set HTML lang attribute per post, lightly tidied.
This wordpress plugin adds a meta box for specifying html lang=”” language per post.
The problem this plugin solves
WordPress allows us to specify site-wide language defaults like so:
<meta http-equiv="content-language" content="es">
The problem comes about if you have blog posts in various languages. Personally I write posts in either English or Norwegian. And since English is set as the site-wide language posts that are in Norwegian end up looking kinda weird due to weirdly placed - (hyphenations).
Solution
The solution is to add more specific html lang attributes when needed.
<article id="" class="" lang="vi">
For example this specifies that the post is in Vietnamese. This plugin enables a meta box when editing posts where you may specify the post’s language.
Contributing
This plugin was made in a jiffy. But by all means do suggest improvements. For instance the plugin obviously lacks testing code.
Licensing
Copyright 2014 Nils Norman Haukås
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA