WP Manifestindependent plugin directory
manifest / seo / language-locale-overwrite

Language Locale Overwrite WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

This lightweight SEO plugin for WordPress allows overwriting the HTML lang attribute, including on individual Posts and Pages. And adds easy-to-use Alternate Hreflang tags.

★ 12stars
131release downloads
≈10active sites
2.4.0latest · 2 years ago

Install

Download language-locale-overwrite-plugin.zip From the 2.4.0 release on GitHub, Jul 13, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/swiss-mac-user/language-locale-overwrite/releases/download/2.4.0/language-locale-overwrite-plugin.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Language Locale Overwrite for WordPress

This lightweight SEO plugin for WordPress allows changing the default HTML lang attribute globally, and on individual Posts and Pages. Along with cross-referencing similar Posts/Pages in different Languages using Alternate Hreflang tags.

The Plugin is mostly of use when your WordPress blog contains a mix of languages with individual Posts/Pages, and you do not want to install a huge translation plugin (because your posts are not actually translations, but just each individually published in a different content language). Accordingly you may also not want to change any of the URLs of your existing articles.

💡 What does this do?

  1. Allows changing the default HTML lang attribute for your Blog,
  2. overwriting the HTML lang attribute on individual Posts and Pages (in addition to 1.),
  3. and cross-referencing Posts/Pages in different languages using Alternate Hreflang tags.

I developed this because my Blog is mostly written in English, but contains some articels written in German - of which some have gotten a content recycle across the two languages. And I wanted to improve their respective search engine optimization. In addition, with this plugin, I was able to change the default "English (United States)" (en-US) language code to just neutral "English" (en).

🎓 How to use

⚙️ Install and enable the Plugin

  • Download the Plugin
  • Place the unzipped language-locale-overwrite-folder into your WordPress Plugin directory:
    [wordpress]/wp-content/plugins/
  • Go to your WordPress Admin Dashboard » Plugins, and activate «Language Locale Overwrite»

📝 Settings

Global change of <html lang="…">

  1. Go to your WordPress "Settings » General" at /wp-admin/options-general.php#llo_global
  2. Set your desired ISO-Language/-Country locale using the setting «Change HTML lang attribute»
  3. (Optional) For OpenGraph og:locale you can set a preferred 2-char country code using «Custom Country code»

Individual HTML lang change for Posts/Pages

  1. Open any Post or Page, for which you want to modify its language locale
  2. There's a new section «Language Locale» where a valid ISO-Language/-Country code can be specified

Link Posts/Pages with same content in different languages

Pre-requisite: you must have Post/Pages already tagged with a "non-default" language locale!

  1. Edit the Post or Page, for which you want to reference a translated Post/Page
  2. In the «Language Locale» section, use the «Link alternate lang…»-dropdowns to make cross-links

ℹ️ List of valid language locales

Valid language locales either consist of 2-characters ISO-code for languages, or a combination thereof with a 2-characters ISO country code. Here are some examples:

  • de → German
  • de-DE → Germany (German)
  • de-CH → Switzerland (German)
  • en → English
  • en-GB → United Kingdom (English)
  • fr → French
  • zh-CN → Chinese (Simplified)
  • …and so on

Support this project with a Coffee.

Releases

6 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
2.4.0 latest
Jul 13, 2024 2 years ago
language-locale-overwrite-plugin.zip
68
Feb 4, 2024 2 years ago
language-locale-overwrite-plugin.zip
28
Jan 24, 2024 2 years ago
language-locale-overwrite-plugin.zip
12
Oct 19, 2023 3 years ago
language-locale-overwrite-plugin.zip
23
Aug 9, 2023 3 years ago
tag only
—
Jul 27, 2023 3 years ago
tag only
—

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

Language Locale Overwrite 2.4.0 · audited by WP Registry

No security issues found.

Audited release
2.4.0
Findings
none
Worst severity
—
Content hash
bed4299721710827b7e88213…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.