Datoden Language Switcher
In the WordPress admin the plugin is shown as “DT-language” in the DT-addons menu (Datoden’s menu). DT-language puts your website in two languages: the main language on the website’s usual address and one more language on its own address on the same domain (for example /en/). Two languages: the main
In the WordPress admin the plugin is shown as “DT-language” in the DT-addons menu (Datoden’s menu).
DT-language puts your website in two languages: the main language on the website’s usual address and one more language on its own address on the same domain (for example /en/).
- Two languages: the main language and a second language with its own address on the same domain (/en/).
- Pages are linked to their translations. Click + EN next to a page in the page list: a copy opens, ready to be translated.
- The page and post lists show the language of every page, can be filtered by language and show a page and its translations in consecutive rows.
- The start page, the sections on it, the contact page, the privacy page and placed DT-slideshow slideshows follow the language automatically.
- Menus follow the language: pages in the menu go to their translations.
- Language switcher (SV / EN) last in the menu, where the theme puts it, or the shortcode [datoden_language_switcher].
- hreflang links for search engines, the right language in and WordPress’ own texts in the visitor’s language.
- A page opened on the wrong language address is redirected to the right one.
- DT-contact forms are shown in the visitor’s language, and their texts are written per language in DT-contact.
- No extra tables, nothing loaded from other servers.
For themes and plugins
- apply_filters(‘datoden_lang_id’, $page_id) gives the page in the visitor’s language.
- do_action(‘datoden_language_switcher’) prints the language switcher where the theme wants it (with add_theme_support(‘dt-language-switcher’)).
- Filters for own addresses per language (datoden_lang_path), language-neutral pages shown in both languages (datoden_lang_neutral_post), own hreflang addresses (datoden_lang_alternates) and translation of whole pages with a dictionary (datoden_lang_dictionary, datoden_lang_translate_output, datoden_lang_output).