Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Translate Progress Field

  • elfif
  • elfif
  • OFFLINE
  • Posts: 4
  • Thanks: 1
  • Karma: 0
12 years 1 month ago - 12 years 1 month ago #216406 by elfif
Translate Progress Field was created by elfif
Hello,

How can I make a translation of comment (x% Profile complete) appearing under the progress bar?

I see the line in the code, but how can I replace "Profile complete" by a _UE_PROFILE_COMPLETE string?

Here is the code at line 139 of file components/com_comprofiler/plugin/user/plug_cbprogressfield/field.cbprogressfield.php
Code:
$content.='<div class="cbProgressCompleteness">' . CBTxt::P( '[complete]% Profile Completeness', array( '[complete]' => $complete ) ) . '</div>';

Thanks for your help
Last edit: 12 years 1 month ago by elfif.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216428 by krileon
Replied by krileon on topic Re: Translate Progress Field
Add the below to your cbteamplugins file of your CB language plugin then change as needed.

'[complete]% Profile Completeness' => '[complete]% Profile Completeness'

Review surrounding code in said file for appropriate location to place it and if it should have a comma at the end or not.


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.

  • elfif
  • elfif
  • OFFLINE
  • Posts: 4
  • Thanks: 1
  • Karma: 0
12 years 1 month ago #216472 by elfif
Replied by elfif on topic Re: Translate Progress Field
Hello,
Thanks for your answer, BUT I didn't understand a word :(

What are you talking about?
Where is the CB language plugin? and what file exactly is "cbteamplugins file"

It's the first time I really work with CB since a long time and I'm completely lost!

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 1 month ago #216477 by nant
Replied by nant on topic Re: Translate Progress Field

elfif wrote: Hello,
Thanks for your answer, BUT I didn't understand a word :(

What are you talking about?
Where is the CB language plugin? and what file exactly is "cbteamplugins file"

It's the first time I really work with CB since a long time and I'm completely lost!


CB localization is done with CB Language plugins.
www.joomlapolis.com/cb-solutions/languages

Existing languages contributed can be found here:
forge.joomlapolis.com/projects/lan-cb?jump=welcome

Each CB language plugin contains a number of files with translated text:
language.php
cbteamplugins_language.php
admin_language.php
calendar-locals.js
The following user(s) said Thank You: elfif

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

Moderators: beatnantkrileon
Powered by Kunena Forum