Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

[SOLVED]Help to adapt the jquery timeago for german with prefix instead

  • jojo12
  • jojo12
  • OFFLINE
  • Posts: 957
  • Thanks: 109
  • Karma: 25
11 years 9 months ago - 11 years 9 months ago #218093 by jojo12
Hi Kyle, I wrote this before in the german language part but didn't get any answer. So I ask here:
Meanwhile I found a solution to adapt in cb_activity the jquery timeago for using with prefix. But I am not sure, is my solution ok or not.

I am looking for an override solution, because I don't want to change the code after an update. Do you have a solution?

My solution is:
in components/com_comprofiler/plugin/user/plug_cbactivity/templates/default
I opened jquery.php and added
. "prefixAgo: '" . addslashes( CBTxt::T( 'vor' ) ) . "',"
. "prefixFromNow: '" . addslashes( CBTxt::T( 'in' ) ) . "',"
then I changed the following
. "suffixAgo: '" . addslashes( CBTxt::T( '' ) ) . "',"
. "suffixFromNow: '" . addslashes( CBTxt::T( '' ) ) . "',"
-> the words for suffixAgo are now empty
Then I saved.
It's now good german.
Last edit: 11 years 9 months ago by jojo12.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #218180 by krileon
With latest release of CB Activity you won't need to make edits anymore. Simply use the below language strings to have the same as your edits.

'TIMEAGOPREFIX' => 'vor',
'TIMEAGOFROMNOWPREFIX' => 'in',
'ago' => '',
'from now' => ''


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum