Skip to content

Conversation

@rakekniven
Copy link
Member

@rakekniven rakekniven commented Aug 15, 2025

Discussed in forum (https://help.nextcloud.com/t/heist-1m-einen-monat-oder-eine-minute/230353).

e .g. "5m" is not correct

Corrrect form is "5min"

See https://en.wikipedia.org/wiki/Minute for reference

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there must be a space to be 100% correct...

return QObject::tr("now");
} else {
return QObject::tr("1m", "one minute after activity date and time");
return QObject::tr("1min", "one minute after activity date and time");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return QObject::tr("1min", "one minute after activity date and time");
return QObject::tr("1 min", "one minute after activity date and time");

}
} else {
return (QObject::tr("%nm", "delay in minutes after an activity", minutes));
return (QObject::tr("%nmin", "delay in minutes after an activity", minutes));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return (QObject::tr("%nmin", "delay in minutes after an activity", minutes));
return (QObject::tr("%n min", "delay in minutes after an activity", minutes));

earlyTS = earlyTS.addSecs(-6);
s = timeAgoInWords(earlyTS, laterTS );
QCOMPARE(s, QLatin1String("1m"));
QCOMPARE(s, QLatin1String("1min"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
QCOMPARE(s, QLatin1String("1min"));
QCOMPARE(s, QLatin1String("1 min"));

@rakekniven
Copy link
Member Author

I think there must be a space to be 100% correct...

Do you have a reference for that change?

All other time specifications do not have a space. Should I adjust that as well?
See discussion and screenshots at mentioned forum topic.

@szaimen
Copy link
Contributor

szaimen commented Aug 16, 2025

I think there must be a space to be 100% correct...

Do you have a reference for that change?

I found this: https://www.nist.gov/pml/special-publication-811/nist-guide-si-chapter-7-rules-and-style-conventions-expressing-values#7.2

All other time specifications do not have a space. Should I adjust that as well?

I guess so, yes

@rakekniven
Copy link
Member Author

rakekniven commented Aug 16, 2025

@mgallien How to proceed here?

Can we merge this here and add the space for all time specs in another PR?

@rakekniven
Copy link
Member Author

Following doc supports Simons message:

https://commission.europa.eu/document/download/c45f5b70-2d0e-4da7-b181-b5fe3a16c4bb_en

Chapter 7.20

@mgallien
Copy link
Collaborator

mgallien commented Aug 22, 2025

@mgallien How to proceed here?

Can we merge this here and add the space for all time specs in another PR?

@rakekniven yes
your PR is already improving things
@szaimen would you be OK with this ? approving this one and doing a follow up PR ?
we currently are only in the beginning of the release cycle
incrementally improving translations seems a good idea

Discussed in forum.

e .g. "5m" is not correct

Corrrect form is "5min"

See https://en.wikipedia.org/wiki/Minute for reference

Signed-off-by: rakekniven <[email protected]>
@mgallien mgallien force-pushed the rakekniven-patch-1 branch from 8fa7d98 to 26c1bc6 Compare August 22, 2025 07:20
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-8600.zip

SHA256 checksum: 7f7fdf980a8a5078d41c2aef6c310a707b1a4b1d8d3f2c348cfb35cb3180a1e2

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
Image E Maintainability Rating on New Code (required ≥ A)
Image 10 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Image Catch issues before they fail your Quality Gate with our IDE extension Image SonarQube for IDE

@szaimen
Copy link
Contributor

szaimen commented Aug 22, 2025

would you be OK with this ?

I mean as I said it is technically not correct but I can remove my blocking so that you can proceed 👍

@szaimen szaimen dismissed their stale review August 22, 2025 07:55

Space will hopefully be added later

@mgallien mgallien merged commit c11346d into master Aug 22, 2025
17 of 19 checks passed
@mgallien mgallien deleted the rakekniven-patch-1 branch August 22, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants