View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
19829Bug reportsTranslationpublic2024-11-12 07:32
ReporterPrakasch Assigned To 
PrioritynoneSeveritypartial_block 
Status newResolutionopen 
Product Version6.5.x 
Summary19829: Lokal dialects in LS are not represented in the google cloud translation API
Description

LS distinguishes between Norwegian Bokmal "nb" and Norwegian Nynorsk "nn", whereas google codes Norwegian as "no". This results in an error message.
Analogously, the same error message appears for Serbian: LS distinguishes between Serbian Latin " sr-Latn" and Serbian Cyrillic " sr-Cyrl", whereas google codes Serbian as "sr".

Steps To Reproduce

Steps to reproduce

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

(Write here what you expected to happen)

Actual result

(Write here what happened instead)

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)6.5.1+240708
I will donate to the project if issue is resolvedYes
Browser
Database type & versionCommunity edition version
Server OS (if known)
Webserver software & version (if known)
PHP Version8.2.21

Users monitoring this issue

Prakasch

Activities

Mazi

Mazi

2024-11-11 09:35

updater   ~81369

@tibor.pacalat: My guess is that this may show up for other languages as well. E.g. "de-informal" or "de-easy" may fail to map when using Google translation API.
I do not have a solution at hand but I think some kind of mapping (Limesurvey language code <--> Google language code) could do the trick for such special cases. What do you think?

Prakasch

Prakasch

2024-11-12 07:32

reporter   ~81371

I agree with @tibor.pacalat: likely a mismatch between the LS and Google language codes. Could the LS codes be adapted accordingly?

Issue History

Date Modified Username Field Change
2024-11-08 21:08 Prakasch New Issue
2024-11-11 09:35 Mazi Note Added: 81369
2024-11-11 09:35 Mazi Bug heat 0 => 2
2024-11-12 07:29 Prakasch Issue Monitored: Prakasch
2024-11-12 07:29 Prakasch Bug heat 2 => 4
2024-11-12 07:32 Prakasch Note Added: 81371
2024-11-12 07:32 Prakasch Bug heat 4 => 6