Skip to Content Skip to Menu

CB Progress Field (rename alert message)

10 years 1 month ago #249354 by pasquale1980
Replied by pasquale1980 on topic CB Progress Field (rename alert message)
I entered the string:

$CBstrings = array(
'Profilo incompleto! Campi: [fields]' => 'Profilo incompleto! Campi: [fields]'
);

in file language.php (/components/com_comprofiler/plugin/language/it-it)
and so should not be in error, however, does not translate, the text is always to English.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 1 month ago #249360 by krileon
Replied by krileon on topic CB Progress Field (rename alert message)
You need to add it to the existing array of strings. If you define a new $CBstrings you'll end up overwriting your entire translations. Just add it to the top of the array and put a comma after it and it should translate as long as that language is loaded. Please see the below for language usage information.

www.joomlapolis.com/cb-solutions/languages

Additional information can be found in your documentation available for download in the Advanced downloads section.

If it's still not translating then it could be bugged. Next release however will be removing this feature though as it's outside the scope of the plugins purpose and doesn't behave very well (e.g. privacy, conditionals, etc.. can conflict badly with its value checking).


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.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 1 month ago #249374 by nant
Replied by nant on topic CB Progress Field (rename alert message)

pasquale1980 wrote: I entered the string:

$CBstrings = array(
'Profilo incompleto! Campi: [fields]' => 'Profilo incompleto! Campi: [fields]'
);

in file language.php (/components/com_comprofiler/plugin/language/it-it)
and so should not be in error, however, does not translate, the text is always to English.


This is wrong.

The left part must be the original string in English and the right part your translation.

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

10 years 1 month ago #249391 by pasquale1980
Replied by pasquale1980 on topic CB Progress Field (rename alert message)
I tried inserting only the second part in Italian language but nothing. However, in my file language.php there is no string "$CBstrings = array(........" so I think that the file where resides the string is another, I've turned all in anybody I could find the string:

$ CBstrings = array (
'Profile incomplete! Fields: [fields] '=>' Profile incomplete! Fields: [fields] '
);

I attach a screenshot with the directory of the folders that containing the language files.
For the "Error" I brought the "font-size: 0;" because users who register tell me to have an error in reality it is only a warning, so I think it will hide all other notices, but error create confusion to the users.
Sorry for my bad English.
Attachments:

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

10 years 1 month ago #249410 by pasquale1980
Replied by pasquale1980 on topic CB Progress Field (rename alert message)
Sorry, I did some tests with firebug on the font size and color to hide the error message and find the location, I changed the values ​​in the css file but the site remains unchanged (Error in green). Why not take the changes? There is also a way in php file on CB Progress Field to disable the message? Sorry if I insist but with Error I have a problem in managing the complete registration of users.
Thanks.

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

10 years 1 month ago #249425 by pasquale1980
Replied by pasquale1980 on topic CB Progress Field (rename alert message)
The word "Error" I managed to hide it via the css file of my template, it worked after clearing the file browser navigation.
Sorry.

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

Moderators: beatnantkrileon
Powered by Kunena Forum