Wp Content Translator
DEPRICATED! This plugin lacks attention.
by Sebastian Thulin, Kristoffer Svanmark · github.com/helsingborg-stad/wp-content-translator · website
★ 1stars
302composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/helsingborg-stad/wp-content-translator/archive/refs/heads/master.zipAlso on Packagist as helsingborg-stad/wp-content-translator:
composer require helsingborg-stad/wp-content-translatorFrom the readme
Wp Content Translator
Minimalistic content translation in WordPress. The plugin handles translations for posts, postmeta, options, siteoptions (multisite) and usermeta.
While the plugin also handles comments and commentmeta they are not translated. Comments are mapped to a specific language (the langauge active when posting the comment) and will be displayed for that specific language. There's also an option to make languages inherit comments from other languages. Forinstance the nordic languages is very similar, so we want to load Danish and Norwegian comments along with the Swedish comments.
Translations
The GUI is is available in:
- English
- Swedish
- Norwegian
REDIS & Memcached
If you are using redis or memcached, you want to define a hash-key depending on selected language. The hash key cannot be changed at runtime after it has been set (defined as constant). Add this to your configuration:
Language selector
You can easily use the default language selector (a basic html element) or create a language selector with custom markup.
Use the function to display a language selector. If you want to use the default selector just run the function without any paramters. If you