-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
l10n: Align notification messages for server version and apps #35768
Comments
Solution for #35768 Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Solution for #35768 Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
My PR to this issue had been hijacked by another improvement. This issue is still open. |
@nickvergessen does not want to split productname and server version into two variables. As long as this is the case there is no way to align the update notification messages. |
Closing as not planned as per discussion in #35769 |
This time I am really sad. There was no discussion, just a statement and this is an example that the Nextcloud company and the community are not on the same level when it comes to decisions. Unknown to me, my screenshot is now gone ... |
It's in the review which is "resolved" which automatically folds it away:
Sorry for the poor choice of wording then: I even tried to outline that using the same wording is not a good idea, because they have different impact levels for admins in terms of the effort they may need to invest.
I made a suggestion after some comments and you commented on the proposed approach "Your suggestion will solve this partly." |
Background / informationBecause I didn't want to make you sad, I went to check it again:
But I just remembered that daily could be special and indeed the notifications are skipped in that case: server/apps/updatenotification/lib/Notification/BackgroundJob.php Lines 102 to 105 in a0f6a65
So we can ignore that. Option 1: combine app name and versionIf alignment is so strongly desired that it would make you sad, we could try to do it the other way around and replace server/apps/updatenotification/lib/Notification/Notifier.php Lines 143 to 149 in d9151ff
with: $notification->setRichSubject($l->t('Update to {app} is available.'), [
'app' => [
'type' => 'app',
'id' => $notification->getObjectType(),
'name' => $appName . ' ' . $notification->getObjectId(),
]
]); resulting in Option 2: attempt careful string splitAlternatively we could try to regex match the versionstring of server to something like |
As a user I do not understand why the product name and version info needs to be bundled. But if the code is like that and there is no easy way to split it we should keep it as it is. Using regex to split it sounds like a workaround to me. But as stated before I am not deep into the code. I will close here as it is not that important for the project. |
Actually the wording server and app updates is different.
Target is to unify this two messages.
Notification for server update looks like:
server/apps/updatenotification/lib/Notification/Notifier.php
Line 131 in 04f6862
Notification for an app update looks like:
server/apps/updatenotification/lib/Notification/Notifier.php
Line 145 in 04f6862
First improvement for server is a change to:
Update to version %1$s is available.
Second improvement for server is adding product name:
Update for Nextcloud to version %1$s is available.
The text was updated successfully, but these errors were encountered: