The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] How to change the default phrases in a multilingual site?
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
(@munikho)
Posts: 2
New Member
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
[#2191]
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!!
Posted : 28/06/2021 6:43 pm
(@asti)
Posts: 8267
Illustrious Member Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Hi @munikho
Please read this FAQ: https://wpdiscuz.com/community/postid/1144/
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 29/06/2021 9:52 am
(@munikho)
Posts: 2
New Member
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
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);
Posted : 17/11/2022 12:35 am
(@asti)
Posts: 8267
Illustrious Member Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
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.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 18/11/2022 12:08 pm
Super Globals
Options and Features