- | Type |
- Name |
- Actions |
+ <%= t('dashboard.type') %> |
+ <%= t('dashboard.name') %> |
+ <%= t('dashboard.actions') %> |
<% private_dir = path.to_s.start_with?(CurrentUser.home) %>
<% if private_dir %>
- Size |
- Date |
+ <%= t('dashboard.size') %> |
+ <%= t('dashboard.date') %> |
<% else %>
- Size |
- Date |
- Owner |
- Mode |
+ <%= t('dashboard.size') %> |
+ <%= t('dashboard.date') %> |
+ <%= t('dashboard.owner') %> |
+ <%= t('dashboard.mode') %> |
<% end %>
diff --git a/apps/dashboard/app/views/files/turbo_frames/_files.html.erb b/apps/dashboard/app/views/files/turbo_frames/_files.html.erb
index 994fba35f0..59ea597704 100644
--- a/apps/dashboard/app/views/files/turbo_frames/_files.html.erb
+++ b/apps/dashboard/app/views/files/turbo_frames/_files.html.erb
@@ -3,6 +3,7 @@
<% dir_type = I18n.t('dashboard.directory') %>
<%= dir_type %>
+
@@ -11,7 +12,7 @@
directory_frame_path(
path: "#{path.parent}"
),
- title: 'Show parent directory',
+ title: t('dashboard.files_show_parent_directory'),
data: { turbo_frame: "project_directory" }
)
%>
@@ -34,6 +35,7 @@
<% type = I18n.t("dashboard.#{file[:directory] ? 'directory' : 'file'}") %>
<%= type %>
+
|
<%- if file[:directory] && readable-%>
@@ -42,7 +44,7 @@
directory_frame_path(
path: full_path
),
- title: "Show #{file[:name]} directory",
+ title: t('dashboard.files_show_directory', name: file[:name]),
data: { turbo_frame: "project_directory" }
)
%>
@@ -75,7 +77,7 @@
class: 'view-file dropdown-item',
data: { row_index: nil } do %>
- View
+ <%= t('dashboard.view') %>
<% end %>
<% if writable %>
@@ -84,7 +86,7 @@
target: '_top',
class: 'edit-file dropdown-item' do %>
- Edit
+ <%= t('dashboard.edit') %>
<% end %>
<% end %>
@@ -93,7 +95,7 @@
target: '_top',
class: 'download-file dropdown-item' do %>
- Download
+ <%= t('dashboard.download') %>
<% end %>
diff --git a/apps/dashboard/config/locales/en.yml b/apps/dashboard/config/locales/en.yml
index ac890393a4..b898c688c8 100644
--- a/apps/dashboard/config/locales/en.yml
+++ b/apps/dashboard/config/locales/en.yml
@@ -142,24 +142,47 @@ en:
development_apps_caption: Sandbox App
directory: Directory
edit: Edit
+ editor: Editor
+ editor_font_size: Font Size
+ theme: Theme
+ bright: Bright
+ dark: Dark
+ wrap: Wrap
+ editor_key_bindings: Key Bindings
+ editor_key_bindings_default: Default
+ files_select_all: Select All
+ select: Select
+ files_modified_at: Modified at
+ loading: Loading...
file: File
file_quotas: File Quotas
+ files_change_directory: Change Directory
+ files_copy_path: Copy Path
+ files_copy_move: Copy/Move
+ files_delete: Delete
files_directory_download_error_modal_title: Directory too large to download
files_directory_download_unauthorized: You can only download a file or directory that you have read and execute access to
files_directory_size_calculation_error: Timeout while trying to determine directory size.
files_directory_size_calculation_timeout: Timeout while trying to determine directory size.
files_directory_size_unknown: 'Error with status %{exit_code} when trying to determine directory size: %{error}'
files_directory_too_large: The directory is too large to download as a zip. The directory should be less than %{download_directory_size_limit} bytes.
+ files_download: Download
files_download_not_enabled: Downloading files is not enabled on this server.
files_download_zip: Download as zip
files_file_too_large: The file is too large to download. File downloads should be less than %{download_file_size_limit} bytes.
+ files_go_up_directory: Go up directory
+ files_new_directory: New Directory
+ files_new_file: New File
+ files_refresh: Refresh
files_remote_dir_not_created: Did not create directory %{path}
files_remote_disabled: Remote file support is not enabled
files_remote_empty_dir_unsupported: Remote does not support empty directories
files_remote_error_listing_remotes: 'Error listing Rclone remotes: %{error}'
+ files_upload: Upload
files_send_to_target_title_default: Send selected files metadata to the external application
files_shell: Open in Terminal
files_shell_dropdown: Select Cluster to Open in Terminal
+ save: Save
files_doesnt_exist: "%{path} does not exist."
files_not_readable: "You do not have sufficient permissions to read '%{path}'."
home_directory: Home Directory
@@ -319,6 +342,9 @@ en:
Custom shared apps are available below.
shell_app_title: "%{cluster_title} Shell Access"
show: Show
+ files_contents_of_directory: "Contents of directory %{path}"
+ files_show_directory: Show %{name} directory
+ files_show_parent_directory: Show parent directory
size: Size
skip_navigation: Skip Navigation
soft_tabs: Soft Tabs
@@ -346,6 +372,10 @@ en:
validation_error: Invalid Request. Please review the error messages below
system_apps_caption: System Installed App
type: Type
+ actions: Actions
+ download: Download
+ upload: Upload
+ view: View
unknown: Unknown
uppy: Uppy
user_configuration:
diff --git a/apps/dashboard/config/locales/zh-CN.yml b/apps/dashboard/config/locales/zh-CN.yml
index 61265dbf68..444357840c 100644
--- a/apps/dashboard/config/locales/zh-CN.yml
+++ b/apps/dashboard/config/locales/zh-CN.yml
@@ -121,6 +121,7 @@ zh-CN:
close: 关闭
close_alert: 关闭此警报。
close_notice: 关闭此通知。
+ files_contents_of_directory: "目录内容 %{path}"
custom_pages:
invalid: 无效的页面代码:%{page}。此页面尚未配置
date: 日期
@@ -128,8 +129,24 @@ zh-CN:
development_apps_caption: 沙盒应用
directory: 目录
edit: 编辑
+ editor: 编辑器
+ editor_font_size: 字体大小
+ theme: 主题
+ bright: 明亮
+ dark: 深色
+ wrap: 自动换行
+ editor_key_bindings: 键绑定
+ editor_key_bindings_default: 默认
file: 文件
+ files_select_all: 选择所有
+ select: 选择
+ files_modified_at: 修改时间
+ loading: 加载中
file_quotas: 文件配额
+ files_change_directory: 更改目录
+ files_copy_path: 复制路径
+ files_copy_move: 复制/移动
+ files_delete: 删除
files_directory_download_error_modal_title: 目录太大,无法下载
files_directory_download_unauthorized: 您只能下载您具有读取和执行权限的文件或目录
files_directory_size_calculation_error: 尝试确定目录大小时超时。
@@ -139,15 +156,22 @@ zh-CN:
files_doesnt_exist: "%{path} 不存在。"
files_download_not_enabled: 此服务器上未启用文件下载。
files_download_zip: 下载为 zip
+ files_download: 下载
files_file_too_large: 文件太大,无法下载。文件下载应小于 %{download_file_size_limit} 字节。
+ files_go_up_directory: 上移目录
+ files_new_directory: 新目录
+ files_new_file: 新文件
files_not_readable: 您没有足够的权限读取 '%{path}'。
+ files_refresh: 刷新
files_remote_dir_not_created: 未创建目录 %{path}
files_remote_disabled: 未启用远程文件支持
files_remote_empty_dir_unsupported: 远程不支持空目录
files_remote_error_listing_remotes: 列出 Rclone 远程时出错:%{error}
+ files_upload: 上传
files_send_to_target_title_default: 将选定文件的元数据发送到外部应用程序
files_shell: 在终端中打开
files_shell_dropdown: 选择要在终端中打开的集群
+ save: 保存
files_title: 文件浏览
home_directory: 主目录
import: 导入
@@ -305,6 +329,8 @@ zh-CN:
自定义共享应用程序可以在下面使用。
shell_app_title: "%{cluster_title} Shell 访问"
show: 显示
+ files_show_directory: 显示 %{name} 目录
+ files_show_parent_directory: 显示父目录
size: 大小
skip_navigation: 跳过导航
soft_tabs: 软制表符
@@ -332,6 +358,10 @@ zh-CN:
validation_error: 无效请求。请查看下面的错误信息
system_apps_caption: 系统已安装应用
type: 类型
+ actions: 操作
+ download: 下载
+ upload: 上传
+ view: 查看
unknown: 未知
uppy: Uppy
user_configuration:
|