WARNING: This plugin doesn’t translate your website. It only allow to use a nice, customizable language switcher alongside Transposh Translation Filter plugin. So, before to install and activate Language Switcher for Transposh you must install and activate Transposh Translation Filter.
You can download Transposh from the official website.
Language Switcher for Transposh allows you to get a nice, highly customizable language switcher to use alongiside Transposh.
What does Language Switcher for Transposh:
it gets default language and used languages from Transposh plugin settings
it allows you to add as many flags as used languages are; in addition, administrators, authors and editors will see an Edit translation button as last item in the primary menu which will allow them to activate the Transposh Editor
it allows you to choose between Transposh flags or flags provided by Language Switcher for Transposh itself
it allows you to add to your language switcher menu item all classes you need: this allows you to make it look accordingly to your theme style using the same class your theme is using for navigation menu items
it allows you to choose to use just simple flags or a dropdown, and if this is the case, you can choose if using a select or an unordered list to build your dropdown
if you use an unordered list as dropdown, you can choose if the list items will show flag only, text only or both flags and text
it provides basic stylesheets you can copy and use as a starting point to totally customize your Language Switcher
it provides 6 shortcodes to put your language switcher everywhere you want! The shortcodes allow you to use horizontal flags, vertical flags, a native select element, a custom dropdown list with only flags, with only text or with both flags and text.
With the help of a third plugin (Shortcode in Menus), you can even put a shortcode in your menu – in this case, you’re expected to disable Automode, of course! 🙂
it provides 6 standard widgets to put a language switcher everywhere widgets can be placed: Like the shortcodes, the widgets allow you to use horizontal flags, vertical flags, a native select element, a custom dropdown list with only flags, with only text or with both flags and text.
Automode: with Automode set to On, LSFT will append itself to the primary menu (and in ever location you have chosen to put it). If you set Automode to Off, then LSFT will do nothing letting you to se shortcode wherever you can put a shortcode. Obviously, Autocode and shortcodes are reciprocally compatible, so you can use them at the same time.
it allos you to set if the user who change the used language has to be redirected to the home page or to the same page he was visiting
An important notice about the new block theme. LSFT Automode doesn’t work with the Twenty Twenty-Two theme because this theme has totally changed teh way the UI is built. It looks that you can’t use shortcodes too, so if you use a theme entirely built with block you’ll have to put your LSFT in another part of the page (like a sidebar, in the footer or maybe in a topbar placed above the primary menu).
You can download the plugin from the WordPress Plugins Directory.
Remember to dwnload the latest version of Transposh Language Filter from the official website.
(The basic idea for this plugin comes from an article I wrote sometime ago,
How to use a custom language switcher with Transposh to build a multi-language WordPress website)
Notice: in order to avoid ‘Page not found’ issues, be sure to check the option “Rewrite URLs to be search engine friendly, e.g. (http://transposh.org/en). Requires that permalinks will be enabled.” in the Transposh Settings page.
- Login to your WordPress admin and go to Plugins > Add New
- Type “Better Search Replace” in the search bar and select this plugin
- Click “Install”, and then “Activate Plugin”
- Unzip the plugin and upload the “better-search-replace” folder to your ‘wp-content/plugins’ directory
- Activate the plugin through the Plugins menu in WordPress
And you’re done!
Can I use Language Switcher for Transposh without using Transpoh?
No. This plugin is just a small improvement of a little part of Transposh and can’t be used without it.
བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།
“Language Switcher for Transposh” is open source software. The following people have contributed to this plugin.བྱས་རྗེས་འཇོག་མཁན།
Interested in development?
- This is the first version of this plugin so there is no changelog 🙂
- Added the options to choose the menu(s) where the language switcher will show up
- Improved css for menu locations
- Fixed bug saving custom styles
- Improved README file, minor bugs fixed
- Minor bug fixed
- Fixed menu locations issue which prevented to show the language switcher
- Fixed a bug managing default language
- Fixed a bug which prevented to change the dropdown list items depending on the current language
- Slightly improved the default.css rules for dropdown list (but this is about you depending on the theme in use)
- Fixed a bug managing used languages
- Added Settings link in the Plugins list admin page
- Fixed bug preventing displaying Settings link in the Plugins list admin page
- Fixed a couple of typos
- Fixed minor bugs
- Fixed minor bugs
- Fixed minor bugs
- Added code to show an error messages after failed activation because of Transposh is not found in plugins directory
- Fixed one minor bug
- Now switching to another language reload the page the user is viewing
- Fixed a bug which broke link switching language
- Minor bug fixed
- Reverted last changes because they just didn’t work. Now switching language redirect to the home page. I’ll still work on this but I’ll be more careful before publishing new versions
- Tested up to 5.8.9
- Tested up to 5.9
- fixed a couple of bugs which prevented to use custom dropdown swither
- Tested up to 5.9.1
- You can choose if, after having changed language, visitor must be redirected to the home page or to the same page they were visiting
- added shortcodes: now you can use Automode and let Language Switcher for Transposh add it self to the main menu or you can disable Automode and put shortcodes everywhere… Or you can use both feature at the same time. Shortcodes are available for horizontal flags, vertical flags, native select, custom list with flags only, text only or both flags and text
- custom styling capabilities have been improved
- Tested up to 5.9.2
Fixed a bug about flag size
Fixed a bug which prevented to load basic stylesheets
Fixed a bug which prevented to download new stylesheets
Added code to check plugin versions and call activation hook to update database options. It works even if the plugin is update manually.
Improved the way the plugin checks versions and updates options
Fixed wrong shortcode names for horizontal and vertical flags
Added the widget. Prevent activation if Transposh is not installed. Fixed the bug which prevented to download additional stylesheets.
Fixed a bug which prevented widget to show up.
Fixed a bug which prevented the shortcode for custom list with flags and names to work correctly.
Now Language Switcher for Transposh has its own widget you can use in the WordPress widget page. Fixed list-style-type for custom lists.
Fixed a bug which prevented the widget for custom list with flags and names to work correctly.
Added option to display original languages names; deleted obsolete css files.
Fixed bug in css editor which displayed an error message in browser console
Fixed a bug which prevented to show the original language names switcher in admin options page
Fixed a bug which in some cases prevented to show default language in the frontend switcher.
Fixed a bug which prevented other tabs to work correctly in the admin dashboard.
Tested up 6.0.1
Tested up 6.0.2
FIxed a bug which prevented to switch to Styles tab in plugin options page
Tested up 6.1.1
Fixed a bug that in some cases raised a 500 error loading stylesheets