nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.91k stars 4.02k forks source link

[Bug]: last job timestamp localization wrong #45069

Open isdnfan opened 5 months ago

isdnfan commented 5 months ago

⚠️ 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

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?

Configuration report

core

List of activated Apps

core

Nextcloud Signing status

not relevant

Nextcloud Logs

nothing important

Additional info

No response

isdnfan commented 5 months ago

wrong locale is reported #45045 for UA as well