nextcloud / nextcloud/server

Show active locale or language when either are forced rather than misleading `No locale set`

Open
#41,543 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: language/translations (l10n/i18n) feature: settings good first issue javascript
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

I've found that in case the local and/or language are forcedly selected the user profile shows not selected option, but not defined option.
So, in config.php

force_local = > uk_UA
force_language => UK

Observe that the language and locale in profile are defined as The language is not defined

image

Instead of it should be defined as Ukrainian.

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 by reproducing the profile display with the force_local and force_language settings shown in config.php. Trace how the user profile resolves and labels the forced locale or language; done means it shows the selected language, such as Ukrainian, instead of “The language is not defined”.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.