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] CB antispam translation problem

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 5 months ago - 11 years 5 months ago #227742 by activha
Hello

I have version 1.1.1 of CB antispam and have some problems with translation strings for some text strings using yes or no

For instance :
Are you a Human?=Yes
Are you a Bot?=No

is translated as :
'Are you a Human?' => 'Etes vous un humain ?',
'Yes' => 'oui',
'Are you a Bot?' => 'Etes vous un robot ?',
'No' => 'non',

However, answering oui or non to these questions always fails, while if I answer Yes to the french question all is working ok.

Is there a bug somewhere ?
Last edit: 11 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago - 11 years 5 months ago #227747 by krileon
Replied by krileon on topic CB antispam translation problem
Tested your exact strings and it appears to be working fine. When using "oui" for "Yes", it appears to work. Where exactly are you trying this? Login? Registration? If registration are you using Ajax usage? Yes and No are pretty common strings. Ensure you're not double translating as you could be translating them back to English somewhere throughout your language files or from another language file being loaded.


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.
Last edit: 11 years 5 months ago by krileon.

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

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 5 months ago #227753 by activha
Replied by activha on topic CB antispam translation problem
Well this does not work for most of translations not using figures.
Here is my translation :

//antispam cb file
CBTxt::addStrings( array(
'What is 2 plus 2?' => 'Combien font 2 et 2 ?',
'What is 1 times 6?' => 'Combien fait 1 fois 6 ?',
'What is 9 divide 3?' => 'Combien font 9 divisé par 3 ?',
'Are you a Human?' => 'Etes vous un humain ?',
'Yes' => 'Oui',
'Are you a Bot?' => 'Etes vous un robot ?',
'No' => 'Non',
'How many words is this?' => 'Combien de mots ai je ?',
'How many fingers on a hand?' => 'Combien de doigts dans une main ?',
'How many toes on a foot?' => 'Combien d\'orteils sur un pied ?',
'What is 10 add 10?' => 'Combien font 10 plus 10 ?',
'What is 0 multiply 100?' => 'Combien fait 0 fois 100 ?',
'What is 5 minus 1?' => 'Combien font 5 moins 1 ?',
'What is 2 add 2?' => 'Combien font 2 plus 2 ?',
'4th letter of Test is?' => 'La 4 lettre de Test est un ?',
'20, 81, 3; which is smallest?' => '20, 81, 3; lequel est le plus petit nombre ?',
'12, 31, 9; which is greatest?' => '12, 31, 9; lequel est le plus grand nombre ?',
'Purple, car, dog; which is a color?' => 'Violet, voiture, chien; Lequel est une couleur ?',
'Purple' => 'Violet',
'Cat, plane, rock; which is an animal?' => 'Chat, avion, rocher; Lequel est un animal ?',
'Cat' => 'Chat',
'If tomorrow is Monday; what day is today?' => 'Si demain est Lundi, quel jour sommes nous ?',
'Sunday' => 'Dimanche',
'Tim, cat, dog; which is human?' => 'David, chat, chien; Lequel est un humain ?',
'Tim' => 'David',
'Invalid Captcha Code' => 'Vous avez entré une mauvaise réponse !',
'Captcha code is valid.' => 'Merci, votre réponse est ok !',
'Captcha code not valid.' => 'Oupss, ĂȘtes vous sĂ»r ? RĂ©essayez!'

));

And no there is no double translation anywhere else in the language files
We are using it in registration and with ajax usage

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227758 by krileon
Replied by krileon on topic CB antispam translation problem
Please disable the Ajax usage and test if is working as it could just be an issue with the Ajax usage as the values are translating fine in my login captcha test.


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.

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 5 months ago #227761 by activha
Replied by activha on topic CB antispam translation problem
Values are also translating fine in my captcha test, only results are not translated or at random

For instance value David works ok as an answer, but value Violet does not work as Oui and Non neither as answers

I have tested with ajax and without, same results

Seems like it is not related to ajax, ajax works great with figures as answers

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227764 by krileon
Replied by krileon on topic CB antispam translation problem
Please add your same translations to all your CB language files at the very bottom then see if is working. Wonder if perhaps for some reason the wrong language file is being loaded during validation.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum