Home › Forums › Support › Cannot translate Leave a Comment and Post Comment This topic has 14 replies, 2 voices, and was last updated 4 years, 8 months ago by Tom. Viewing 15 posts - 1 through 15 (of 15 total) Author Posts August 10, 2019 at 12:22 pm #980860 Hilton Hi, The only things I cannot translate are Leave a Comment and Post Comment button. Can you help? August 10, 2019 at 4:40 pm #980974 TomLead Developer Lead Developer Hi there, Are those words translated into your language here?: https://translate.wordpress.org/projects/wp-themes/generatepress/ Let me know π August 10, 2019 at 5:24 pm #980986 Hilton Hi Tom, Yes, the words are there. Thanks August 10, 2019 at 5:33 pm #980988 TomLead Developer Lead Developer The words are translated? Which language? Is there an “Update Translations” button in “Dashboard > Updates” in your admin area? If so, can you click it? Let me know π August 10, 2019 at 6:05 pm #981000 Hilton No, there isn’t such button. Maybe because I changed the theme folder name, I don’t know… The words are translated in Portuguese Brazil. August 11, 2019 at 9:38 am #981442 TomLead Developer Lead Developer Ah, can you try changing the folder name back to see if that’s the issue? August 12, 2019 at 9:01 am #982176 Hilton Hi Tom, I can’t change name back because doing this WP won’t load. August 12, 2019 at 4:45 pm #982480 TomLead Developer Lead Developer Hmm, I suppose you could try this: add_filter( 'gettext', function( $text ) { if ( 'Leave a Comment' === $text ) { $text = 'Your new text here'; } if ( 'Post a Comment' === $text ) { $text = 'Your new text here'; } return $text; } ); Adding PHP: https://docs.generatepress.com/article/adding-php/ August 12, 2019 at 8:51 pm #982574 Hilton Hi Tom, It didn’t work π https://prnt.sc/orwfuz August 13, 2019 at 9:46 am #983196 TomLead Developer Lead Developer Sorry about that, can you try the updated code above?: https://generatepress.com/forums/topic/cannot-translate-leave-a-comment-and-post-comment/#post-982480 August 13, 2019 at 10:18 am #983225 Hilton Now it is ok! π August 13, 2019 at 4:28 pm #983488 TomLead Developer Lead Developer Awesome π August 13, 2019 at 5:40 pm #983523 Hilton Tom, There are more words to translate… for example: β Previous 1 2 3 β¦ 43 Next β Nothing Found Sorry, but nothing matched your search terms. Please try again with some different keywords. 1.606 thoughts on βMy article titleβ β Older Comments Newer Comments β Name* E-mail* Website We really need to find a way to translate these words. Can you help please? August 13, 2019 at 7:47 pm #983563 Hilton Hi Tom, I downloaded generatepress translation from here https://translate.wordpress.org/projects/wp-themes/generatepress and followed this instructions https://docs.generatepress.com/article/uploading-translations/ , and the problem was fixed. Thanks August 14, 2019 at 9:26 am #984159 TomLead Developer Lead Developer Awesome, glad it’s all working now π Author Posts Viewing 15 posts - 1 through 15 (of 15 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In