Time with prefix in...
 
Notifications
Clear all

[Solved] Time with prefix instead of suffix

6 Posts
3 Users
9 Reactions
1,711 Views
(@peacherd)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  

Hi there,

Is it possible to change the time feature (2 hours ago) so that the “ago” is placed before the time. In french, we write “Il y a 3 heures” = “ago 3 hours” and not “3 heures il y a” = 3 hours ago” which is currently what appears.

Thanks for a really great plugin… The best comment system I’ve ever touched, and I have tried quite a few “premium” ones.


   
YordanSoares reacted
(@yordansoares)
New Member
Joined: 5 years ago
Posts: 1
 

I have the same quesiton that @peacherd. In spanish we say: “Hace 3 horas” (3 hours ago). I translated the strings, but isn’t match for spanish: it’s appear like “3 horas hace“, a sentence without coherence in our language. Is there a way to change the order of each part of this strings? I mean [adjective] [number] [time unit] instead of [number] [time unit] [adjective] as appears right now. Thanks in advance for helping us.


   
peacherd reacted
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

Hi @peacherd, @yordansoares,

Thank you for contacting us.

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

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. 


   
(@peacherd)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  

Thank you so much for this, and the speed of the fix. It works perfectly for me, and makes it look a whole lot better. 

Will soon be getting a few of your addons. Once again, this comment plugin beats all of them!


   
YordanSoares reacted
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

Dear @peacherd,

We'd really appreciate and be thankful if you leave a good review on the plugin page. This is the best way to say thank you to this project and support team.


   
(@peacherd)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  
Posted by: Astghik

Dear @peacherd,

We'd really appreciate and be thankful if you leave a good review on the plugin page. This is the best way to say thank you to this project and support team.

With pleasure. Thanks again!


   
YordanSoares and Astghik reacted
Share:
Scroll to top