Can I set WordPress to display languages based on system language without a plugin?

PHP can read the ‘HTTP_ACCEPT_LANGUAGE’ header from the browser request, but this might not be easy to parse if there is more than one accepted language set. For the simplest case, when one language is set as accepted, you need to read only first 2 characters from this header: $language = substr($_SERVER[‘HTTP_ACCEPT_LANGUAGE’], 0, 2); But, … Read more

How to translate custom Divi module using POEDIT and Polylang [closed]

It seems that you’re adding translatable strings with text domain “custom-strings” but loading a text domain “Divi” in load_child_theme_textdomain. Needs to be the same Don’t use the same text domain as your parent theme. If your parent theme is Divi, use divi-child (it should match your child theme slug). In your child theme’s style.css, define … Read more

Why translations?

so you will need at least translations into german. there shouldn’t be other packages loaded for your site. you can find these files in the language folders in wp-content. there are other language folders as well in the plugins or in thmemes.

Get Text Domain For Transalation

No, there isn’t. The text domain needs to be hard coded, otherwise it can’t be read by localization tools which parse the code without executing it. See this note from the Internationalization documentation The text domain should be passed as a string to the localization functions instead of a variable. It allows parsing tools to … Read more

Translation is not being output in one instance

Your first line of code looks ok, are you sure you have a translation for the ‘Featured’ string in your PO file? Your second issue is an excellent example of how you should not use the gettext functions. You are trying to translate dynamic string ‘<a class=”more-link” href=”‘. get_permalink($post->ID) . ‘”>Read More</a>’ for which you … Read more

Translation with wordpress what does the process involve?

take a look at qTranslate Main features: qTranslate Services – Professional human and automated machine translation with two clicks One-Click-Switching between the languages – Change the language as easy as switching between Visual and HTML Language customizations without changing the .mo files – Use Quick-Tags instead for easy localization Multilingual dates out of the box … Read more