Notifications
Clear all

wpForo 1.x.x [Closed] "Edit post" title - translation failure

5 Posts
2 Users
1 Likes
2,499 Views
Posts: 35
 serd
Topic starter
(@serd)
Trusted Member
Joined: 8 years ago

Hi,

despite the phrase is translated in the "phrases" section of the WPforo menu, this phrase is still displayed in English on the front end. I did reset cache but it did not help, although for other phrases translation via the "phrases" section worked fine without cache resetting.

What could be the solution? Thanks.

 
 
4 Replies
Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

If you do some changes in Forums > Phrases, please also delete Phrase Cache in Dashboard > Forums > Dashboard admin page (click on Delete Phrase Cache) button. Then Delete website cache and do Ctrl+F5 on forum front.

Also I'd recommend use according language pos/mo files. More information here:

https://wpforo.com/docs/root/translation/translate-using-pot-file/

Posts: 35
 serd
Topic starter
(@serd)
Trusted Member
Joined: 8 years ago

Thanks Rob.

 

1 Reply
 serd
(@serd)
Joined: 8 years ago

Trusted Member
Posts: 35

Hi Rob,

coming back to previous discussion - for some reason translation does not work for at least two phrases:

  • Edit post
  • Reply with quote

I did make sure the phrases were translated and reset the phrase cache, however it did not help. Any other recommendations, please?

Please see attached.

 

 

 

 

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

Thank you for letting us know. We've fixed these phrases in next 1.4.3 version. It'll be released very soon.

In any case if you need this urgently please follow to this instruction:

Open /wp-content/plugins/wpforo/wpf-assets/js/ajax.js file and find this line:

$("#wpf-reply-form-title").html('Reply with quote');

Change it to this:

var phrase = wpforo_phrase('Reply with quote');
phrase = phrase.charAt(0).toUpperCase() + phrase.slice(1);
$("#wpf-reply-form-title").html( phrase );

 

Then find this line in the same file:

$("#wpf-reply-form-title").html('Edit post');

Change it to this:

var phrase = wpforo_phrase('Edit post');
phrase = phrase.charAt(0).toUpperCase() + phrase.slice(1);
$("#wpf-reply-form-title").html( phrase );

Save it, delete all caches and do Ctrl+F5 on forum front.

 Please do not translate phrases in code, they will get the translated values from wpForo Phrases.