Skip to content

Commit

Permalink
fix: localization fixes and updated simplified chinese translation (#956
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dyphire authored Aug 31, 2024
1 parent 2fbb00f commit 7964827
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
24 changes: 18 additions & 6 deletions src/uosc/intl/zh-hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"%s are empty": "%s 为空",
"%s channel": "%s 声道",
"%s channels": "%s 声道",
"%s to search": "%s 进行搜索",
"%s to delete": "删除 %s",
"%s to search": "搜索 %s",
"Activate as secondary": "设置为次字幕",
"Add to playlist": "添加到播放列表",
"Added to playlist": "已添加到播放列表",
"An error has occurred.": "出现错误",
"Aspect ratio": "纵横比",
"Audio": "音频",
Expand All @@ -13,11 +17,10 @@
"Chapters": "章节",
"Default": "默认",
"Default %s": "默认 %s",
"Delete": "删除",
"Delete file & Next": "删除文件并播放下一个",
"Delete file & Prev": "删除文件并播放上一个",
"Delete file & Quit": "删除文件并退出",
"Disabled": "禁用",
"Download": "下载",
"Drives": "驱动器",
"Drop files or URLs to play here": "拖放文件或 URLs 到此处进行播放",
"Edition %s": "版本 %s",
Expand All @@ -31,31 +34,41 @@
"Load audio": "加载音频",
"Load subtitles": "加载字幕",
"Load video": "加载视频",
"Loaded subtitles": "已加载字幕",
"Loop file": "单个循环",
"Loop playlist": "列表循环",
"Menu": "菜单",
"Move down": "下移",
"Move up": "上移",
"Navigation": "导航",
"Next": "下一个",
"Next page": "下一页",
"No file": "无文件",
"Open config folder": "打开设置文件夹",
"Open config folder": "打开配置文件夹",
"Open file": "打开文件",
"Open in browser": "在浏览器中打开",
"Open in mpv": "在 mpv 中打开",
"Paste path or url to add.": "粘贴路径或网址以添加",
"Paste path or url to open.": "粘贴路径或网址以打开",
"Play/Pause": "播放/暂停",
"Playlist": "播放列表",
"Playlist/Files": "播放/文件列表",
"Playlist/Files": "播放列表/文件列表",
"Prev": "上一个",
"Previous": "上一个",
"Previous page": "上一页",
"Quit": "退出",
"Remaining downloads today: %s": "今天的剩余下载量: %s",
"Remove": "移除",
"Resets in: %s": "重置: %s",
"Screenshot": "截图",
"Search online": "在线搜索",
"See above for clues.": "线索见上文",
"Show in directory": "打开所在文件夹",
"Shuffle": "乱序",
"Stream quality": "流媒体品质",
"Subtitles": "字幕",
"Subtitles loaded & enabled": "字幕已加载并启用",
"Toggle to disable.": "点击切换禁用状态",
"Track %s": "轨道 %s",
"Update uosc": "更新 uosc",
"Updating uosc": "正在更新 uosc",
Expand All @@ -75,7 +88,6 @@
"parent dir": "父文件夹",
"playlist or file": "播放列表或文件",
"process exited with code %s (see console for details)": "进程以代码 %s 退出 (请参阅控制台了解详细信息)",
"search online": "在线搜索",
"type & ctrl+enter to search": "输入并按 ctrl+enter 进行搜索",
"type to search": "输入搜索内容",
"unknown error": "未知错误",
Expand Down
8 changes: 4 additions & 4 deletions src/uosc/lib/menus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function create_self_updating_menu_opener(opts)
local actions = opts.actions or {}
if opts.on_move then
actions[#actions + 1] = {name = 'move_up', icon = 'arrow_upward', label = t('Move up') .. ' (ctrl+up)'}
actions[#actions + 1] = {name = 'move_down', icon = 'arrow_downward', label = t('Move down' .. ' (ctrl+down)')}
actions[#actions + 1] = {name = 'move_down', icon = 'arrow_downward', label = t('Move down') .. ' (ctrl+down)'}
end
if opts.on_remove or opts.on_delete then
local label = (opts.on_remove and t('Remove') or t('Delete')) .. ' (del)'
Expand Down Expand Up @@ -739,11 +739,11 @@ function open_open_file_menu()
allowed_types = config.types.media,
active_path = active_file,
directory_actions = {
{name = 'add_to_playlist', icon = 'playlist_add', label = 'Add to playlist (shift)'},
{name = 'force_open', icon = 'folder_open', label = 'Open in mpv (ctrl)'},
{name = 'add_to_playlist', icon = 'playlist_add', label = t('Add to playlist') .. ' (shift)'},
{name = 'force_open', icon = 'folder_open', label = t('Open in mpv') .. ' (ctrl)'},
},
file_actions = {
{name = 'add_to_playlist', icon = 'playlist_add', label = 'Add to playlist (shift)'},
{name = 'add_to_playlist', icon = 'playlist_add', label = t('Add to playlist') .. ' (shift)'},
},
keep_open = true,
on_close = function() mp.unregister_event(handle_file_loaded) end,
Expand Down

0 comments on commit 7964827

Please sign in to comment.