Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@
$currentUserInfos = posix_getpwuid($currentUser) ?: [];
$appDirsWithDifferentOwner = $this->getAppDirsWithDifferentOwner($currentUser);
if (count($appDirsWithDifferentOwner) > 0) {
// TRANSLATORS %1$s is a newline-separated list of absolute app-directory paths.
return SetupResult::warning(
$this->l10n->t("Some app directories are owned by a different user than the web server one. This may be the case if apps have been installed manually. Check the permissions of the following app directories:\n%s", implode("\n", $appDirsWithDifferentOwner))
$this->l10n->t("Some app directories are owned by a different user than the web server one. This may be the case if apps have been installed manually. Check the permissions of the following app directories:\n%1$s", [implode("\n", $appDirsWithDifferentOwner)])

Check failure on line 86 in apps/settings/lib/SetupChecks/AppDirsWithDifferentOwner.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedVariable

apps/settings/lib/SetupChecks/AppDirsWithDifferentOwner.php:86:215: UndefinedVariable: Cannot find referenced variable $s (see https://psalm.dev/024)
);
} else {
return SetupResult::success($this->l10n->t('App directories have the correct owner "%s"', [$currentUserInfos['name'] ?? '']));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<!-- TRANSLATORS Placeholder shown when no groups are selected. -->
<NcSelect
v-model="selected"
:input-id="setting.id"
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/src/components/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default {
logger.debug(`${this.users.length} total user(s) loaded`)
} catch (error) {
logger.error('Failed to load accounts', { error })
showError('Failed to load accounts')
showError(t('settings', 'Failed to load accounts'))
}
this.loading.users = false
},
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const mutations = {
API_FAILURE(state, error) {
try {
const message = error.error.response.data.ocs.meta.message
showError(t('settings', 'An error occurred during the request. Unable to proceed.') + '<br>' + message, { isHTML: true })
showError(t('settings', 'An error occurred during the request. Unable to proceed. {message}', { message }))
} catch {
showError(t('settings', 'An error occurred during the request. Unable to proceed.'))
}
Expand Down
Loading