pop-os / cosmic-settings

COSMIC Settings
GNU General Public License v3.0
161 stars 100 forks source link

Settings > Region and Language #12

Open maria-komarova opened 2 years ago

maria-komarova commented 2 years ago

Implement without "Advanced Formatting" for MVP. Limitations with how Linux stores formats requires revisiting advanced formatting possible options.

-- Carl

isaac-8601 commented 1 year ago

The Region and Language settings in COSMIC Settings is where users can change the system language and various locale settings, including the system temperature unit and measurement system.

Region and Language panel in COSMIC Settings

The goal with this settings panel is to offer more customization to locale settings.

We recognize that changing locale settings currently involves a restart. This panel will need to have a way to inform the user that a restart is required to enable some settings, dependent on adding an appropriate alert to our design system.

Advanced formatting settings

These mockups introduce advanced settings for formatting numbers, dates, and times.

Advanced formatting settings within Region and Language for COSMIC Settings

For numbers, the mockups have dropdowns that allow users to choose custom grouping and decimal seperators, as well as the ability to choose the numbering system, and an option to choose a digit grouping exception for four-digit numbers. At the moment, we've chosen some of the more common grouping and digit seperators for the dropdowns, but when we work on combination select/inbox boxes, it's possible that these dropdowns will support custom inputs.

maria-komarova commented 1 year ago

Mockups and other notes are in this file.

matrixik commented 1 year ago

If I will be able to set date and time everywhere to display something similar to ISO 8601 or RFC 3339 format:

YYYY-MM-DD HH:MM:SS
2009-03-16 15:20:00

regardless of system language and without selecting some strange language in LC_TIME or creating custom one it would be huge win.

WatchMkr commented 1 year ago

Implement without "Advanced Formatting" for MVP. Limitations with how Linux stores formats requires revisiting advanced formatting possible options.

maria-komarova commented 2 months ago

Updated designs for Region & Language panel (Figma file with more details): Region and Language

ikeycode commented 1 month ago

Quite happy if you guys wanna lift anything from https://github.com/serpent-os/lichen/tree/main/crates/system/src/locale - which provides gnome-desktop compatible region & language grouping + parsing.

anaTropeas commented 1 month ago

Is there a case for changing keyboard input layout for those who have 2 languages because the keyboard shortcut is not working ? Or if there is a config file to change from terminal that we can set a keyboard layout change shortcut key combination as ALT+SHIFT or whatever?

maria-komarova commented 1 month ago

We need to add the shortcut, not sure why we don't yet have it in Keyboard shortcuts settings. But one can also change the layout via the applet on the Panel (usually shows the abbreviation for the current layout, for example, US.