qgis / QGIS-Enhancement-Proposals

QEP's (QGIS Enhancement Proposals) are used in the process of creating and discussing new enhancements for QGIS
118 stars 37 forks source link

Locale support for numeric input and display: revision and enhancements #210

Open elpaso opened 3 years ago

elpaso commented 3 years ago

QGIS Enhancement: Revision and completion of locale support for numeric input and display

Date 2021/02/23

Author Alessandro Pasotti (@elpaso) & Alexandre Neto (@SrNetoChan)

Contact elpaso at itopen dot it

maintainer @elpaso

Version QGIS 3.20

Summary

During the years support for locale number formatting (decimal separator and thousands separator) has been introduced and improved inside QGIS UI but there are still some places in the QGIS UI were number formatting options are not taken into consideration.

This leads to inconsistencies in the UX/UI and and overall perception of unprofessional GUI development from people using locales that do not use the english locale settings for numeric formatting.

Proposed Solution

We propose a systematic approach where we will go through all the GUI elements of QGIS and identify/fix all the remaining number formatting issues, writing automated tests were possible and useful.

Note that there are a few places were we do not want to display localized numbers, specifically when displaying input strings to be passed to external programs (like GDAL utilities for example).

It is important for developers (both QGIS C++ core and Python) to have a good reference/best practice list for writing locale-aware UIs, we propose here to write a few dedicated paragraphs to the QGIS official developer docs and a few examples to the Python QGIS cookbook.

Votes

(required)

pcav commented 3 years ago

Agreed fully, this is a PITA for non English users.

rduivenvoorde commented 3 years ago

See for example this User list message: https://lists.osgeo.org/pipermail/qgis-user/2021-June/049049.html

anitagraser commented 2 years ago

Hi @elpaso and @SrNetoChan, have you already sent a final report for this funded enhancement? I understand that https://github.com/qgis/QGIS/pull/43831 was the main PR but I haven't been able to locate the report yet. It would be great if you could add a link in https://github.com/qgis/PSC/issues/56.