Skip to Content Skip to Menu

CB Activity translate ?

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
12 years 3 months ago #203765 by mfe13
Replied by mfe13 on topic Re: CB Activity translate ?
I am ashamed!
I had not seen him!
thank you very much Jojo ! ;)
Now It work very well
The following user(s) said Thank You: jojo12

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

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
12 years 3 months ago #204036 by mfe13
Replied by mfe13 on topic Re: CB Activity translate ?
hello,
If a member makes an action there 4 minutes, it appears 4 months on the page!
I think there is an error in my % but I can see where !
It's normal to have everywhere %d ?

'%d minutes' => '%d minutes',
'about an hour' => 'environ une heure',
'about %d hours' => 'depuis %d heures',
'a day' => 'un jour',
'%d days' => '%d jours',
'about a month' => 'depuis un mois',
'%d months' => '%d mois',
'about a year' => 'depuis un an',
'%d years' => '%d ans',

Thank you very much

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 3 months ago #204071 by krileon
Replied by krileon on topic Re: CB Activity translate ?

If a member makes an action there 4 minutes, it appears 4 months on the page!

Don't understand. If something is 4 minutes ago it's showing as 4 months ago?

It's normal to have everywhere %d ?

Yes, this is normal. It's the language strings used by the Timeago jQuery plugin. You can find CB Activity jQuery in the jquery.php template file where you can directly alter them if needed.


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.

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

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
12 years 3 months ago - 12 years 3 months ago #204075 by mfe13
Replied by mfe13 on topic Re: CB Activity translate ?

krileon wrote: Don't understand. If something is 4 minutes ago it's showing as 4 months ago?

Absolutly !
'%d minutes' => '%d minutes', showing Months and not minutes !

I haven't modified jquery, I just added in my cbteamplugins_language.php
//CB Plugin Activity
CBTxt::addStrings( array(
'ago' => 'environ',
'from now' => 'maintenant',
'less than a minute' => 'moins d\'une minute',
'about a minute' => 'depuis une minute',
'%d minutes' => '%d minutes',
'about an hour' => 'environ une heure',
'about %d hours' => 'depuis %d heures',
'a day' => 'un jour',
'%d days' => '%d jours',
'about a month' => 'depuis un mois',
'%d months' => '%d mois',
'about a year' => 'depuis un an',
'%d years' => '%d ans',
'created a group' => 'Groupe créé',
'has logged in' => 's\'est connecté',
'has logged out' => 's\'est déconnecté',
'has joined [sitename_linked]' => 'a rejoint [sitename_linked]',
'has an updated profile' => 'a modifié son Profil',
'has an updated profile picture' => 'a modifié l\'image de son profil',
'and [user_linked] are now connected' => 'et [user_linked] sont connéctés',
'posted a guestbook entry to [user_linked]' => 'a écrit sur le mur de [user_linked]',
'posted a wall entry to [user_linked]' => 'a écrit sur le mur de [user_linked]',
'posted a wall entry' => 'a écrit sur le mur',
'uploaded a gallery image' => 'a mis une nouvelle image dans sa galerie',
'uploaded a gallery file' => 'a mis un nouveau fichier ',
'created a category' => 'a créé une catégorie',
'joined a group' => 'a rejoint ce groupe',
'scheduled a group event' => 'a prévu un évènement dans ce groupe',
'is attending a group event' => 'attend une réponse',
'uploaded a group file' => 'a mis un fichier dans le groupe',
'uploaded a group photo' => 'a mis une photo dans le groupe',
'published a group video' => 'a mis une vidéo dans le groupe',
'posted in a group' => 'a posté dans le groupe',
'replied to a group post' => 'a répondu sur le mur du groupe',
'created a new discussion' => 'a créé une nouvelle discussion',
'replied to a discussion' => 'a répondu a la discussion',
'posted a blog entry' => 'a mis un blog en ligne',
) );
Last edit: 12 years 3 months ago by mfe13.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 3 months ago #204094 by krileon
Replied by krileon on topic Re: CB Activity translate ?
I've no idea, I'm not seeing that in source.
Code:
. "suffixAgo: '" . addslashes( CBTxt::T( 'ago' ) ) . "'," . "suffixFromNow: '" . addslashes( CBTxt::T( 'from now' ) ) . "'," . "seconds: '" . addslashes( CBTxt::T( 'less than a minute' ) ) . "'," . "minute: '" . addslashes( CBTxt::T( 'about a minute' ) ) . "'," . "minutes: '" . addslashes( CBTxt::T( '%d minutes' ) ) . "'," . "hour: '" . addslashes( CBTxt::T( 'about an hour' ) ) . "'," . "hours: '" . addslashes( CBTxt::T( 'about %d hours' ) ) . "'," . "day: '" . addslashes( CBTxt::T( 'a day' ) ) . "'," . "days: '" . addslashes( CBTxt::T( '%d days' ) ) . "'," . "month: '" . addslashes( CBTxt::T( 'about a month' ) ) . "'," . "months: '" . addslashes( CBTxt::T( '%d months' ) ) . "'," . "year: '" . addslashes( CBTxt::T( 'about a year' ) ) . "'," . "years: '" . addslashes( CBTxt::T( '%d years' ) ) . "'"


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.

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

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
12 years 3 months ago #204103 by mfe13
Replied by mfe13 on topic Re: CB Activity translate ?
It works by disabling : Dynamic Timeago

problem solved

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

Moderators: beatnantkrileon
Powered by Kunena Forum