Repository navigation
fix(l10n): Use a plural form for the connections tooltip - #1284
Merged
Merged
Conversation
The tooltip of the live chart joined the number and the translated word "connections", so it showed "1 connections" and languages could not adapt the word to the number. Use n() instead. Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
/compile / |
Collaborator
|
Thanks a lot |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
kesselb
enabled auto-merge
November 19, 2026 10:49
kesselb
approved these changes
Nov 19, 2026
Collaborator
|
/backport to stable35 please |
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A translator asked at Transifex how the string "connections" is used.
It is the unit in the tooltip of the "Current connections" live chart: the code joins the value and the translated word (
${value} ${unit}). That shows "1 connections", and languages cannot adapt the word to the number or change the order.This PR lets
optionsFor()take a formatter instead of a unit string, and the connections chart now usesn('serverinfo', '%n connection', '%n connections', value)with aTRANSLATORScomment. The queries (/s) and latency (ms) charts show the same text as before. An empty sample still shows "—".I could not run the build or the tests locally.
🤖 Generated with Claude Code