⚠️ This issue respects the following points: ⚠️
Bug description
The classes in /lib/public/Sharing/Property/ do not properly use the t() function for obtaining internationalized strings.
For example, in
|
return $l10nFactory->get(Application::APP_ID)->t('Invalid ISO date: ' . $value); |
the string for i18n is concatenated, instead of using format strings.
Since
return $l10nFactory->get(Application::APP_ID)->t('Invalid ISO date: ' . $value);
is used, the string showing up in Transifex is Invalid ISO date: .
The correct usage would be something like:
return $l10nFactory->get(Application::APP_ID)->t('Invalid ISO date: %s', [$value]);
Steps to reproduce
- Log into Transifex
- Open the Nextcloud lib component and check for the strings of the classes in
/lib/public/Sharing/Property/
Expected behavior
Transifex should show strings like
Nextcloud Server version
35 (master)
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Bug description
The classes in
/lib/public/Sharing/Property/do not properly use thet()function for obtaining internationalized strings.For example, in
server/lib/public/Sharing/Property/ADateSharePropertyType.php
Line 49 in 9514d12
Since
is used, the string showing up in Transifex is
Invalid ISO date:.The correct usage would be something like:
Steps to reproduce
/lib/public/Sharing/Property/Expected behavior
Transifex should show strings like
Nextcloud Server version
35 (master)
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response