The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing,…
About Sublanguage
Sublanguage is a multilanguage plugin for WordPress that allows you to translate your website content without duplicating it. It stores translation data in post_meta and defines language solely by URLs, making it better for SEO. It also has features like support for Gutenberg, translation UI for various elements, and support for multisite.Screenshots








Changelog
2.12
- Add filter ‘sublanguage_redirect_uncanonical_url’ in class-site.php
- Fix versioning when registering gutenberg.js script (class-admin-ui.php, line 1954)
2.11
- Fix bug: Automatic conversion of false to array is deprecated in class-admin.php on line 158
- Fix bug: add_submenu_page function first argument being null in class-admin-ui.php on line 252
- Fix bug: replace this class “.edit-post-header__settings” with “editor-header__settings” to inject language switch in Gutenberg (Thx @andreinemes)
2.10
- add get_permlink_translation and get_archive_link_translation functions
- Fix bug when flush after editing a root page
- Fix bug when editing empty term meta translation
- remove creation of dynamic property (deprecated in PHP 8.2)
- remove options translation
- remove classic editor button
- remove automatic upgrade from 1.x
2.9
- Fix Bug causing problems when saving posts in block editor, when “custom-fields” not in post supports
- Replace deprecated js code for block editor API
2.8
- Fix Bug that erase other language content when a post is saved multiple times with Gutenberg.
- Fix Bug when a post has a translated post_name for main language causing a canonical loop
- Allow special characters in cpt archive url or slug
- Activate rewrite also when property is not set when registering post type
2.7.1
- Fix bug in Sublanguage::catch_translation: in some case (eg. querying posts page) query_vars “page” property become the pagename, leading to 404 error.
2.7
- Fix bug when data is not a string in /js/ajax.js
- Class Sublanguage_Site now extends Sublanguage_Rewrite instead of Sublanguage_Current
- Add filter ‘sublanguage_untranslated_meta’ to handle a translation input placeholder
- Remove trailing slash on translated home url
2.6
- Support revisions in classic editor
- Partial support revisions in Gutenberg (autosave still bugged)
- Gutenberg UI remove language manager stupid block
- Fix bug when using differently parented pages with same slug
- Fix bug in Gutenberg when saving twice in sub-language
- Fix bug when inserting empty post and sub-language data not empty
- Fix permalink correct language slug in Gutenberg
2.5
- Basic support for Gutenberg
- Fix bug: Force update_post_caches before translating posts
- Fix bug: only query languages object with status ‘publish’ or ‘draft’ in admin side
- Add a function (has_post_translation) and a filter (sublanguage_has_post_translation) to detect if a post have a translation
- A language object can be passed in find_language() function
- Add hook (sublanguage_search_meta) to filter meta keys searcheable for translation
- Improved detect http language
- Use of IETF language tag (“en”, “en-en”, “es-mx”, etc.) to be used for SEO and language detection
2.4
- Fix bug: attachment translations were not correctly displayed when current language is sub.
- Fix bug: get_post_meta_translation was returning translated value for main language when current language is sub.
- First language locale value is set to “en_US” instead of “” when language is english
- Fix translate sample link
- Verify meta_query parameter is an array in terms_clauses filter
- Rewrite wp-json rules
2.3
- Fix bug when post or page was not translatable
- Fix bug: dont translate untranslatable taxonomy
- Fix bug when a taxonomy was registered without rewrite args
- Overwrite rewrite rules for pages using every root pages
- Separate custom post type permalink base and archive slug
- Customize notice message when editing language
- Fix bug: nav menu items couldn’t be hidden
- Improve default post type options settings
- Enable nav menu item classes translation
2.2
- Improve search in sub-languages
- Fix bug when saving multiple posts at once in admin
- Fix bug when upgrading from 1.x with orphan translation posts
2.1
- When upgrading, ajax_frontend option should default true
- On activation, set main language post_content (locale code)
- Query post_status when quering languages
- Fix error in translate_menu_nav_item()
- Set db_version to ‘2.0’ also when there is nothing to upgrade
- Fix error when translatable post meta value is an array
2.0
- The core of Sublanguage have been rewriten in order to improve general performances and compatibility
- Store posts and terms translations in postmeta/termmeta instead of child posts/terms
- Bugs fixed in rewrite URL
- User interface restructuration
1.5.4
- Change way of retrieving post_type for post archive link queries
- Function ‘translate_post_type_archive_link’ now also translate the main language slug for post type archives
- Put back soft translations for post_content, post_title and post_excerpt. Data are translated twice, but compatibility is improved.
- “add_{$meta_type}metadata” and “update{$meta_type}_metadata” filters now return correct value
- When preparing attachment data for saving, only filter fields when doing AJAX, in order to support old media interface.
- add html classes to language switch items in the menu for styling
- add filter ‘sublanguage_insert_post_data’ after parsing post data before updating post
1.5.3
- Removed translation filter on ‘posts_clause’ when posts were queried by name or postname. Issue with ‘page_for_posts’.
- Hard translate post_content, post_title, post_excerpt to resolve issue with “more” tag
- Remove soft translations for post_content, post_title and post_excerpt
- stripslashes options when translating
1.5.2
- Correct link url when inserting internal link from editor links popup in admin
- Better language detection with Autodetect Language option
- Fix a bug occuring when language switch is used in more than one menu
- Redirect correctly when Auto-detect language is on and show language slug is off
- Syntaxical changes to prepare 2.0 migration
- Remove html escaping when saving option translation
- When gettign translate, “sublanguage_hide” meta key never inherit value
1.5.1
- Correct an error when translating nav menu titles
- Correct an error in javascript when saving option translation
1.5
- New UI for options translation
- New UI for postmeta registration
- New UI for nav menu item translation
- New UI for custom post type translation (when no admin_ui provided)
- New API for import posts and terms
- New language switch interface in post admin
- Changes in admin menu: Sublanguage is now a top level page
- Improvement and simplification in term url (get_term_link) translation
1.4.9
- Bug fix: Sub-taxonomy archive pages returned incorrect results when taxonomy rewrite slug was different from taxonomy name
- Bug fix: embed shortcodes were not active because the_content filter was called too late
- Bug fix: some table views buttons were unproperly encoded and did’t work
1.4.8
- Adds
Sublanguage_site::get_default_language_switchfunction - Bug fix: terms were not translated correctly when using shared terms (on
wp_term_taxonomytable). - Bug fix: removed use of filter for
'home_url'except inpost.phppage, in order to prevent possible bugs when rebuilding permalinks - Bug fix: styles in admin terms UI
1.4.7
- Adds optional
contextparameter forsublanguage_print_language_switchandsublanguage_custom_switchhooks load_plugin_textdomainnow only called in admin.- Deprecate
sublanguage_current_language. Usesublanguage_initinstead. - Deprecate
sublanguage_load_admin. No alternative. - Bug fix: Multiple errors occured when option was not set
- Bug fix: Multiple errors occured when no languages post type was set.
1.4.6
- Improves
sublanguage_translate_term_fieldto allow translation in any language - Improves
sublanguage_translate_post_fieldto allow translation in any language - Adds
sublanguage_enqueue_termsaction to handle custom translation terms query - Adds
sublanguage_enqueue_postsaction to handle custom translation posts query - Bug fix: Terms order was incorrect when queried order was by name, description or slug on secondary language
- Bug fix: Posts order was incorrect when queried order was by name or title on secondary language
- Bug fix: translation terms taxonomy was incorrectly associated to post object type when registered
- Bug fix: Terms were incorrectly cached when multiple taxonomies were queried at once
1.4.5
- Support for hreflang tag
- Add filter to determine whether empty translated post meta values override originals
- Automatically create term translation when term is created when not on main language
- Improved multilanguage search
- Bug fix: switching language on search page was incorrectly redirecting to home
- Bug fix: getting post meta values without providing key value now return correct values
- Bug fix:
translate_post_type_archive_link()function did not return the correct link for main language if it was edited. - Bug fix: problems occured when tag was added while not on main language
- Bug fix: using
sublanguage_custom_switchhook with only one language was causing error
1.4.4
- Bug fix: language was mixed when inserting media into post when media and post languages did not match.
- Bug fix: changing language on
wp-admin/post.phptriggered ajax of all submit buttons, includingDeleteinCustom Fieldsbox, which deleted all post meta. - Bug fix: terms translations where not properly deleted when original terms were deleted
- Bug fix: tags name in
Tagsbox onwp-admin/post.phpwere not translated - Bug fix: language was not properly sent by ajax when using GET method
- Bug fix: result of get_terms was not properly translated when only names were queried
- Bug fix: deleting a post was throwing a notice
- Updating from 1.4.3 or before cleans database from all orphan terms
1.4.3
- Bug fix: editing fields in media interface sometimes failed to save
1.4.2
- Bug fix: notice was thrown on plugin activation since 1.4
- Bug fix: Error were thrown when quick editing language post slug
- Bug fix: correct save button appearance in tinymce interface
1.4.1
- Bug fix: added
registration_redirectfunction. Language was lost after registering. - Bug fix:
translate_login_url. Language was lost on login screen when english was not the main language. - Bug fix:
sublanguage_translate_post_field. Filter was not called in admin.
1.4
- Add support for attachment translation
- Add support to handle editor button in Tinymce Advanced Plugin –
- Undocumented bug fixes
1.3
- Tinymce plugin, a fast interface for managing posts translations.
- Support widget
- Undocumented bug fixes
1.2.2
- Bug fix: term description is now correctly translated.
- Bug fix: draft languages are no longer present in front-end language switch.
1.2.1
Some changes in readme file and adding medias (screenshots, banner, etc.).
1.2
Undocumented modifications.
1.1
Undocumented modifications.