View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20294Bug reportsTranslationpublic2025-10-10 16:40
ReporterFreda Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Summary20294: Translation fails (Dari and Tigrinya) due to missing language code mappings
Description

No explicit error appears even when debug mode is enabled. The browser console shows a true response, but no translation result is produced. see screenshot.

After investigation (credit to Tim), it appears that the issue is caused by missing language code mappings in:

/assets/scripts/admin/translation.js

and possibly also in QuickTranslationController::translateGoogleApi

Adding a manual mapping for the language resolves the issue (tested in browser by manipulating translation.js).

Steps To Reproduce

Steps to reproduce

Create or open any survey with multiple languages.

Add Dari (prs) or Tigrinya (ti) as an additional language.

Open the “Quick Translation” tool.

Attempt to auto-translate from English to the additional language.

Expected result

The translation should complete successfully, similar to other supported languages.

Actual result

Translation fails see attached screenshot.
Debug mode does not reveal an error.

Proposed Fix:
Add proper mappings for prs (Dari) → fa-AF and ti (Tigrinya) → appropriate Google Translate language code both in:
assets/scripts/admin/translation.js
QuickTranslationController::translateGoogleApi

TagsNo tags attached.
Attached Files
Bug heat0
Complete LimeSurvey version number (& build).
I will donate to the project if issue is resolvedNo
Browserchrome
Database type & version..
Server OS (if known)
Webserver software & version (if known)
PHP Version.

Users monitoring this issue

There are no users monitoring this issue.

Activities

Issue History

Date Modified Username Field Change
2025-10-10 16:40 Freda New Issue
2025-10-10 16:40 Freda File Added: Screenshot 2025-09-29 at 14.41.26.png