Translating Divi - kary4/divituts GitHub Wiki
In the latest version of Divi, Extra and Divi Builder the uncompiled translation files have been moved to their own zip archive in order to reduce the filesize of the products zip archive. Here are the downloads links for the .po files in case a customer needs them:
Divi PO files: https://www.elegantthemes.com/downloads/Divi-po-files.zip
Extra PO files: https://www.elegantthemes.com/downloads/Extra-po-files.zip
If you want to download the divi po files separetly you can check the links below: https://www.elegantthemes.com/downloads/Divi-po-files.zip https://www.elegantthemes.com/downloads/Extra-po-files.zip https://www.elegantthemes.com/downloads/divi-builder-po-files.zip
=====================================================================
To translate a comment form or other strings manually:
add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 );
/**
* Change comment form default field names.
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function theme_change_comment_field_names( $translated_text, $text, $domain ) {
if ( is_singular() ) {
switch ( $translated_text ) {
case 'Submit a Comment' :
$translated_text = __( 'Translated Submit a Comment', 'theme_text_domain' );
break;
case 'Email' :
$translated_text = __( 'Email Address', 'theme_text_domain' );
break;
}
}
return $translated_text;
}