-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: "Delete file" and "Delete folder" context menu items not localised on v27.1.7 #43947
Comments
My guess here: We take translations from master / stable28 were that string is pluralized due to batch actions being possible. Maybe @skjnldsv knows more about the CI that updates the translations? |
Is this actually translated on transifex? |
Sure :) |
As said my guess it that we update translations from current master -> so the string is now pluralized and thus the frontend translate function can not translate it anymore. |
I don't remember how it works. |
Is this formatting supported in 27.1.x? |
@blizzz @nickvergessen do you know more? |
Strings from all versions we translate are combined. But the string looks a bit weird anyway as the number is not included? |
28 and 29
27server/apps/files/js/fileactions.js Lines 784 to 786 in 9a4f2f1
|
So yes this is a problem of combining the strings, if it was singular previously and then the same string is provided as plural option we can not use it anymore in the frontend. (Because the translation key is merged into a plural version and thus we can not detect it anymore). Two fixes possible:
|
That being said, the strings in
So this could be changed to a "non-pluraled" string as they do not need to follow a dedicated plural rule as you basically want to say "Delete many folders" so something like this would work: if (isAllFolders(nodes)) {
if (nodes.length === 1) {
return t('files', 'Delete folder')
}
// We don't really want to count and show the number, so using generic plural instead of a pluraled-string
return t('files', 'Delete folders')
} |
That being said, I think it's a bug from the tooling that it can not handle translations of the same string that is a plural |
Far less clean though 🙃 |
But what you do (translating a plural without a number in it) is confusing for translators of languages that have 6 plural forms. How should they guess that they need to put in the "undistinct" in all of them. |
What is the plural key? |
the English one is Line 75 in 8b4864f
but this is really not the way to go. Just don't use plurals for this, unless you have the |
Hi! How is that solved? In the recent 27.x upgrade I cannot find the updated localisation :( |
It was fixed right after the release and backporting is still to be done next week |
Problem still exists in 27.1.8 |
yes, it will be solved with 27.1.9 or you replace your language files with the new ones from https://github.com/nextcloud/server/tree/stable27/apps/files/l10n |
Bug description
Files context menu items
Delete file
andDelete folder
appear to be not localised after the last update from 27.1.6 to 27.1.7.Steps to reproduce
Expected behavior
Should be localised.
Installation method
None
Nextcloud Server version
26
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
in uk.js I observe the change of the format from the last version:
in 27.1.6:
in 27.1.7:
Is this something related to?
The text was updated successfully, but these errors were encountered: