View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20071Bug reportsTranslationpublic2025-04-23 20:35
ReporterMazi Assigned To 
PrioritynoneSeverityblock 
Status newResolutionopen 
Product Version6.6.x 
Summary20071: Haitian Creole is supported by Limesurvey but auto translation (Google Translate) at quick translation fails
Description

According to https://cloud.google.com/translate/docs/languages?hl=en Google Trnaslate API supports Haitian Creole. It lists the language with short code "ht".
Limesurvey also supports that language but uses code "hat", see https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/surveytranslator_helper.php#L208.

When trying to use Google translate for the auto trnaslate feature at quick translation, this fails with error "There was an error using the Google API. Detailed error: true".
Testing with another language like French shows no issues.

Thus, my guess is that the wrong language code gets passed and causes the error.

Steps To Reproduce

Steps to reproduce

Add Google translate API key at Global Settings.
Create a survey with e.g. EN default language and Haitian Creole as additional language.
Go to the quick translation feature and try to use auto-translate.

Expected result

Get fields translated properly.

Actual result

The mentioned error (see screenshot) shows up, no texts are translated.

TagsNo tags attached.
Attached Files
image.png (9,552 bytes)   
image.png (9,552 bytes)   
Bug heat0
Complete LimeSurvey version number (& build)6.12.2
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL/MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version8.x

Users monitoring this issue

There are no users monitoring this issue.

Activities

Issue History

Date Modified Username Field Change
2025-04-23 20:35 Mazi New Issue
2025-04-23 20:35 Mazi File Added: image.png