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

Localization, escape html elements mid-sentence

I’d use printf to put the markup into place after the translation. You can force the order with the right modifiers, but translators are probably smart enough to not really need that. printf( __(‘The image %sMUST%s be less than %s500 KB%s in size.’, CUSTOM_TEXT_DOMAIN), ‘<em>’, ‘</em>’, ‘<strong>’, ‘</strong>’ ) ; I consider Otto’s post to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)