Notifications
Clear all

Order of words for Datediff in french

2 Posts
2 Users
0 Reactions
1,085 Views
(@charlie)
New Member
Joined: 5 years ago
Posts: 1
Topic starter  

Hi,

Order of words for strings like "3 days ago" differs for some langages like french where we have "il y a 3 jours". 

Phrases page or locotranslate can't help with that.

I was able to override that for my personal case but I think it could be nice to have another way of translating this string, maybe with a var like "%s ago" so that we could do "il y a %s" in french


   
Quote
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

Hi @charlie,

I'm sorry, but wpDiscuz doesn't have such a feature yet.

However, the feature will be added in the next version release.

For now, please follow the steps to get it resolved.

1. Below is the archived folder, please download the folder.

2. In the folder, you'll see the class.WpdiscuzHelper.php file.

3. Replace the file class.WpdiscuzHelper.php in the wp-content/plugins/wpdiscuz/utils/ directory with the file I've provided. 


   
ReplyQuote
Share:
Scroll to top