Skip to content

Improvement for L10n String #4008

@fbausch

Description

@fbausch

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Nextcloud's Code of Conduct.

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?

  1. Open
    t('polls', 'Error {action} poll.', {
  2. 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?

  • Firefox
  • Chrome
  • Chromium/Chromium based (i.e. Edge)
  • Safari
  • Other/Don't know

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other/Don't know

Add your nextcloud server log here

Additional environment informations

No response

Configuration report

List of activated Apps

Nextcloud Signing status

Additional Information

No response

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions