View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20071Bug reportsTranslationpublic2025-05-06 11:54
ReporterMazi Assigned Toc_schmitz  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
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 heat4
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

c_schmitz

c_schmitz

2025-04-29 13:23

administrator   ~82520

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=38798

LimeBot

LimeBot

2025-05-06 11:54

administrator   ~82577

Fixed in Release 6.13.2+250506

Related Changesets

LimeSurvey: master 5d94ad32

2025-04-29 13:23

c_schmitz


Details Diff
Fixed issue 20071: Haitian Creole fails to quick translation Affected Issues
20071
mod - application/controllers/QuickTranslationController.php Diff File

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
2025-04-24 21:46 tibor.pacalat Assigned To => gabrieljenik
2025-04-24 21:46 tibor.pacalat Status new => assigned
2025-04-29 13:16 c_schmitz Assigned To gabrieljenik => c_schmitz
2025-04-29 13:23 c_schmitz Changeset attached => LimeSurvey master 5d94ad32
2025-04-29 13:23 c_schmitz Note Added: 82520
2025-04-29 13:23 c_schmitz Status assigned => resolved
2025-04-29 13:23 c_schmitz Resolution open => fixed
2025-04-29 13:23 c_schmitz Bug heat 0 => 2
2025-05-06 11:54 LimeBot Note Added: 82577
2025-05-06 11:54 LimeBot Status resolved => closed
2025-05-06 11:54 LimeBot Bug heat 2 => 4