mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
Fix PagesController@file
strings
This commit is contained in:
parent
53209cb71e
commit
48de8182eb
@ -459,12 +459,12 @@ class PagesController extends AbstractController
|
||||
$filename = $routeParams->get('filename');
|
||||
|
||||
if ($page === null) {
|
||||
$this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.pageNotFound'), 'error');
|
||||
$this->panel()->notify($this->translate('panel.pages.page.cannotGetFileInfo.pageNotFound'), 'error');
|
||||
return $this->redirectToReferer(default: '/pages/');
|
||||
}
|
||||
|
||||
if (!$page->files()->has($filename)) {
|
||||
$this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.fileNotFound'), 'error');
|
||||
$this->panel()->notify($this->translate('panel.pages.page.cannotGetFileInfo.fileNotFound'), 'error');
|
||||
return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $routeParams->get('page')]));
|
||||
}
|
||||
|
||||
@ -476,7 +476,7 @@ class PagesController extends AbstractController
|
||||
$this->modal('deleteFile');
|
||||
|
||||
return new Response($this->view('pages.file', [
|
||||
'title' => $this->translate('panel.pages.editPage', $page->title()),
|
||||
'title' => $file->name(),
|
||||
'page' => $page,
|
||||
'file' => $file,
|
||||
'previousFile' => $files->nth($fileIndex - 1),
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: Seiten-Slug kann nicht bearbeitet werde
|
||||
panel.pages.page.cannotEdit.invalidTemplate: Seite kann nicht bearbeitet werden, ungültige Vorlage
|
||||
panel.pages.page.cannotEdit.pageNotFound: Seite kann nicht bearbeitet werden, Seite nicht gefunden
|
||||
panel.pages.page.cannotEdit.varMissing: Seite kann nicht bearbeitet werden, es fehlt eine Variable
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: Dateiinfo kann nicht abgerufen werden, Datei nicht gefunden
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: Dateiinfo kann nicht abgerufen werden, Seite nicht gefunden
|
||||
panel.pages.page.cannotMove: Seite kann nicht verschoben werden
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: Datei kann nicht umbenannt werden, eine Datei mit demselben Namen existiert bereits
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: Datei kann nicht umbenannt werden, Datei nicht gefunden
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: Cannot edit page slug, it must contain
|
||||
panel.pages.page.cannotEdit.invalidTemplate: Cannot edit page, invalid template
|
||||
panel.pages.page.cannotEdit.pageNotFound: Cannot edit page, page not found
|
||||
panel.pages.page.cannotEdit.varMissing: Cannot edit page, missing a variable
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: Cannot get file info, file not found
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: Cannot get file info, page not found
|
||||
panel.pages.page.cannotMove: Cannot move page
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: Cannot rename file, a file with the same name already exists
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: Cannot rename file, file not found
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: No se puede editar el slug de la págin
|
||||
panel.pages.page.cannotEdit.invalidTemplate: No se puede editar la página, plantilla no válida
|
||||
panel.pages.page.cannotEdit.pageNotFound: No se puede editar la página, página no encontrada
|
||||
panel.pages.page.cannotEdit.varMissing: No se puede editar la página, falta una variable
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: No se pueden obtener las información del archivo, archivo no encontrado
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: No se pueden obtener las información del archivo, página no encontrada
|
||||
panel.pages.page.cannotMove: No se puede mover la página
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: No se puede renombrar el archivo, ya existe un archivo con el mismo nombre
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: No se puede renombrar el archivo, archivo no encontrado
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: Impossible de modifier l’identifiant
|
||||
panel.pages.page.cannotEdit.invalidTemplate: Impossible de modifier la page, modèle non valide
|
||||
panel.pages.page.cannotEdit.pageNotFound: Impossible de modifier la page, page non trouvée
|
||||
panel.pages.page.cannotEdit.varMissing: Impossible de modifier la page, il manque une variable
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: Impossible de récupérer les informations sur le fichier, fichier non trouvé
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: Impossible de récupérer les informations sur le fichier, page non trouvée
|
||||
panel.pages.page.cannotMove: Impossible de déplacer la page
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: Impossible de renommer le fichier, un fichier portant le même nom existe déjà
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: Impossible de renommer le fichier, fichier introuvable
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: Impossibile cambiare l’indirizzo, l
|
||||
panel.pages.page.cannotEdit.invalidTemplate: Impossibile modificare la pagina, template non valido
|
||||
panel.pages.page.cannotEdit.pageNotFound: Impossibile modificare la pagina, pagina non trovata
|
||||
panel.pages.page.cannotEdit.varMissing: Impossibile modificare la pagina, manca una variabile
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: Impossibile ottenere le informazioni sul file, file non trovato
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: Impossibile ottenere le informazioni sul file, pagina non trovata
|
||||
panel.pages.page.cannotMove: Impossibile spostare la pagina
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: Impossibile rinominare il file, un file con lo stesso nome esiste già
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: Impossibile rinominare il file, file non trovato
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: Não é possível editar o slug da pág
|
||||
panel.pages.page.cannotEdit.invalidTemplate: Não é possível editar a página, template inválido
|
||||
panel.pages.page.cannotEdit.pageNotFound: Não é possível editar a página, página não encontrada
|
||||
panel.pages.page.cannotEdit.varMissing: Não é possível editar a página, falta uma variável
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: Não é possível obter informações do arquivo, arquivo não encontrado
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: Não é possível obter informações do arquivo, página não encontrada
|
||||
panel.pages.page.cannotMove: Não é possível mover a página
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: Não é possível renomear o arquivo, um arquivo com o mesmo nome já existe
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: Não é possível renomear o arquivo, arquivo não encontrado
|
||||
|
@ -212,6 +212,8 @@ panel.pages.page.cannotEdit.invalidSlug: Не можете редактиров
|
||||
panel.pages.page.cannotEdit.invalidTemplate: Не могу редактировать страницы, неверный шаблон
|
||||
panel.pages.page.cannotEdit.pageNotFound: Не могу редактировать страницу, страница не найдена
|
||||
panel.pages.page.cannotEdit.varMissing: Не могу редактировать страницу, отсутствует переменный
|
||||
panel.pages.page.cannotGetFileInfo.fileNotFound: Невозможно получить информацию о файле, файл не найден
|
||||
panel.pages.page.cannotGetFileInfo.pageNotFound: Невозможно получить информацию о файле, страница не найдена
|
||||
panel.pages.page.cannotMove: Невозможно переместить страницу
|
||||
panel.pages.page.cannotRenameFile.fileAlreadyExists: Невозможно переименовать файл, файл с таким именем уже существует
|
||||
panel.pages.page.cannotRenameFile.fileNotFound: Невозможно переименовать файл, файл не найден
|
||||
|
Loading…
x
Reference in New Issue
Block a user