⚠️ This issue respects the following points: ⚠️
What went wrong, what did you observe?
While translating the polls app on Transifex, I stumbled upon the string Error {action} poll, where {action} is replaced by archiving or restoring.
However, only Error {action} poll is used in a way that l10n can be provided. archiving and restoring is not localized. This results in messages, e.g. in Portuguese, that look like this: Erro ao archiving a enquete.
What did you expect, how polls should behave instead?
There should be a way that the both cases:
Error archiving poll
Error restoring poll
are localized separately so that a correct translation is possible in both cases and for all languages.
What steps does it need to replay this bug?
- Open
|
t('polls', 'Error {action} poll.', { |
- Check code:
function toggleArchive() {
try {
pollStore.toggleArchive({ pollId: pollStore.id })
} catch {
showError(
t('polls', 'Error {action} poll.', {
action: pollStore.status.isArchived ? 'restoring' : 'archiving',
}),
)
}
}
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
First time installation
Affected polls version
No response
Which browser did you use, when experiencing the bug?
Other browser
No response
Add your browser log here
Additional client environment information
No response
NC version
Nextcloud 27
Other Nextcloud version
No response
PHP engine version
PHP 8.0
Other PHP version
No response
Database engine
MySQL
Database Engine version or other Database
No response
Which user-backends are you using?
Add your nextcloud server log here
Additional environment informations
No response
Configuration report
List of activated Apps
Nextcloud Signing status
Additional Information
No response
What went wrong, what did you observe?
While translating the polls app on Transifex, I stumbled upon the string
Error {action} poll, where{action}is replaced byarchivingorrestoring.However, only
Error {action} pollis used in a way that l10n can be provided.archivingandrestoringis not localized. This results in messages, e.g. in Portuguese, that look like this:Erro ao archiving a enquete.What did you expect, how polls should behave instead?
There should be a way that the both cases:
Error archiving pollError restoring pollare localized separately so that a correct translation is possible in both cases and for all languages.
What steps does it need to replay this bug?
polls/src/components/SideBar/SideBarTabConfiguration.vue
Line 55 in ae3aba1
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
First time installation
Affected polls version
No response
Which browser did you use, when experiencing the bug?
Other browser
No response
Add your browser log here
Additional client environment information
No response
NC version
Nextcloud 27
Other Nextcloud version
No response
PHP engine version
PHP 8.0
Other PHP version
No response
Database engine
MySQL
Database Engine version or other Database
No response
Which user-backends are you using?
Add your nextcloud server log here
Additional environment informations
No response
Configuration report
List of activated Apps
Nextcloud Signing status
Additional Information
No response