A straight-forward multilingual plugin. No more double-digit custom DB tables or hidden HTML comments that could cause you headaches later on.
https://ideasilo.wordpress.com/bogo/
Bogo is a straight-forward multilingual plugin for WordPress.
The core of WordPress itself has the built-in localization capability so you can use the dashboard and theme in one language other than English. Bogo expands this capability to let you easily build a multilingual blog on a single WordPress install.
Here are some technical details for those interested. Bogo plugin assigns one language per post. It plays nice with WordPress – Bogo does not create any additional custom table on your database, unlike some other plugins in this category. This design makes Bogo a solid, reliable and conflict-free multilingual plugin.
Install language packs
First, install language packs for languages you use on the site. You can view and install language packs in the Language Packs screen (Languages > Language Packs).
Select your language for admin screen
Bogo lets each logged-in user select a language for their admin screen UI. Select a language from the menu on the Toolbar, or from the menu in the Profile screen (Users > Your Profile) if the Toolbar is invisible.
Translate your posts and pages
To create a translation post, go to the editor screen for the original post and find the Language box. Bogo does only make a copy of the post; translating the copied post is your task.
Add language switcher widgets
It would be useful for site visitors if you have a language switcher on your site. Bogo provides the Language Switcher widget in the Widgets screen (Appearance > Widgets).
You can also use the [bogo]
shortcode to put a language switcher inside a post content. If you want to use this shortcode in your theme’s template files, embed the following code into the template:
<?php echo do_shortcode( '[bogo]' ); ?>
With the default configuration, this plugin, in itself, does not:
bogo
folder to the /wp-content/plugins/
directory.apiVersion
to 3
in the block.json
file.bogo_http_accept_languages()
always return an array.bogo_format_atts()
.bogo_languages()
based on translate.wordpress.org.bogo_get_language
bogo_get_language_native_name
bogo_get_country_code