View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 20323 | Bug reports | Translation | public | 2025-10-25 15:28 | 2025-10-25 15:40 | ||||||||||||||||||||||||
| Reporter | Mazi | Assigned To | gabrieljenik | ||||||||||||||||||||||||||
| Priority | none | Severity | block | ||||||||||||||||||||||||||
| Status | assigned | Resolution | open | ||||||||||||||||||||||||||
| Product Version | 6.6.x | ||||||||||||||||||||||||||||
| Summary | 20323: Google Translate integration fails for some languages due to mismatched language codes (hat, prs, mya, swh, fil) | ||||||||||||||||||||||||||||
| Description | When using the Quick Translation feature with a configured Google Translate API key, some translations fail because LimeSurvey uses ISO 639‑2 or 639‑3 language codes that are not recognized by the Google Translate API, which only supports ISO 639‑1 codes.
...but there may be more languages with different codes used. | ||||||||||||||||||||||||||||
| Steps To Reproduce | Steps to reproduceYou need a valid API key, then you can send a simply CURL request for testing: Expected resultAPI call should return the translation of "survey" in the target language defined. Actual resultAPI returns this for an invalid/valid target language code: Wrong code "hat": Correct code "ht": | ||||||||||||||||||||||||||||
| Tags | No tags attached. | ||||||||||||||||||||||||||||
| Bug heat | 2 | ||||||||||||||||||||||||||||
| Complete LimeSurvey version number (& build) | 6.15.16 | ||||||||||||||||||||||||||||
| I will donate to the project if issue is resolved | No | ||||||||||||||||||||||||||||
| Browser | |||||||||||||||||||||||||||||
| Database type & version | MySQL/MariaDB | ||||||||||||||||||||||||||||
| Server OS (if known) | |||||||||||||||||||||||||||||
| Webserver software & version (if known) | |||||||||||||||||||||||||||||
| PHP Version | 8.x | ||||||||||||||||||||||||||||
| related to | 20294 | assigned | gabrieljenik | Translation fails (Dari and Tigrinya) due to missing language code mappings |
|
Further languages with different codes for Google translate/Limesurvey:
|
|||||||||||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-10-25 15:28 | Mazi | New Issue | |
| 2025-10-25 15:32 | Mazi | Relationship added | related to 20294 |
| 2025-10-25 15:32 | Mazi | Assigned To | => gabrieljenik |
| 2025-10-25 15:32 | Mazi | Status | new => assigned |
| 2025-10-25 15:32 | Mazi | Description Updated | |
| 2025-10-25 15:40 | Mazi | Note Added: 83672 | |
| 2025-10-25 15:40 | Mazi | Bug heat | 0 => 2 |
| 2025-10-25 15:40 | Mazi | Note Edited: 83672 |