Files
Gnuboard7/lang/en/custom_assets.php
HeuJung de18159986 fix(core,admin_basic): 정적 게시 재게시 누락 3건 수정 + 관리자 수동 복구 UI + sudo core:update 소유권 정합
- 템플릿 update 는 레이아웃 변경 여부와 무관하게 캐시 버전을 올리고(실패 복원 뒤에도), 자산 주소 방식 전환 3경로도 bump 한다
- config:cache 가 컨테이너 인스턴스를 덮어 이후 terminating 재게시가 사라지던 결함을 복원 헬퍼로 차단
- custom/ 변경 감지와 게시가 같은 열거자(재귀·크기 포함)를 쓰고, 서명은 호스트별로 저장
- 캐시 버전·서명 키를 만료시키지 않는다(기본 TTL 24h 로 매일 전체 재생성되던 문제)
- 관리자 > 환경설정 > 일반 「초기 화면 정적 파일」 카드: 상태 조회 + 지금 다시 만들기(확인 모달), 대시보드 알림 버튼 연결, CLI 와 같은 statusReport 소비
- sudo core:update 경로의 root 소유 잔존(설정 디렉토리·임시 폴더·로그·업그레이드 마이그레이션 산출물) 상속·정합화, ext-static 명령 root 경고와 sudo -u 힌트
- 안내·문서·트러블슈팅 4건·audit 룰 ext-cache-version-raw-read·ja 언어팩 동기
2026-09-06 15:22:52 +09:00

40 lines
2.0 KiB
PHP

<?php
return [
'errors' => [
'not_found' => 'File not found: :path',
'not_editable' => 'This file type (:extension) cannot be edited directly. Upload a replacement file instead.',
'too_large_to_edit' => 'The file is too large to open in the editor. (limit: :limit bytes)',
'read_failed' => 'Failed to read the file: :path',
'write_failed' => 'Failed to save the file: :path',
'delete_failed' => 'Failed to delete the file: :path',
'directory_failed' => 'Failed to create the directory: :path — reason :reason, owner :owner, permissions :perms, process user :process_user. Action: :hint',
'directory_failed_hint' => 'On the server, change the owner to the web account (`sudo chown -R {web-user}:{web-user} :path`) or grant group write (`chmod -R g+w :path`), then try again.',
'reason' => [
'occupied_by_file' => 'a file with the same name occupies the path',
'ancestor_not_writable' => 'the parent directory is not writable',
'create_failed' => 'the directory could not be created',
'not_writable' => 'the directory exists but is not writable',
],
'invalid_path' => 'The path is not allowed: :path',
'invalid_extension_target' => 'Target extension not found: :identifier',
'extension_not_allowed' => 'File type not allowed: :extension',
'upload_too_large' => 'The uploaded file is too large. (limit: :limit bytes)',
],
'validation' => [
'path_required' => 'Please specify the file path.',
'content_present' => 'The content field is required.',
'file_required' => 'Please choose a file to upload.',
'file_invalid' => 'The upload is not a valid file.',
'file_mimes' => 'File type not allowed. (allowed: :allowed)',
],
'messages' => [
'listed' => 'Loaded.',
'saved' => 'Saved.',
'uploaded' => 'File uploaded.',
'deleted' => 'File deleted.',
],
];