Hi!
I think it should be possible to add Hebrew, because the underlying Translation API from Google is supporting Hebrew: https://cloud.google.com/translate/docs/languages
I’ve added an Github Issue for this:
https://github.com/pluginkollektiv/antispam-bee/issues/132
Maybe we can add an filter in a future release, so it would be easier to change this value in the future. Or an option like you suggested.
All the best,
Torsten
Thank you! That would be wonderful.
Hi @wpkiller,
in the version 2.7.1 you can add additional languages through a filter. So you can add a simple code snippet into your child theme to add Hebrew (more information here: https://github.com/pluginkollektiv/antispam-bee/wiki/en-Hooks#user-content-ab_get_allowed_translate_languages)
We decided for now against hardcoding new languages, because we are not sure how to bring this in a good UX (a select field with 3,4 languages is okay, but with 30 it will become a bit a bad UX).
In case of Hebrew, we are not quite sure, if you should use he or iw. Wikipedia says the correct ISO-code would be he, but in the related Google doc (for the translation API) it states iw. So, give both a try, if you are stuck 🙂
If you do not know, how to add the code into your functions.php, this seems to be a good tutorial: http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/
All the best,
David.
(@wpkiller)
9 years, 3 months ago
Hi There,
You have a great feature, allowing only specific languages in the comments.
I would like to add another language (Hebrew) which is not in the current list (English, German, Italian, French, Spanish) – is there a way to do it?
Or better yet, would you please include an option to input a specific language to allow, and even be able to allow more than one language, as you’ve did with the allowed countries with their ISO codes format.
Thanks in advance.