cms-dev / cms-dev/cms

Importing tasks seems to prioritize Italian statement over any other language

Open
#1,688 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

Description: When importing a task with the statement several languages, if Italian is available it picks it as default language

Steps to reproduce:

  1. Create a task with the statement in multiple languages, including 'en' and 'it'
  2. Import that task using cmsImportTask

Expected: I would expect English to be default language for statements when available, with a higher preference than Italian

Actual: Italian is the default statement language if it is available

System Information

CMS version: main
How was CMS installed: docker
Postgres version: 15
Distribution and version: Ubuntu, using official Dockerfile

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the cmsImportTask import path and reproduce the case with a statement available in both English and Italian. Trace how the default statement language is selected; done means English is chosen when it is available, while the existing import behavior remains intact for other language combinations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, internationalization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.