Skip to content

Conversation

@nickvergessen
Copy link
Member

  • No leading/trailing whitespace
  • Use asci single quote

Checklist

- No leading/trailing whitespace
- Use asci single quote

Signed-off-by: Joas Schilling <[email protected]>
@nickvergessen
Copy link
Member Author

/compile /

@nickvergessen
Copy link
Member Author

/backport 095ab44 to stable31

@nickvergessen
Copy link
Member Author

/backport 095ab44 to stable30

@nickvergessen
Copy link
Member Author

/backport 095ab44 to stable29

Signed-off-by: nextcloud-command <[email protected]>
<div class="notCreatable notPublic hidden">
<div class="icon-alert-outline"></div>
<?php p($l->t('You do not have permission to upload or create files here'))?>
<?php p($l->t('You don\'t have permission to upload or create files here.'))?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have some guidelines on do not vs don't?
Because in examples like this you want to emphasize the importance of the issue which from the tone do not fulfills better than don't.

Copy link
Member

@rakekniven rakekniven Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had a talk about missing guidelines yesterday 😄 .

Since years we (specially user Valdnet) make changes to only use "don't" and this is the current state and standard.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@susnux I told you the wrong things. It's the other way around. 🤷
Next PR will come

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR in #51142

@$this->invokeLDAPMethod('modReplace', $userDN, $password);
} catch (ConstraintViolationException $e) {
throw new HintException('Password change rejected.', Util::getL10N('user_ldap')->t('Password change rejected. Hint: ') . $e->getMessage(), (int)$e->getCode());
throw new HintException('Password change rejected.', Util::getL10N('user_ldap')->t('Password change rejected. Hint: %s', $e->getMessage()), (int)$e->getCode());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work? Should the parameters not be an array?

Suggested change
throw new HintException('Password change rejected.', Util::getL10N('user_ldap')->t('Password change rejected. Hint: %s', $e->getMessage()), (int)$e->getCode());
throw new HintException('Password change rejected.', Util::getL10N('user_ldap')->t('Password change rejected. Hint: %s', [$e->getMessage()]), (int)$e->getCode());

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both work:

* @param array|string $parameters default:array() Parameters for sprintf

for the sake of already triggered backport bot and compiled JS I'd merge it for now

@nickvergessen nickvergessen merged commit f9ed34f into master Feb 26, 2025
188 of 190 checks passed
@nickvergessen nickvergessen deleted the bugfix/noid/improve-english-sources branch February 26, 2025 13:05
@backportbot
Copy link

backportbot bot commented Feb 26, 2025

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/51049/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 095ab441

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/51049/stable29

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@skjnldsv skjnldsv added this to the Nextcloud 32 milestone Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: language/translations (l10n/i18n) Localization and translation matters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants