nextcloud / nextcloud/server

[Bug]: last job timestamp localization wrong

Open
#45,069 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 28-feedback bug feature: language/translations (l10n/i18n) feature: settings
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

28.0.4.1 (community docker, Apache), Windows/Firefox. User interface is set to en-UK and shows correct "base" interface language. but dynamic string when the job effectively run localizes in German (which might be my region)

3688d72f1a45fe26dc9571fb612e49f115f661fa

Transifex translation is "Last job ran {relativeTime}."

The problem is related to "Locale: German" switching to English makes the string to "full English".

image

addition

testing the issue I found many locale definitions are wrong e.g.

image

image

using AM/PM format and MM/dd/yyyy format is not common in Germany and Switzerland. both use "dd.MM.yyyy HH.mm" format without AM/PM

Steps to reproduce
  1. set you personal settings at https://nextcloud.mydomain.tld/settings/user to Language "English (US)" and Locale: "German"
  2. visit "Basic Admin settings" at https://nextcloud.mydomain.tld/settings/admin
  3. observe the main language is English while "{relative time}" is localized in German
Expected behavior
  • localized relative time must follow the main language
  • locales must follow common country standard
Installation method

Community Docker image

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
core
List of activated Apps
core
Nextcloud Signing status
not relevant
Nextcloud Logs
nothing important
Additional info

No response

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

Reproduce the mismatch using the reported English (US) language and German locale settings on the Basic Admin settings page. Trace how the relative-time string and date formats select language versus locale, then verify that relative time follows the main language and that German and Swiss formats use the expected local conventions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend, localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.