Skip to Content Skip to Menu

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

[SOLVED] Translating Password Strength

  • Hertak
  • Hertak
  • OFFLINE
  • Posts: 386
  • Thanks: 84
  • Karma: 29
11 years 7 months ago - 11 years 7 months ago #223546 by Hertak
Hi i´m trying to translate the plugin Password Strength but not load the language string
On cbteamplugins_language.php file i put this
Code:
CBTxt::addStrings( array( // Language for Password Strength plugin 'Password Strength' => 'Fuerza de la contraseña', 'Very Weak' => 'Muy débil', ));
But this do not translate anithing How i doing wrong? thanks.
Last edit: 11 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #223564 by krileon
Replied by krileon on topic Translating Password Strength
The strings are as follows. Where are you rendering the field? If outside of profile then that could be the issue as I do not have it loading language plugins (fields shouldn't need to).

'Very Weak' => 'Very Weak',
'Weak' => 'Weak',
'Ok' => 'Ok',
'Good' => 'Good',
'Strong' => 'Strong',
'Very Strong' => 'Very Strong',

Your other string would be the field title and it should be working fine so either your language plugin isn't loading or the strings weren't added properly is my guess.


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.

  • Hertak
  • Hertak
  • OFFLINE
  • Posts: 386
  • Thanks: 84
  • Karma: 29
11 years 7 months ago #223566 by Hertak
Replied by Hertak on topic Translating Password Strength
The field is rendering on edit profile.
See my example i put only two string to test.
In the past i add strings to the language plugins (Many strings are missed principally the incubaitor or addons) is very simple add string but io don´t know why sometimes don´t work.
See the code i miss something
Code:
CBTxt::addStrings( array( // Language for Password Strength plugin 'Password Strength' => 'Fuerza de la contraseña', 'Very Weak' => 'Muy débil', 'Weak' => 'Débil', 'Ok' => 'Ok', 'Good' => 'Buena', 'Strong' => 'Fuerte', 'Very Strong' => 'Muy Fuerte', ));

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #223573 by krileon
Replied by krileon on topic Translating Password Strength
I'm guessing you have the strings duplicated somewhere or your language plugin isn't loading. It appears to be working perfectly fine by adding your translations to default language plugin. Please see the below of it working.



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.
Attachments:

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

  • Hertak
  • Hertak
  • OFFLINE
  • Posts: 386
  • Thanks: 84
  • Karma: 29
11 years 7 months ago #223632 by Hertak
Replied by Hertak on topic Translating Password Strength
I test it with defoult lange and it works, i don´t know why on the spanish language don´t load the rest of plugin load well the part of twitter and facebook don´t load to, i will make some test to make it work. Thanks.

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

  • Hertak
  • Hertak
  • OFFLINE
  • Posts: 386
  • Thanks: 84
  • Karma: 29
11 years 7 months ago #224059 by Hertak
Replied by Hertak on topic Translating Password Strength
Hi Kyle sorry for disturb but i have several problem with the language of teams plugins.
I attach a copy. The problem is there are many things translated like profile blogs or book, Twitter or facebook but the language is not rendered.
Please can you see it? i thing many problems can be for transifex because i have a old copy and ProfileBook plugin works for example.
Many Thanks.

File Attachment:

File Name: cbteamplug...uage.zip
File Size:10 KB
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum