"Permission Denied" translated to es,fr,de and pt
This commit is contained in:
parent
7ed5243a32
commit
a5ad6f8b52
3 changed files with 5 additions and 3 deletions
|
@ -1095,5 +1095,5 @@
|
|||
"tagLanguage": "Lenguaje de marcado",
|
||||
"tagLanguageMustBeSelected": "Debes seleccionar un lenguaje de marcado",
|
||||
"helpText": "Texto de ayuda",
|
||||
"permissionDenied": "Permission Denied"
|
||||
"permissionDenied": "Permiso denegado"
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@ function loadLanguage(longCode) {
|
|||
loadLanguage('en-US');
|
||||
loadLanguage('es-ES');
|
||||
loadLanguage('pt-BR');
|
||||
loadLanguage('de-DE');
|
||||
loadLanguage('fr-FR');
|
||||
resourcesCommon['fk-FK'] = convertToFake(resourcesCommon['en-US']);
|
||||
|
||||
const resources = {};
|
||||
|
|
|
@ -9,7 +9,7 @@ const interoperableErrors = require('../../shared/interoperable-errors');
|
|||
const log = require('../lib/log');
|
||||
const {getGlobalNamespaceId} = require('../../shared/namespaces');
|
||||
const {getAdminId} = require('../../shared/users');
|
||||
const { tMark } = require('../lib/translate');
|
||||
const { tUI } = require('../lib/translate');
|
||||
|
||||
|
||||
// TODO: This would really benefit from some permission cache connected to rebuildPermissions
|
||||
|
@ -451,7 +451,7 @@ async function regenerateRoleNamesTable() {
|
|||
|
||||
|
||||
function throwPermissionDenied() {
|
||||
throw new interoperableErrors.PermissionDeniedError(tMark('permissionDenied'));
|
||||
throw new interoperableErrors.PermissionDeniedError(tUI('permissionDenied', config.defaultLanguage));
|
||||
}
|
||||
|
||||
async function removeDefaultShares(tx, user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue