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
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": "Zruš žiadosť o sledovanie",
"account.direct": "Priama správa pre @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "Doména ukrytá",
"account.edit_profile": "Uprav profil",
"account.enable_notifications": "Notify me when @{name} posts",
"account.endorse": "Zobrazuj na profile",
"account.follow": "Nasleduj",
"account.followers": "Sledujúci",
@ -166,7 +168,9 @@
"empty_column.notifications": "Ešte nemáš žiadne oznámenia. Začni komunikovať s ostatnými, aby diskusia mohla začať.",
"empty_column.public": "Ešte tu nič nie je. Napíš niečo verejne, alebo začni sledovať užívateľov z iných serverov, aby tu niečo pribudlo",
"error.unexpected_crash.explanation": "Kvôli chybe v našom kóde, alebo problému s kompatibilitou prehliadača, túto stránku nebolo možné zobraziť správne.",
"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": "Skús obnoviť stránku. Ak to nepomôže, pravdepodobne budeš stále môcť používať Mastodon cez iný prehliadač, alebo natívnu aplikáciu.",
"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": "Skopíruj stacktrace do schránky",
"errors.unexpected_crash.report_issue": "Nahlás problém",
"follow_request.authorize": "Povoľ prístup",
@ -250,6 +254,8 @@
"keyboard_shortcuts.unfocus": "nesústreď sa na písaciu plochu, alebo hľadanie",
"keyboard_shortcuts.up": "posuň sa vyššie v zozname",
"lightbox.close": "Zatvor",
"lightbox.compress": "Compress image view box",
"lightbox.expand": "Expand image view box",
"lightbox.next": "Ďalšie",
"lightbox.previous": "Predchádzajúci",
"lightbox.view_context": "Ukáž kontext",
@ -260,6 +266,10 @@
"lists.edit.submit": "Zmeň názov",
"lists.new.create": "Pridaj zoznam",
"lists.new.title_placeholder": "Názov nového zoznamu",
"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": "Vyhľadávaj medzi užívateľmi, ktorých sleduješ",
"lists.subheading": "Tvoje zoznamy",
"load_pending": "{count, plural, one {# nová položka} other {# nových položiek}}",
@ -267,7 +277,9 @@
"media_gallery.toggle_visible": "Zapni/Vypni viditeľnosť",
"missing_indicator.label": "Nenájdené",
"missing_indicator.sublabel": "Tento zdroj sa ešte nepodarilo nájsť",
"mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "Skry oznámenia od tohto používateľa?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "Aplikácie",
"navigation_bar.blocks": "Blokovaní užívatelia",
"navigation_bar.bookmarks": "Záložky",
@ -298,6 +310,7 @@
"notification.own_poll": "Tvoja anketa sa skončila",
"notification.poll": "Anketa v ktorej si hlasoval/a sa skončila",
"notification.reblog": "{name} zdieľal/a tvoj príspevok",
"notification.status": "{name} just posted",
"notifications.clear": "Vyčisti oboznámenia",
"notifications.clear_confirmation": "Naozaj chceš nenávratne prečistiť všetky tvoje oboznámenia?",
"notifications.column_settings.alert": "Oboznámenia na ploche",
@ -313,13 +326,22 @@
"notifications.column_settings.reblog": "Vyzdvihnutia:",
"notifications.column_settings.show": "Ukáž v stĺpci",
"notifications.column_settings.sound": "Prehraj zvuk",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "Všetky",
"notifications.filter.boosts": "Vyzdvihnutia",
"notifications.filter.favourites": "Obľúbené",
"notifications.filter.follows": "Sledovania",
"notifications.filter.mentions": "Iba spomenutia",
"notifications.filter.polls": "Výsledky ankiet",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} oboznámení",
"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": "Uzatvorená",
"poll.refresh": "Občerstvi",
"poll.total_people": "{count, plural, one {# človek} few {# ľudia} other {# ľudí}}",
@ -446,6 +468,7 @@
"upload_modal.detect_text": "Rozpoznaj text z obrázka",
"upload_modal.edit_media": "Uprav médiá",
"upload_modal.hint": "Klikni, alebo potiahni okruh ukážky pre zvolenie z ktorého východzieho bodu bude vždy v dohľadne na všetkých náhľadoch.",
"upload_modal.preparing_ocr": "Preparing OCR…",
"upload_modal.preview_label": "Náhľad ({ratio})",
"upload_progress.label": "Nahráva sa...",
"video.close": "Zavri video",