Add expand/compress image button on image view box (#15068)

* add zoom image button

* enhance zoom algorithm & add translation

* code structure

* code structure

* code structure

* enhance grab performance

* rm useless state

* fix behavior on Firefox & scroll lock & horizontal scroll with mousewheel

* remove scroll lock on MouseWheelEvent

* code structure

* enhance algorithm and code structure

* rm Gemfile.lock from tree

* codeclimate

* fix a stupid mistake
This commit is contained in:
Mashiro 2020-11-03 04:16:38 +08:00 committed by GitHub
parent 4b2ec4a2dc
commit 6a2db10f76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 2029 additions and 23 deletions

View file

@ -9,8 +9,10 @@
"account.browse_more_on_origin_server": "Browse more on the original profile",
"account.cancel_follow_request": "取消關注請求",
"account.direct": "傳私訊給 @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "已隱藏網域",
"account.edit_profile": "編輯個人資料",
"account.enable_notifications": "Notify me when @{name} posts",
"account.endorse": "在個人資料推薦對方",
"account.follow": "關注",
"account.followers": "關注者",
@ -166,7 +168,9 @@
"empty_column.notifications": "您尚未收到任何通知,和別人互動開啟對話吧。",
"empty_column.public": "這裡什麼都沒有!嘗試寫些公開的嘟文,或著自己關注其他伺服器的使用者後就會有嘟文出現了",
"error.unexpected_crash.explanation": "由於發生系統故障或瀏覽器相容性問題,故無法正常顯示頁面。",
"error.unexpected_crash.explanation_addons": "This page could not be displayed correctly. This error is likely caused by a browser add-on or automatic translation tools.",
"error.unexpected_crash.next_steps": "請嘗試重新整理頁面。如果狀況沒有進展,你可以使用不同的瀏覽器或 Mastodon 應用程式來檢視。",
"error.unexpected_crash.next_steps_addons": "Try disabling them and refreshing the page. If that does not help, you may still be able to use Mastodon through a different browser or native app.",
"errors.unexpected_crash.copy_stacktrace": "複製到剪貼簿",
"errors.unexpected_crash.report_issue": "舉報問題",
"follow_request.authorize": "授權",
@ -250,6 +254,8 @@
"keyboard_shortcuts.unfocus": "取消輸入文字區塊 / 搜尋的焦點",
"keyboard_shortcuts.up": "往上移動名單項目",
"lightbox.close": "關閉",
"lightbox.compress": "Compress image view box",
"lightbox.expand": "Expand image view box",
"lightbox.next": "下一步",
"lightbox.previous": "上一步",
"lightbox.view_context": "檢視內文",
@ -260,6 +266,10 @@
"lists.edit.submit": "變更標題",
"lists.new.create": "新增名單",
"lists.new.title_placeholder": "新名單標題",
"lists.replies_policy.all_replies": "Any followed user",
"lists.replies_policy.list_replies": "Members of the list",
"lists.replies_policy.no_replies": "No one",
"lists.replies_policy.title": "Show replies to:",
"lists.search": "搜尋您關注的使用者",
"lists.subheading": "您的名單",
"load_pending": "{count, plural, other {# 個新項目}}",
@ -267,7 +277,9 @@
"media_gallery.toggle_visible": "切換可見性",
"missing_indicator.label": "找不到",
"missing_indicator.sublabel": "找不到此資源",
"mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "隱藏來自這位使用者的通知?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "封鎖的使用者",
"navigation_bar.blocks": "封鎖使用者",
"navigation_bar.bookmarks": "書籤",
@ -298,6 +310,7 @@
"notification.own_poll": "您的投票已結束",
"notification.poll": "您投過的投票已經結束",
"notification.reblog": "{name}轉嘟了你的嘟文",
"notification.status": "{name} just posted",
"notifications.clear": "清除通知",
"notifications.clear_confirmation": "確定要永久清除你的通知嗎?",
"notifications.column_settings.alert": "桌面通知",
@ -313,13 +326,22 @@
"notifications.column_settings.reblog": "轉嘟:",
"notifications.column_settings.show": "在欄位中顯示",
"notifications.column_settings.sound": "播放音效",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "全部",
"notifications.filter.boosts": "轉嘟",
"notifications.filter.favourites": "最愛",
"notifications.filter.follows": "關注的使用者",
"notifications.filter.mentions": "提及",
"notifications.filter.polls": "投票結果",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} 條通知",
"notifications.mark_as_read": "Mark every notification as read",
"notifications.permission_denied": "Desktop notifications are unavailable due to previously denied browser permissions request",
"notifications.permission_denied_alert": "Desktop notifications can't be enabled, as browser permission has been denied before",
"notifications_permission_banner.enable": "Enable desktop notifications",
"notifications_permission_banner.how_to_control": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
"notifications_permission_banner.title": "Never miss a thing",
"picture_in_picture.restore": "Put it back",
"poll.closed": "已關閉",
"poll.refresh": "重新整理",
"poll.total_people": "{count, plural, one {# 個投票} other {# 個投票}}",
@ -446,6 +468,7 @@
"upload_modal.detect_text": "從圖片偵測文字",
"upload_modal.edit_media": "編輯媒體",
"upload_modal.hint": "點擊或拖曳圓圈以選擇預覽縮圖。",
"upload_modal.preparing_ocr": "Preparing OCR…",
"upload_modal.preview_label": "預覽 ({ratio})",
"upload_progress.label": "上傳中...",
"video.close": "關閉影片",