Sublanguage
by maximeschoeni 4.7 (31 reviews)

Sublanguage

Sublanguage is a lightweight multilanguage plugin for wordpress.

Sublanguage ranks #8,098 among WordPress.org plugins with 700+ active installations, is #99 of 752 in the Language Tools category, a 4.7/5 rating from 31 reviews, and was last updated Dec 8, 2025. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 6.6 (Current: 7.1)
v2.13 Current Version v2.13
Updated 9 months ago Last Update on 08 Dec, 2025
Refreshed 9 hours ago Last Refreshed on
#99 of 752 in Language Tools Top 25% by installs Downloads +18% this week
View on WordPress.org
Rank
#8,098
-1 this week
Active Installs
700+
-6.4%
KW Avg Position
129
0.7 worse
Downloads
27.5K
+2 today
Support Resolved
0%
No change
Rating
94%
Review 4.7 out of 5
4.7 (31 reviews)

Next Milestone 800

Total Progress 43%
700+ 800+
408
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 57 more installs to reach 800+

Rank Changes

7,692 7,896 8,101 8,305 8,509 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
8,062 8,075 8,089 8,102 8,115 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
Current #8,098
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
0 10 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

4.7
31 reviews
Overall 94%
5
25 (81%)
4
3 (10%)
3
1 (3%)
2
2 (6%)
1
0 (0%)

Security History

Source: WPVulnerability

1 known vulnerability on record · 0 in the last 24 months · checked 1 month ago

  1. Sublanguage [sublanguage] < 2.10

    CVE-2023-36695 · Fixed in v2.10

TL;DR

AI summary of the plugin's readme

Sublanguage is for WordPress site owners who need to run their site in multiple languages. It solves multilanguage content management without duplicating content, adding database tables, injecting markup, or using cookies for language detection.

  • No duplicated content
  • No additional database table
  • No markup added to content
  • No cookies for language detection
  • Gutenberg support (beta)
  • Translation UI for posts and terms
  • URL rewrite for translated permalinks
  • Multisite support

Frequently Asked Questions

Common questions about Sublanguage

In menu click on Languages, remove all language custom posts and empty trash. Deleting a language will permanently delete all translations associated to this language. Deleting main language will not delete original posts.
Add this function in your template file
Add this in your function.php file and customize it: add_action('sublanguage_custom_switch', 'my_custom_switch', 10, 2); /** * @param array of WP_Post language custom post * @param Sublanguage_site $this The Sublanguage instance. */ function my_custom_switch($languages, $sublanguage) { ?> <ul> <?php foreach ($languages as $language) { ?> <li class="<?php echo $language->post_name; ?> <?php if ($sublanguage->current_language->ID == $language->ID) echo 'current'; ?>"> <a href="<?php echo $sublanguage->get_translation_link($language); ?>"><?php echo $language->post_title; ?></a> </li> <?php } ?> </ul> <?php }
If you are using menus and you want the language switch into a menu, go to Display > Menu, open option drawer and verify 'language' is selected. Then add as much 'language item' as you have languages. You can even distribute languages on different hierarchy level. If you need current language to be on the first level and further language on the second, you will also want to check current language first in Settings -> Sublanguage Post title, content or excerpt does not translate as expected in my theme First go to Sublanguage>Settings and verify the relevant post type is set to be translatable. Then verify you are using the proper filters in you template file. For echoing post title, you need to ensure ´the_title´ filter is called. // echoing post title inside the loop the_title(); // echoing post title outside the loop echo get_the_title($some_post->ID); // but... echo $post->post_title; // -> Does not translate For echoing post content, you need to ensure ´the_content´ filter is called. // echoing content inside the loop the_content(); // or... echo apply_filters('the_content', get_the_content()); // but... echo $post->post_content; // -> Does not translate echo get_the_content(); // -> Does not translate // echoing post content outside the loop: echo apply_filters('sublanguage_translate_post_field', $some_post->post_content, $some_post, 'post_content'); Same for Excerpts. Permalinks are automatically translated, inside or outside the loop: // echoing permalink echo get_permalink($post->ID); Some texts in my theme do not translate as expected, like 'Comment', 'Leave a Reply', etc. In your template files, verify texts are properly localized, and language packages are properly installed.
Use the global $sublanguage, like this: global $sublanguage; echo $sublanguage->current_language // -> WP_Post object echo $sublanguage->current_language->post_title; // -> Français echo $sublanguage->current_language->post_name; // -> fr echo $sublanguage->current_language->post_content; // -> fr_FR Alternatively you can use a sublanguage filter to call a user function with $current_language value in parameters: Function to use in your template file: echo apply_filters('sublanguage_custom_translate', 'text to translate', 'my_custom_translation', 'optional value'); Code to add in your function.php file: /** * @param string $original_text. Original text to translate. * @param WP_Post object $current_language * @param mixed $args. Optional arguments */ function my_custom_translation($original_text, $current_language, $optional_arg) { if ($current_language->post_name == 'fr') { return 'texte traduit en français!'; } return $original_text; } Note: of course, for a basic usage like this, you should use the standard localization way: __('text to translate', 'my_domain').
Go to Sublanguage>Translate Options and try to find the corresponding option key. Options may be nested in a data tree.
Go to Sublanguage>Translate Options and find the corresponding widget option name (like 'widget_somthing'). Expand items with value corresponding to 'DATA' until you find the text you need to translate.
Your nav menu items that are linked to translated posts, pages or terms should be automatically translated. If you need to translate custom link or to change the default value for items name, you can select "Nav Menu Item" in "Translate post types" section of Sublanguage settings. Then open Sublanguage>Nav Menu Item and edit like a normal post.
Go to Sublanguage settings and select custom post-meta key in the checkbox list under "Translate Meta". A meta key needs to be at least used once to appear in this list.
Go to Sublanguage settings and select '_thumbnail_id' in the checkbox list under "Translate Meta". At least one thumbnail must be set before metakey appears in this list.

Sign In / Register

You need to sign in or register to use this feature.