Server: Glitch in German Translation "Pers枚nlich: Du"

Created on 29 Mar 2019  路  10Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Open Settings
  2. Change Language to Deutsch (Pers枚nlich: Du)
  3. Go to "Sicherheit" (Security)

Expected behaviour

The string for _Last activity_ for _This Session_ should be "Gerade eben" (seconds ago)

Actual behaviour

It says "in ein paar Sekunden" (in a few seconds)

I wanted to edit the translation at transifex.com but couldn't find that string...

Server configuration

Operating system: Ubuntu Server

Web server: apache

Database: mysql

PHP version: 7.2.16

Nextcloud version: 15.0.5

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: snap

Signing status:


Signing status

Forwards to http://example.com/index.php/settings/integrity/failed

List of activated apps:


Accessibility 1.1.0 Offiziell
Activities for shared file downloads 1.4.0
Activity 2.8.2 Offiziell
Antivirus for files 2.0.1
Checksum 0.4.2
Collaborative tags 1.5.0 Offiziell
Comments 1.5.0 Offiziell
Deck 0.5.2
Deleted files 1.5.0 Offiziell
Federation 1.5.0 Offiziell
File sharing 1.7.0 Offiziell
Files Right Click 0.13.0
First run wizard 2.4.0 Offiziell
Gallery 18.2.0 Offiziell
Group folders 2.0.4 Offiziell
Log Reader 2.0.0 Offiziell
Metadata 0.9.0
Mind Map 0.0.11
Monitoring 1.5.0 Offiziell
Nextcloud announcements 1.4.0 Offiziell
Notifications 2.3.0 Offiziell
Password policy 1.5.0 Offiziell
PDF viewer 1.4.0 Offiziell
Polls 0.10.2
Quota warning 1.4.0
Share by mail 1.5.0 Offiziell
Support 1.0.0 Offiziell
Talk 5.0.2 Offiziell
Tasks 0.9.8
Text editor 2.7.0 Offiziell
Theming 1.6.0 Offiziell
Usage survey 1.3.0 Offiziell
User account deletion 0.1.0
Versions 1.8.0 Offiziell
Video player 1.4.0 Offiziell

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:


Config report

{
    "system": {
        "apps_paths": [
            {
                "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
                "url": "\/extra-apps",
                "writable": true
            }
        ],
        "supportedDatabases": [
            "mysql"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "****"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.5.3",
        "overwrite.cli.url": "https:\/\/cloud.f-sp.at",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_language": "de",
        "default_locale": "de_AT",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "maintenance": false
    }
}

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one:no

Client configuration

Browser: Chrome

Operating system: Win 10 Pro

Logs

Web server error log


Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)


Nextcloud log

Insert your Nextcloud log here

Browser log


Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

0. Needs triage bug

All 10 comments

https://github.com/nextcloud/server/blob/8709f6b218f16dd71200c715dd37a1d58736d4e4/core/src/OC/util.js#L124-L130

This function is used to format the activity time. Translation for "seconds ago" are good.

image

Looks ok for me in Nextcloud 16.

Okay, weird, sometimes it is correct, sometimes not:

2019-03-29 10_25_51-Window

Looks like we pass a timestamp newer than current time to moment.js fromNow: https://github.com/moment/moment/blob/develop/locale/de.js#L49

Maybe your server time is behind your client time (the timestamp itself is coming from the server but the output is generated by your client).

Sounds plausible, but:
The server time (output of date on cli) is a few seconds ahead of my client time

Maybe the condition if (diff >= 0 && diff < 45000) should be changed to just if (diff < 45000) ?

Looks like some caching issue.

Now both entries where wrong again:
2019-03-29 10_58_51-Window

I the changed the Language to English, but the time strings were still partialy in German:
2019-03-29 10_59_27-Window

after refreshing the page all time strings were German, and the first two are wrong again:
2019-03-29 10_59_47-Window

@tflidd I do not think this is an translation issue. The strings are ok. More an issue related to time ...

What's the status here?

Just double checked translation strings at Transifex and I am unable to find shown strings.
Should be ok from i18n side.

Closing then?

Yes

Was this page helpful?
0 / 5 - 0 ratings