Unable to upload registration sheet from French(France) language
Closed this issue · 3 comments
Describe the bug
Unable to upload registration sheet to owlcms4
owlcms version
version 48.0.4 (same issue yesterday on 48.0.3) ; language used : Français (France)
To Reproduce
Steps to reproduce the behavior:
- Go to 'Préparer la compétition'
- Click on 'Obtenir une feuille d'inscription vide'
- Fill up the sheet
- Click on 'Charger un fichier d'inscritpion'
- Select the file
- See error : Many column headers arn't recognized; impossible to get the data imported correctly
Workaround
I found that switching the language to english prior to importing the data, importing and then switching back to french works well.
Expected behavior
Load the athletes from the file in the database without having to switch from a language to another.
Desktop (please complete the following information):
-
OS: Édition Windows 10 Famille
Version 22H2
Build du système d’exploitation 19045.4412 -
Browser Edge Version 125.0.2535.85 (Version officielle) (64 bits) / Same issue with Chrome Version 125.0.6422.142 (Build officiel) (64 bits)
Normalement les entêtes sont dans la langue de l'application au moment de produire le fichier d'enregistrement vide.
Il est relu dans la langue choisie, ou en anglais (il est normalement toujours possible de relire l'anglais)
Donc deux choses à investiguer:
- pourquoi les entêtes ne sont pas en français
- pourquoi la relecture de l'anglais n'a pas fonctionné quand la langue de l'application était le français
Normalement la langue fr-FR a comme valeur de défaut fr (sans le pays). À vérifier si la routine de traduction est bien appelée dans le cas présent.
- si la langue est bien fr dans la base de données (options "langue et paramètres"), le fichier est bien généré en français
- à partir de 49.0.1-rc02 la lecture d'un fichier dont les entêtes sont en anglais fonctionnera de nouveau.