- This topic has 14 replies, 2 voices, and was last updated 1 year, 6 months ago by
Tom.
-
AuthorPosts
-
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 #980974Tom
Lead DeveloperLead DeveloperHi there,
Are those words translated into your language here?: https://translate.wordpress.org/projects/wp-themes/generatepress/
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 10, 2019 at 5:24 pm #980986Hilton
Hi Tom,
Yes, the words are there.
ThanksAugust 10, 2019 at 5:33 pm #980988Tom
Lead DeveloperLead DeveloperThe 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 10, 2019 at 6:05 pm #981000Hilton
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 #981442Tom
Lead DeveloperLead DeveloperAh, can you try changing the folder name back to see if that’s the issue?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 12, 2019 at 9:01 am #982176Hilton
Hi Tom,
I can’t change name back because doing this WP won’t load.
August 12, 2019 at 4:45 pm #982480Tom
Lead DeveloperLead DeveloperHmm, 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/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 12, 2019 at 8:51 pm #982574Hilton
August 13, 2019 at 9:46 am #983196Tom
Lead DeveloperLead DeveloperSorry about that, can you try the updated code above?: https://generatepress.com/forums/topic/cannot-translate-leave-a-comment-and-post-comment/#post-982480
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 13, 2019 at 10:18 am #983225Hilton
Now it is ok! π
August 13, 2019 at 4:28 pm #983488Tom
Lead DeveloperLead DeveloperAwesome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 13, 2019 at 5:40 pm #983523Hilton
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*
WebsiteWe really need to find a way to translate these words. Can you help please?
August 13, 2019 at 7:47 pm #983563Hilton
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 #984159Tom
Lead DeveloperLead DeveloperAwesome, glad it’s all working now π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.