The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How to change the d...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] How to change the default phrases in a multilingual site?

4 Posts
2 Users
0 Reactions
1,409 Views
Posts: 2
Topic starter
(@munikho)
New Member
Joined: 4 years ago

I am using wpDiscuz on a multilingual site and it's work great. When enabling 'Use Plugin .PO/.MO Files' in the settings, the phrase section disappears. I also couldn't find a filter through which to change the default phrases. Is there one available?

It would be great if the phrases would pass through a filter, so I could alter them in my theme. Or does anybody know a different way to go about this?

Thank you!!

3 Replies
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @munikho

Please read this FAQ: https://wpdiscuz.com/community/postid/1144/

Posts: 2
Topic starter
(@munikho)
New Member
Joined: 4 years ago

It took a while, but I discovered there actually is a filter for this. Just sharing in case it's useful for anybody.

// change the default phrases from WPDiscuz
add_filter('wpdiscuz_phrase', function($text, $key, $args){
	if($key == 'wc_most_voted'){
		$text = __('Most Gratitude', 'plumvillage');
	}
	return $text;
}, 20, 3);

 

 

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8075

Thank you for taking the time and share the solution.

We're going to mark this thread as resolved. Feel free to open a new topic if you have further questions.

Share: