View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
16197Bug reportsTranslationpublic2021-06-23 16:50
ReporterJmantysalo Assigned Toollehar  
PrioritylowSeverityminor 
Status closedResolutionno change required 
Product Version4.1.18 
Summary16197: Datepicker does not work in multilingual survet
Description

See title.

Steps To Reproduce

Make a survey with base language Finnish, put for example "vvvv-kk-pp" to date format. Add a group and to it a question "Syntymäpäiväsi?" of type "Date/Time". Add English as additional language. Now you can not answer to the question, as the system always says that your response is in wrong format.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)Versio 4.1.18+200416
I will donate to the project if issue is resolvedNo
BrowserFirefox 75.0
Database type & versionN/A
Server OS (if known)
Webserver software & version (if known)
PHP VersionN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2020-04-28 12:04

administrator   ~57429

For us to be able to investigate this issue please attach a 2 question sample survey demonstrating the issue, either as .lss file (survey structure) or (even better) as .lsa file (survey archive).

Just attach it to this issue and we will have a look.
Thank you!

Jmantysalo

Jmantysalo

2020-04-29 11:16

reporter   ~57456

Last edited: 2020-05-17 15:41

I did some more digging. In the attached survey there is English and German as languages. I set them to use different time format. Now I can answer in English, but not in German.

So, the bug happens when time format differs between languages. That seems to happen by default if you use Finnish as the base language and add English as second language.

Severity can be dropped, as the problem can be solved by instructing users to manually set up date format for every language.

DenisChenu

DenisChenu

2020-04-29 20:16

developer   ~57478

Last edited: 2020-05-17 15:41

There are another issue : INVALID are set when come back. In 3.X : value is set to empty

ollehar

ollehar

2020-04-30 10:15

administrator   ~57483

Last edited: 2020-05-17 15:41

Javascript not enabled?

Jmantysalo

Jmantysalo

2020-04-30 10:55

reporter   ~57486

Last edited: 2020-05-17 15:41

In my machine about:config says javascript:enabled true.

DenisChenu

DenisChenu

2020-04-30 10:56

developer   ~57487

Last edited: 2020-05-17 15:41

javascript enable too with the language issue.

About language issue :
Get qid format https://github.com/LimeSurvey/LimeSurvey/blob/4b518ab0edbfe1c41ef3e0119dda0c3ba44cca02/application/helpers/expressions/em_manager_helper.php#L9128
Then
https://github.com/LimeSurvey/LimeSurvey/blob/4b518ab0edbfe1c41ef3e0119dda0c3ba44cca02/application/helpers/surveytranslator_helper.php#L920
No language code set,
Then get default one
https://github.com/LimeSurvey/LimeSurvey/blob/4b518ab0edbfe1c41ef3e0119dda0c3ba44cca02/application/helpers/surveytranslator_helper.php#L946

We must check how 3.X manage this : language set or if question format is empty : get survey ?

@Jmantysalo for a workaround : set the format to the question in all language

DenisChenu

DenisChenu

2020-04-30 10:57

developer   ~57488

Last edited: 2020-05-17 15:41

About JS : it's to enter an ivlaid date in any format ( 2020-02-31 is always invalid)

Jmantysalo

Jmantysalo

2021-06-23 16:31

reporter   ~65021

This bug has vanished, so this report can be marked as resolved.

Issue History

Date Modified Username Field Change
2020-04-27 20:33 Jmantysalo New Issue
2020-04-28 12:04 ollehar Assigned To => ollehar
2020-04-28 12:04 ollehar Status new => feedback
2020-04-28 12:04 ollehar Note Added: 57429
2020-04-28 12:04 ollehar Assigned To ollehar =>
2020-04-28 15:56 ollehar Severity partial_block => crash
2020-04-29 11:16 Jmantysalo Note Added: 57456
2020-04-29 11:16 Jmantysalo File Added: limesurvey_survey_577936.lss
2020-04-29 11:16 Jmantysalo Status feedback => new
2020-04-29 20:16 DenisChenu Note Added: 57478
2020-04-29 20:16 DenisChenu File Added: Capture d’écran du 2020-04-29 20-16-01.png
2020-04-29 20:16 DenisChenu File Added: Capture d’écran du 2020-04-29 20-16-12.png
2020-04-30 10:15 ollehar Note Added: 57483
2020-04-30 10:23 ollehar Priority none => urgent
2020-04-30 10:55 Jmantysalo Note Added: 57486
2020-04-30 10:56 DenisChenu Note Added: 57487
2020-04-30 10:57 DenisChenu Note Added: 57488
2020-05-17 15:41 cdorin Status new => confirmed
2020-05-17 15:41 cdorin Zoho Sprints => |Yes|
2020-05-17 15:41 swendrich Zoho Sprints ID => 14469000000091025
2020-07-09 13:43 cdorin Priority urgent => low
2020-07-09 13:43 cdorin Severity crash => minor
2020-07-09 13:43 cdorin Zoho Sprints Yes => |Yes|
2021-06-23 16:31 Jmantysalo Note Added: 65021
2021-06-23 16:50 ollehar Assigned To => ollehar
2021-06-23 16:50 ollehar Status confirmed => closed
2021-06-23 16:50 ollehar Resolution open => no change required