diff --git a/src/content-handlers/iiif/BaseConfig.ts b/src/content-handlers/iiif/BaseConfig.ts index 39d48f7ce..b6abea509 100644 --- a/src/content-handlers/iiif/BaseConfig.ts +++ b/src/content-handlers/iiif/BaseConfig.ts @@ -277,6 +277,22 @@ type AuthDialogue = ModuleConfig & { content: AuthDialogueContent; }; +type AdjustImageDialogueOptions = DialogueOptions & {}; + +type AdjustImageDialogueContent = DialogueContent & { + title: string; + brightness: string; + contrast: string; + saturation: string; + reset: string; + remember: string; +} + +export type AdjustImageDialogue = ModuleConfig & { + options: AdjustImageDialogueOptions; + content: AdjustImageDialogueContent; +} + export type DownloadDialogueOptions = DialogueOptions & {}; export type DownloadDialogueContent = DialogueContent & { @@ -439,6 +455,7 @@ export type BaseConfig = { restrictedDialogue: RestrictedDialogue; settingsDialogue: SettingsDialogue; shareDialogue: ShareDialogue; + adjustImageDialogue: AdjustImageDialogue; }; localisation: Localisation; content: Content; diff --git a/src/content-handlers/iiif/IIIFEvents.ts b/src/content-handlers/iiif/IIIFEvents.ts index 06c389659..a29aa4bdc 100644 --- a/src/content-handlers/iiif/IIIFEvents.ts +++ b/src/content-handlers/iiif/IIIFEvents.ts @@ -117,4 +117,6 @@ export class IIIFEvents { static UPDATE_SETTINGS: string = "updateSettings"; static VIEW_FULL_TERMS: string = "viewFullTerms"; static WINDOW_UNLOAD: string = "windowUnload"; + static SHOW_ADJUSTIMAGE_DIALOGUE: string = "showAdjustImageDialogue"; + static HIDE_ADJUSTIMAGE_DIALOGUE: string = "hideAdjustImageDialogue"; } diff --git a/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json index e3797b74c..c99fcf635 100644 --- a/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json @@ -266,6 +266,20 @@ "confirm": "$confirm" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "clickThroughDialogue": { "options": { "topCloseButtonEnabled": false diff --git a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json index e09376e9c..7749ecc36 100644 --- a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json @@ -310,6 +310,20 @@ "confirm": "$confirm" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "clickThroughDialogue": { "options": { "topCloseButtonEnabled": false diff --git a/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json index 79727272f..a3c08d5fa 100644 --- a/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json @@ -258,6 +258,20 @@ "confirm": "$confirm" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "clickThroughDialogue": { "options": { "topCloseButtonEnabled": false diff --git a/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json index e472b7ab3..785a5c521 100644 --- a/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json @@ -261,6 +261,20 @@ "confirm": "$confirm" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "clickThroughDialogue": { "options": { "topCloseButtonEnabled": false diff --git a/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json index e894e7a9a..f0ff5b360 100644 --- a/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json @@ -191,6 +191,20 @@ "confirm": "$confirm" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "clickThroughDialogue": { "options": { "topCloseButtonEnabled": false diff --git a/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json index d6e03d0e0..5cc12678e 100644 --- a/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json @@ -332,6 +332,20 @@ "title": "$settings", "website": "$uvWebsite" } + }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } } }, "localisation": { diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/AdjustImageDialogue.ts b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/AdjustImageDialogue.ts new file mode 100644 index 000000000..61cc5671e --- /dev/null +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/AdjustImageDialogue.ts @@ -0,0 +1,17 @@ +import { AdjustImageDialogue as BaseAdjustImageDialogue } from "../../modules/uv-dialogues-module/AdjustImageDialogue"; +import { Shell } from "../../modules/uv-shared-module/Shell"; + +export class AdjustImageDialogue extends BaseAdjustImageDialogue { + constructor($element: JQuery, shell: Shell) { + super($element, shell); + } + + create(): void { + this.setConfig("shareDialogue"); + super.create(); + } + + resize(): void { + super.resize(); + } +} diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts index 5c7ddd935..16fb88ebc 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts @@ -54,6 +54,7 @@ import { createStore, OpenSeadragonExtensionState } from "./Store"; import { merge } from "../../../../Utils"; import defaultConfig from "./config/config.json"; import { Config } from "./config/Config"; +import { AdjustImageDialogue } from "../../modules/uv-dialogues-module/AdjustImageDialogue"; export default class OpenSeadragonExtension extends BaseExtension { $downloadDialogue: JQuery; @@ -63,6 +64,7 @@ export default class OpenSeadragonExtension extends BaseExtension { $multiSelectDialogue: JQuery; $settingsDialogue: JQuery; $shareDialogue: JQuery; + $adjustImageDialogue: JQuery; centerPanel: OpenSeadragonCenterPanel; currentAnnotationRect: AnnotationRect | null; currentRotation: number = 0; @@ -71,6 +73,7 @@ export default class OpenSeadragonExtension extends BaseExtension { footerPanel: FooterPanel; headerPanel: PagingHeaderPanel; helpDialogue: HelpDialogue; + adjustImageDialogue: AdjustImageDialogue; isAnnotating: boolean = false; leftPanel: ContentLeftPanel; mobileFooterPanel: MobileFooterPanel; @@ -567,6 +570,12 @@ export default class OpenSeadragonExtension extends BaseExtension { this.shell.$overlays.append(this.$shareDialogue); this.shareDialogue = new ShareDialogue(this.$shareDialogue); + this.$adjustImageDialogue = $( + '' + ); + this.shell.$overlays.append(this.$adjustImageDialogue); + this.adjustImageDialogue = new AdjustImageDialogue(this.$adjustImageDialogue, this.shell); + this.$downloadDialogue = $("
"); this.shell.$overlays.append(this.$downloadDialogue); this.downloadDialogueRoot = createRoot(this.$downloadDialogue[0]); diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/ISettings.ts b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/ISettings.ts index f12cf0973..af1e5c4f3 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/ISettings.ts +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/ISettings.ts @@ -6,4 +6,8 @@ interface ISettings { preserveViewport?: boolean; clickToZoomEnabled?: boolean; reducedAnimation?: boolean; + contrastPercent?: number; + brightnessPercent?: number; + saturationPercent?: number; + rememberSettings?: boolean; } diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/Config.ts b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/Config.ts index ff5d7195a..9613719b3 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/Config.ts +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/Config.ts @@ -1,4 +1,5 @@ import { + AdjustImageDialogue, BaseConfig, CenterPanelContent, CenterPanelOptions, @@ -126,6 +127,8 @@ type OpenSeadragonCenterPanelOptions = CenterPanelOptions & { pageGap: number; /** Determines if home control is shown */ showHomeControl: boolean; + /** Determines if adjust image control is shown */ + showAdjustImageControl: boolean; /** Number of attributions to trim */ trimAttributionCount: number; /** Ratio of visibility */ @@ -141,6 +144,7 @@ type OpenSeadragonCenterPanelContent = CenterPanelContent & { rotateRight: string; zoomIn: string; zoomOut: string; + adjustImage: string; }; type OpenSeadragonCenterPanel = ModuleConfig & { @@ -279,6 +283,7 @@ type Modules = { mobileFooterPanel: MobileFooterPanel; shareDialogue: OSDShareDialogue; settingsDialogue: OSDSettingsDialogue; + adjustImageDialogue: AdjustImageDialogue }; export type Config = BaseConfig & { diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json index 2b0d617bb..a51648c13 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json @@ -355,6 +355,7 @@ "pageGap": 50, "requiredStatementEnabled": true, "showHomeControl": false, + "showAdjustImageControl": true, "subtitleEnabled": true, "titleEnabled": true, "trimAttributionCount": 150, @@ -369,7 +370,8 @@ "previous": "$previous", "rotateRight": "$rotateRight", "zoomIn": "$zoomIn", - "zoomOut": "$zoomOut" + "zoomOut": "$zoomOut", + "adjustImage": "$adjustImage" } }, "searchFooterPanel": { @@ -469,6 +471,20 @@ "close": "$close" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "clickThroughDialogue": { "options": { "topCloseButtonEnabled": false diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json index 0a0065511..2a93755c6 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json @@ -121,6 +121,20 @@ "title": "$help" } }, + "adjustImageDialogue": { + "options": { + "topCloseButtonEnabled": false + }, + "content": { + "title": "$adjustImage", + "brightness": "$brightness", + "contrast": "$contrast", + "saturation": "$saturation", + "close": "$close", + "reset": "$reset", + "remember": "$remember" + } + }, "moreInfoRightPanel": { "options": { "canvasDisplayOrder": "", diff --git a/src/content-handlers/iiif/modules/uv-dialogues-module/AdjustImageDialogue.ts b/src/content-handlers/iiif/modules/uv-dialogues-module/AdjustImageDialogue.ts new file mode 100644 index 000000000..b2845004f --- /dev/null +++ b/src/content-handlers/iiif/modules/uv-dialogues-module/AdjustImageDialogue.ts @@ -0,0 +1,155 @@ +const $ = require("jquery"); +import { BaseConfig } from "../../BaseConfig"; +import { IIIFEvents } from "../../IIIFEvents"; +import OpenSeadragonExtension from "../../extensions/uv-openseadragon-extension/Extension"; +import { Dialogue } from "../uv-shared-module/Dialogue"; +import { Shell } from "../uv-shared-module/Shell"; + +export class AdjustImageDialogue extends Dialogue< + BaseConfig["modules"]["adjustImageDialogue"] +> { + $message: JQuery; + $scroll: JQuery; + $title: JQuery; + $brightnessLabel: JQuery; + $brightnessInput: JQuery; + $contrastLabel: JQuery; + $contrastInput: JQuery; + $saturationLabel: JQuery; + $saturationInput: JQuery; + $rememberContainer: JQuery; + $rememberCheckbox: JQuery; + $rememberLabel: JQuery; + $resetButton: JQuery; + contrastPercent: number = 100; + brightnessPercent: number = 100; + saturationPercent: number = 100; + rememberSettings: boolean = false; + shell: Shell; + + constructor($element: JQuery, shell: Shell) { + super($element); + this.shell = shell; + } + + create(): void { + this.setConfig("adjustImageDialogue"); + + super.create(); + + this.extensionHost.subscribe(IIIFEvents.SHOW_ADJUSTIMAGE_DIALOGUE, () => { + this.open(); + }); + + this.$title = $(`
`); + this.$content.append(this.$title); + + this.$contrastLabel = $(''); + this.$contrastInput = $(''); + this.$content.append(this.$contrastLabel); + this.$content.append(this.$contrastInput); + + this.$brightnessLabel = $(''); + this.$brightnessInput = $(''); + this.$content.append(this.$brightnessLabel); + this.$content.append(this.$brightnessInput); + + this.$saturationLabel = $(''); + this.$saturationInput = $(''); + this.$content.append(this.$saturationLabel); + this.$content.append(this.$saturationInput); + this.$title.text(this.content.title); + + if (this.extension.data.config?.options.saveUserSettings) { + this.$rememberContainer = $('
'); + this.$rememberCheckbox = $(''); + this.$rememberLabel = $(''); + this.$rememberContainer.append(this.$rememberCheckbox); + this.$rememberContainer.append(this.$rememberLabel); + this.$content.append(this.$rememberContainer); + + this.$rememberCheckbox.on('input', (e) => { + this.rememberSettings = this.$rememberCheckbox.prop('checked'); + }); + } + + this.$contrastInput.on('input', (e) => { + this.contrastPercent = Number($(e.target).val()); + this.filter(); + }); + + this.$brightnessInput.on('input', (e) => { + this.brightnessPercent = Number($(e.target).val()); + this.filter(); + }); + + this.$saturationInput.on('input', (e) => { + this.saturationPercent = Number($(e.target).val()); + this.filter(); + }); + + this.$resetButton = this.$buttons.find('.close').clone(); + this.$resetButton.prop('title', this.content.reset); + this.$resetButton.text(this.content.reset); + this.$resetButton.onPressed(() => { + this.contrastPercent = 100; + this.brightnessPercent = 100; + this.saturationPercent = 100; + this.$contrastInput.val(this.contrastPercent); + this.$brightnessInput.val(this.brightnessPercent); + this.$saturationInput.val(this.saturationPercent); + let canvas = (((this.extension)).centerPanel.$canvas[0].children[0]); + canvas.style.filter = 'none'; + }); + this.$resetButton.insertBefore(this.$buttons.find('.close')); + + this.$element.hide(); + } + + filter(): void { + let canvas = (((this.extension)).centerPanel.$canvas[0].children[0]); + canvas.style.filter = `contrast(${this.contrastPercent}%) brightness(${this.brightnessPercent}%) saturate(${this.saturationPercent}%)`; + } + + open(): void { + // Check if we have saved setings + let settings = this.extension.getSettings(); + if (settings.rememberSettings) { + this.contrastPercent = Number(settings.contrastPercent); + this.brightnessPercent = Number(settings.brightnessPercent); + this.saturationPercent = Number(settings.saturationPercent); + + this.$contrastInput.val(this.contrastPercent); + this.$brightnessInput.val(this.brightnessPercent); + this.$saturationInput.val(this.saturationPercent); + + if (this.extension.data.config?.options.saveUserSettings) { + this.$rememberCheckbox.prop('checked', settings.rememberSettings); + this.rememberSettings = settings.rememberSettings; + } + } + this.shell.$overlays.css('background', 'none'); + super.open(); + } + + close(): void { + // Check if we should save settings + if (this.rememberSettings) { + this.extension.updateSettings({ rememberSettings: this.rememberSettings }); + this.extension.updateSettings({ contrastPercent: this.contrastPercent }); + this.extension.updateSettings({ brightnessPercent: this.brightnessPercent }); + this.extension.updateSettings({ saturationPercent: this.saturationPercent }); + } else { + this.extension.updateSettings({ rememberSettings: false }); + this.extension.updateSettings({ contrastPercent: 100 }); + this.extension.updateSettings({ brightnessPercent: 100 }); + this.extension.updateSettings({ saturationPercent: 100 }); + } + this.shell.$overlays.css('background', ''); + super.close(); + } + + resize(): void { + super.resize(); + } +} diff --git a/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less b/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less index 1e1a4beb1..3d65f2695 100644 --- a/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less +++ b/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less @@ -1,6 +1,6 @@ -.uv{ +.uv { - .overlay{ + .overlay { .middle { .content { @@ -13,21 +13,21 @@ } } } - + color: @text-secondary-color; - &.share{ + &.share { width: 280px; padding: 0 0 0 8px; - .middle{ - .content{ - .tabs{ + .middle { + .content { + .tabs { padding: @padding-small-vertical 0 0 0; line-height: normal; font-size: 0px; - .tab{ + .tab { line-height: normal; color: @gray; font-size: @font-size-base; @@ -52,11 +52,11 @@ text-decoration: none; } - &.first{ + &.first { margin: 0 0 0 @margin-medium-horizontal; } - &.on{ + &.on { border-bottom: 1px solid @brand-primary; color: @text-secondary-color; margin-bottom: -1px; @@ -67,7 +67,7 @@ } } - .tabsContent{ + .tabsContent { padding: @padding-medium-vertical 0 @padding-small-vertical 0; border-top: 1px solid @gray-lighter; @@ -76,17 +76,19 @@ font-size: @font-size-small; } - .shareView{ + .shareView { .shareInput { .single-line-code(); } + .shareLink { display: block; overflow: hidden; height: 18px; text-overflow: ellipsis; } - .shareFrame{ + + .shareFrame { width: 240px; border: none; height: 30px; @@ -94,20 +96,20 @@ } } - .embedView{ + .embedView { .code { .single-line-code(); } - .customSize{ + .customSize { overflow: hidden; padding-top: @padding-medium-vertical; - .size{ + .size { padding: 0 @padding-small-horizontal 0 0; } - .x{ + .x { padding: 0 @padding-small-horizontal 0 @padding-small-horizontal; } @@ -130,6 +132,7 @@ .footer { overflow: hidden; + a { font-size: @font-size-small; display: block; @@ -141,7 +144,7 @@ height: 30px; } - &.iiif{ + &.iiif { background-image: data-uri('../../../modules/uv-shared-module/img/iiif.png'); background-repeat: no-repeat; margin-right: @margin-small-horizontal; @@ -152,7 +155,7 @@ } } - &.moreInfo{ + &.moreInfo { width: 260px; padding: 0 0 0 8px; @@ -160,8 +163,10 @@ .iiif-metadata-component { height: 200px; overflow: auto; + .items { padding-left: 0px; + .item .value { color: @text-secondary-color; } @@ -170,18 +175,18 @@ } } - &.download{ + &.download { width: 260px; padding: 0 0 0 8px; - .middle{ + .middle { .content { - .noneAvailable{ + .noneAvailable { padding: @padding-medium-vertical 0 @padding-medium-vertical 0; } - .pagingNote{ + .pagingNote { padding: @padding-medium-vertical 0 0 0; } @@ -198,22 +203,27 @@ margin: 0.5rem 0 1rem 0; display: flex; justify-content: center; + .page { width: 50px; height: 70px; background: @gray-lighter; position: relative; cursor: pointer; + &.left { margin-right: 6px; } + &.selected { background: @gray-light; box-shadow: inset 0 0 10px #5a5a5a; + .label { color: #fff; } } + .label { position: absolute; bottom: 0; @@ -233,6 +243,7 @@ li { margin: 0; padding: 2px 0 2px 0; + button { width: 100%; height: 100%; @@ -242,6 +253,7 @@ text-align: left; color: @brand-primary; cursor: pointer; + &:hover { text-decoration: underline; } @@ -252,6 +264,7 @@ .footer { padding: @padding-large-vertical 0 0 0; + button { width: 100%; height: 100%; @@ -261,6 +274,7 @@ text-align: left; color: @brand-primary; cursor: pointer; + &:hover { text-decoration: underline; } @@ -269,27 +283,27 @@ } } - &.help{ + &.help { width: 470px; height: 250px; - .scroll{ + .scroll { height: 180px; } - .bottom{ + .bottom { background: none; } } - &.settings{ + &.settings { width: 470px; height: 250px; - .scroll{ + .scroll { height: 180px; - .setting{ + .setting { margin-bottom: @margin-medium-vertical; select { @@ -299,81 +313,81 @@ font-size: 11px; } - input{ + input { margin: 0 @margin-small-horizontal 0 0; } - label{ + label { margin: 0 @margin-small-horizontal 0 0; } } } - .version{ + .version { float: left; } - .website{ + .website { float: right; } - .bottom{ + .bottom { background: none; } } - &.externalContent{ + &.externalContent { width: 470px; height: 300px; - .middle{ - .content{ + .middle { + .content { width: 470px; height: 300px; overflow: hidden; - iframe{ + iframe { overflow: auto; border: none; } } } - .bottom{ + .bottom { background: none; } } - &.clickthrough{ + &.clickthrough { width: 470px; height: 250px; - .message{ + .message { height: 180px; - &.loading{ + &.loading { .loading(@loader-white-bg); } - .heading{ + .heading { border-bottom: none; font-size: @font-size-base; } } - .bottom{ + .bottom { background: none; } } - &.login{ + &.login { width: 470px; height: 250px; - .message{ + .message { height: 180px; - .heading{ + .heading { border-bottom: none !important; font-size: @font-size-base !important; } @@ -387,12 +401,12 @@ } } - .bottom{ + .bottom { background: none; } } - &.auth{ + &.auth { width: 470px; height: 250px; @@ -413,7 +427,82 @@ } } - .bottom{ + .bottom { + background: none; + } + } + + &.adjustImage { + width: 330px; + height: 250px; + + label { + margin-top: 10px; + display: block; + } + + input[type="range"] { + -webkit-appearance: none; + appearance: none; + background: transparent; + cursor: pointer; + width: 304px; + } + + input[type="range"]::-webkit-slider-runnable-track { + background: @brand-secondary; + height: 5px; + } + + input[type="range"]::-moz-range-track { + background: @brand-secondary; + height: 5px; + } + + input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + margin-top: -6px; + background-color: @brand-secondary; + height: 16px; + width: 16px; + border-radius: 50%; + } + + input[type="range"]::-moz-range-thumb { + border: none; + border-radius: 50%; + background-color: @brand-secondary; + height: 16px; + width: 16px; + } + + input[type="range"]:focus { + outline: none; + } + + input[type="range"]:focus::-webkit-slider-thumb { + border: 1px dotted #053a5f; + outline: 1px dotted #053a5f; + outline-offset: 2px; + } + + input[type="range"]:focus::-moz-range-thumb { + border: 1px dotted #053a5f; + outline: 1px dotted #053a5f; + outline-offset: 2px; + } + + .rememberContainer { + margin-top: 10px; + + label { + display: inline-block; + margin-left: 5px; + } + } + + .bottom { background: none; } } @@ -421,4 +510,4 @@ } -@import 'mobile'; +@import 'mobile'; \ No newline at end of file diff --git a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts index 0096187ec..5908db7f5 100644 --- a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts @@ -46,6 +46,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel< userData: any; viewer: any; viewerId: string; + showAdjustImageButton: boolean; $canvas: JQuery; $goHomeButton: JQuery; @@ -59,6 +60,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel< $viewportNavButtons: JQuery; $zoomInButton: JQuery; $zoomOutButton: JQuery; + $adjustImageButton: JQuery; constructor($element: JQuery) { super($element); @@ -208,6 +210,11 @@ export class OpenSeadragonCenterPanel extends CenterPanel< this.$spinner = $('
'); this.$content.append(this.$spinner); + this.showAdjustImageButton = Bools.getBool( + this.config.options.showAdjustImageControl, + false + ); + // Transparent pixel const pixel = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="; @@ -361,6 +368,16 @@ export class OpenSeadragonCenterPanel extends CenterPanel< this.$rotateButton.prop("aria-label", this.content.rotateRight); this.$rotateButton.addClass("rotate viewportNavButton"); + if (this.showAdjustImageButton) { + this.$adjustImageButton = this.$rotateButton.clone(); + this.$adjustImageButton.prop('title', this.content.adjustImage); + this.$adjustImageButton.switchClass('rotate', 'adjustImage'); + this.$adjustImageButton.onPressed(() => { + this.extensionHost.publish(IIIFEvents.SHOW_ADJUSTIMAGE_DIALOGUE); + }); + this.$adjustImageButton.insertAfter(this.$rotateButton); + } + this.$viewportNavButtonsContainer = this.$viewer.find( ".openseadragon-container > div:not(.openseadragon-canvas):first" ); @@ -372,6 +389,15 @@ export class OpenSeadragonCenterPanel extends CenterPanel< ); this.$canvas = $(this.viewer.canvas); + + // Check if we have saved settings for image adjustment + let settings = this.extension.getSettings(); + if (this.extension.data.config?.options.saveUserSettings && settings.rememberSettings) { + let contrastPercent = settings.contrastPercent; + let brightnessPercent = settings.brightnessPercent; + let saturationPercent = settings.saturationPercent; + ((this.$canvas[0].children[0])).style.filter = `contrast(${contrastPercent}%) brightness(${brightnessPercent}%) saturate(${saturationPercent}%)`; + } // disable right click on canvas this.$canvas.on("contextmenu", () => { @@ -598,7 +624,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel< maxLevel: info.levels - 1, units: "mm", spacing: [info.mm_x, info.mm_y], - getTileUrl: function(level, x, y, query) { + getTileUrl: function (level, x, y, query) { var url = tileDescriptor + "/zxy/" + level + "/" + x + "/" + y; if (query) { @@ -951,9 +977,9 @@ export class OpenSeadragonCenterPanel extends CenterPanel< const canvas: Canvas = this.extension.helper.getCurrentCanvas(); const dimensions: CroppedImageDimensions | null = (this .extension as OpenSeadragonExtension).getCroppedImageDimensions( - canvas, - this.viewer - ); + canvas, + this.viewer + ); if (dimensions) { const bounds: XYWHFragment = new XYWHFragment( @@ -989,7 +1015,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel< if (!center) return; // postpone pan for a millisecond - fixes iPad image stretching/squashing issue. - setTimeout(function() { + setTimeout(function () { viewer.viewport.panTo(center, true); }, 1); } diff --git a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less index ac6623aa9..9a45075e7 100644 --- a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less +++ b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less @@ -134,7 +134,22 @@ } .goHome{ - cursor: pointer !important; + display: none !important; + + .xl-mediaquery({ + display: inline-block !important; + cursor: pointer !important; + background-image: data-uri('../img/home.png') !important; + width: 28px; + height: 28px; + // margin: 3px !important; + img { + display: none; + } + &:focus { + .tab-focus(); + } + }); } div[title="Rotate left"] { @@ -160,6 +175,26 @@ }); } + .adjustImage { + display: none !important; + + .xl-mediaquery({ + display: inline-block !important; + cursor: pointer !important; + background-image: data-uri('../img/adjust.png') !important; + width: 28px; + height: 28px; + // margin: 3px !important; + img { + display: none; + } + &:focus { + .tab-focus(); + } + }); + } + + div[title="Previous page"] { display: none !important; } @@ -185,6 +220,20 @@ @col: lighten(@search-result, 20%); background-color: saturate(@col, 100%); } + z-index: 20; + } + + .lineAnnotationRect{ + .opacity(.5); + &.current { + @col: rgb(120, 251, 185); + background-color: saturate(@col, 100%); + } + &:hover { + @col: lighten(rgb(120, 251, 185), 20%); + background-color: saturate(@col, 80%); + } + z-index: 10; } .annotationPin{ diff --git a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/img/adjust.png b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/img/adjust.png new file mode 100644 index 000000000..d51f067e9 Binary files /dev/null and b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/img/adjust.png differ diff --git a/src/content-handlers/iiif/modules/uv-shared-module/css/right-panel.less b/src/content-handlers/iiif/modules/uv-shared-module/css/right-panel.less index 943fd1579..78c2b6da5 100644 --- a/src/content-handlers/iiif/modules/uv-shared-module/css/right-panel.less +++ b/src/content-handlers/iiif/modules/uv-shared-module/css/right-panel.less @@ -76,11 +76,41 @@ .main { margin-right: @margin-medium-horizontal; margin-bottom: @margin-medium-vertical; + + .transcribed-text { + width: 230px; + padding: 5px 5px 5px 7px; + + p { + padding: 5px; + margin: 0; + } + + .lineAnnotation { + &.current { + color: #000; + @col: rgb(120, 251, 185); + background-color: saturate(@col, 100%); + } + + &:hover { + color: #000; + @col: lighten(rgb(120, 251, 185), 20%); + background-color: saturate(@col, 80%); + } + } + + .label { + color: #9a9a9a; + border-bottom: 1px solid #343434; + margin: 0 10px 10px 0; + } + } } } - .expandFull() when (@expandFullEnabled = true) { - .title{ + .expandFull() when (@expandFullEnabled =true) { + .title { left: 55px; } diff --git a/src/locales/cy-GB.json b/src/locales/cy-GB.json index 19d561af3..050e1a7c1 100644 --- a/src/locales/cy-GB.json +++ b/src/locales/cy-GB.json @@ -1,148 +1,152 @@ { - "$collapse": "Lleihau'r Cynnwys", - "$collapseFull": "Lleihau'r Galeri", - "$date": "Dyddiad", - "$expandContents": "Ehangu'r Cynnwys", - "$expandGallery": "Ehangu'r Galeri", - "$index": "Mynegai", - "$manifestRanges": "Amrediadau Maniffest", - "$searchResult": "{0} canlyniad chwilio", - "$searchResults": "{0} canlyniad chwilio", - "$sortBy": "Trefnu yn \u00f4l:", - "$thumbnails": "Bodluniau", - "$contents": "Cynnwys", - "$volume": "cyfrol", - "$close": "Cau", - "$allPages": "Pob Tudalen", - "$currentViewAsJpg": "Delwedd ddethol {0} x {1}px (jpg)", - "$openNewWindow": "Agor mewn dwy ffenest newydd.", - "$download": "Lawrlwytho", - "$downloadSelection": "Lawrlwytho'r detholiad", - "$downloadSelectionExplanation": "Agor ffenest er mwyn dewis tudalennau i'w lawrlwytho.", - "$editSettings": "Golygu'r dewisiadau", - "$entireDocument": "Y Ddogfen Gyfan ({0})", - "$entireFileX": "Y ffeil gyfan ({0})", - "$entireFile": "Y ffeil gyfan", - "$individualPages": "Tudalennau Unigol", - "$noDownloadOptionsAvailable": "Nid oes unrhyw opsiynau lawrlwytho ar gael.", - "$pagingNote": "Dad-ddewiswch 'Arddangos Dwy Dudalen' i weld dewisiadau pellach.", - "$preview": "Rhagolwg", - "$selection": "Detholiad", - "$termsOfUse": "Telerau Defnydd", - "$wholeImageHighRes": "Delwedd gyfan {0} x {1}px ({2})", - "$wholeImageHighResExplanation": "Agor mewn ffenest newydd", - "$wholeImageLowResAsJpg": "Delwedd gyfan {0} x {1}px (jpg", - "$wholeImageLowResAsJpgExplanation": "Agor mewn ffenest newydd", - "$wholeImagesHighRes": "Delweddau cyfan ({0})", - "$wholeImagesHighResExplanation": "Agor mewn dwy ffenest newydd.", - "$add_to_bookmarks": "Ychwanegu at nodau tudalen", - "$embed": "Ymgorffori", - "$exitFullScreen": "Dianc o'r sgrin lawn", - "$feedback": "Adborth", - "$fullScreen": "Sgrin lawn", - "$moreInfo": "Mwy o Wybodaeth", - "$open": "Agor", - "$share": "Rhannu", - "$emptyValue": "rhowch rif", - "$invalidNumber": "Rhowch rif dilys", - "$noMatches": "Dim canlyniad sy'n cyfateb.", - "$ok": "GWELD", - "$pageNotFound": "Nid yw'r eitem yn cynnwys tudalen gyda'r rhif a nodwyd. Ceisiwch cyfnewid y math i 'delwedd'.", - "$refresh": "Ailosod", - "$placeholder_text": "testun i'w osod", - "$help": "Cymorth", - "$attribution": "Priodoledd", - "$aboutTheImage": "Am y ddelwedd", - "$collapseInformation": "Lleihau'r Wybodaeth", - "$collapseGallery": "Cuddio'r Galeri", - "$copiedToClipboard": "Cop\u00efwyd i'r clipfwrdd", - "$copyToClipboard": "Cop\u00efo i'r clipfwrd", - "$description": "Disgrifiad", - "$expandInformation": "Ehangu'r Wybodaeth", - "$moduleGoesHere": "Eich modiwl fan hyn!", - "$less": "llai", - "$license": "Trwydded", - "$logo": "Logo", - "$aboutTheItem": "Am yr eitem", - "$more": "mwy", - "$noDataToDisplay": "Nid oes data i'w arddangos", - "$page": "Tudalen", - "$aboutThisSection": "Am yr adran hon", - "$moreInformation": "Mwy o Wybodaeth", - "$selectAll": "Dewis y cyfan", - "$selectPagesForDownload": "Dewis Tudalennau i'w Lawrlwytho", - "$first": "gyntaf", - "$firstImage": "Delwedd Gyntaf", - "$firstPage": "Tudalen gyntaf", - "$folio": "Ffolio", - "$gallery": "Galeri", - "$go": "GWELD", - "$image": "Delwedd", - "$last": "Olaf", - "$lastImage": "Delwedd Olaf", - "$lastPage": "Tudalen Olaf", - "$next": "Nesaf", - "$nextImage": "Delwedd Nesaf", - "$nextPage": "Tudalen Nesaf", - "$of": "o {0}", - "$singlePageView": "Gweld un dudalen ar y tro", - "$searchByPageNumber": "Gweld un dudalen ar y tro", - "$previous": "Blaenorol", - "$previousImage": "Delwedd Flaenorol", - "$previousPage": "Tudalen Flaenorol", - "$settings": "Dewisiadau", - "$twoPageView": "Gweld dwy dudalen ar y tro", - "$goHome": "Gweld y maint gwreiddiol", - "$imageUnavailable": "Nid oes delwedd ar gael", - "$rotateRight": "Cylchdroi i'r dde", - "$zoomIn": "Closio", - "$zoomOut": "Gwrthglosio", - "$clearSearch": "Gwaredu", - "$displaying_A_of_B": "{0} {1} o {2}", - "$enterKeyword": "Mewnosodwch allweddair", - "$imageLowercase": "delwedd", - "$instanceFound": "Dangos 1 canlyniad ar gyfer '{0}' ", - "$instancesFound": "Dangos {0} canlyniad o '{1}' ", - "$nextResult": "Canlyniad nesaf", - "$pageLowercase": "tudalen", - "$previousResult": "Canlyniad blaenorol", - "$print": "Argraffu", - "$resultFoundFor": "canlyniad a geir ar gyfer", - "$resultsFoundFor": "canlyniad ar gyfer", - "$searchWithinItem": "Chwilio tu fewn i:", - "$locale": "Iaith", - "$navigatorEnabled": "Ffenest llywio ar gae", - "$clickToZoomEnabled": "Cliciwch gyda'r llygoden i glosio", - "$reducedMotion": "Lleihau symudiad (analluogi animeiddiadau)", - "$preserveViewport": "Cadw'r lefel o glosio", - "$uvWebsite": "mwy o wybodaeth<\/a>", - "$custom": "dewisol", - "$embedInstructions": "Er mwyn ymgorffori'r eitem hon ar eich gwefan, cop\u00efwch a gosodwch y cod isod.", - "$height": "Hyd", - "$iiifManifest": "Maniffest IIIF", - "$shareInstructions": "Er mwyn rhannu'r eitem hon, cop\u00efwch y URL isod.", - "$size": "Maint:", - "$width": "Lled", - "$cancel": "Canslo", - "$confirm": "Cadarnhau", - "$viewTerms": "Darllenwch y Telerau a'r Amodau Llawn", - "$login": "Mewngofnodi", - "$log_in": "Mewngofnodi", - "$logout": "Allgofnodi", - "$authCORSError": "Mae angen diweddaru'ch porwr er mwyn galluogi rhannu adnoddau traws-safle.", - "$authorisationFailedMessage": "Ni lwyddoch i fewngofnodi. Rhowch gynnig arni eto.", - "$canvasIndexOutOfRange": "Canfas yn rhy fawr i'w arddangos (ceisiwch eto)", - "$fallbackDegradedLabel": "Mewngofnodi", - "$fallbackDegradedMessage": "Mewngofnodwch i weld y cynnwys hwn gyda phenderfyniad llawn.", - "$forbiddenResourceMessage": "Nid yw'ch hawliau mynediad presennol yn ddigonol i weld y ddelwedd hon", - "$mediaViewer": "Gwyliwr Cyfryngau", - "$skipToDownload": "Neidio i lawrlwythiadau a fformatau amgen", - "$pleaseEnterValue": "Mewnosodwch gwerth", - "$pleaseLogInToViewAtFullQuality": "Mewngofnodwch i weld yn ansawdd llawn.", - "$vr": "VR", - "$currentTime": "Amser Presennol", - "$duration": "Hyd", - "$mute": "Mudo", - "$pause": "Seibiant", - "$play": "Chwarae" + "$collapse": "Lleihau'r Cynnwys", + "$collapseFull": "Lleihau'r Galeri", + "$date": "Dyddiad", + "$expandContents": "Ehangu'r Cynnwys", + "$expandGallery": "Ehangu'r Galeri", + "$index": "Mynegai", + "$manifestRanges": "Amrediadau Maniffest", + "$searchResult": "{0} canlyniad chwilio", + "$searchResults": "{0} canlyniad chwilio", + "$sortBy": "Trefnu yn \u00f4l:", + "$thumbnails": "Bodluniau", + "$contents": "Cynnwys", + "$volume": "cyfrol", + "$close": "Cau", + "$allPages": "Pob Tudalen", + "$currentViewAsJpg": "Delwedd ddethol {0} x {1}px (jpg)", + "$openNewWindow": "Agor mewn dwy ffenest newydd.", + "$download": "Lawrlwytho", + "$downloadSelection": "Lawrlwytho'r detholiad", + "$downloadSelectionExplanation": "Agor ffenest er mwyn dewis tudalennau i'w lawrlwytho.", + "$editSettings": "Golygu'r dewisiadau", + "$entireDocument": "Y Ddogfen Gyfan ({0})", + "$entireFileX": "Y ffeil gyfan ({0})", + "$entireFile": "Y ffeil gyfan", + "$individualPages": "Tudalennau Unigol", + "$noDownloadOptionsAvailable": "Nid oes unrhyw opsiynau lawrlwytho ar gael.", + "$pagingNote": "Dad-ddewiswch 'Arddangos Dwy Dudalen' i weld dewisiadau pellach.", + "$preview": "Rhagolwg", + "$selection": "Detholiad", + "$termsOfUse": "Telerau Defnydd", + "$wholeImageHighRes": "Delwedd gyfan {0} x {1}px ({2})", + "$wholeImageHighResExplanation": "Agor mewn ffenest newydd", + "$wholeImageLowResAsJpg": "Delwedd gyfan {0} x {1}px (jpg", + "$wholeImageLowResAsJpgExplanation": "Agor mewn ffenest newydd", + "$wholeImagesHighRes": "Delweddau cyfan ({0})", + "$wholeImagesHighResExplanation": "Agor mewn dwy ffenest newydd.", + "$add_to_bookmarks": "Ychwanegu at nodau tudalen", + "$embed": "Ymgorffori", + "$exitFullScreen": "Dianc o'r sgrin lawn", + "$feedback": "Adborth", + "$fullScreen": "Sgrin lawn", + "$moreInfo": "Mwy o Wybodaeth", + "$open": "Agor", + "$share": "Rhannu", + "$emptyValue": "rhowch rif", + "$invalidNumber": "Rhowch rif dilys", + "$noMatches": "Dim canlyniad sy'n cyfateb.", + "$ok": "GWELD", + "$pageNotFound": "Nid yw'r eitem yn cynnwys tudalen gyda'r rhif a nodwyd. Ceisiwch cyfnewid y math i 'delwedd'.", + "$refresh": "Ailosod", + "$placeholder_text": "testun i'w osod", + "$help": "Cymorth", + "$attribution": "Priodoledd", + "$aboutTheImage": "Am y ddelwedd", + "$collapseInformation": "Lleihau'r Wybodaeth", + "$collapseGallery": "Cuddio'r Galeri", + "$copiedToClipboard": "Cop\u00efwyd i'r clipfwrdd", + "$copyToClipboard": "Cop\u00efo i'r clipfwrd", + "$description": "Disgrifiad", + "$expandInformation": "Ehangu'r Wybodaeth", + "$moduleGoesHere": "Eich modiwl fan hyn!", + "$less": "llai", + "$license": "Trwydded", + "$logo": "Logo", + "$aboutTheItem": "Am yr eitem", + "$more": "mwy", + "$noDataToDisplay": "Nid oes data i'w arddangos", + "$page": "Tudalen", + "$aboutThisSection": "Am yr adran hon", + "$moreInformation": "Mwy o Wybodaeth", + "$selectAll": "Dewis y cyfan", + "$selectPagesForDownload": "Dewis Tudalennau i'w Lawrlwytho", + "$first": "gyntaf", + "$firstImage": "Delwedd Gyntaf", + "$firstPage": "Tudalen gyntaf", + "$folio": "Ffolio", + "$gallery": "Galeri", + "$go": "GWELD", + "$image": "Delwedd", + "$last": "Olaf", + "$lastImage": "Delwedd Olaf", + "$lastPage": "Tudalen Olaf", + "$next": "Nesaf", + "$nextImage": "Delwedd Nesaf", + "$nextPage": "Tudalen Nesaf", + "$of": "o {0}", + "$singlePageView": "Gweld un dudalen ar y tro", + "$searchByPageNumber": "Gweld un dudalen ar y tro", + "$previous": "Blaenorol", + "$previousImage": "Delwedd Flaenorol", + "$previousPage": "Tudalen Flaenorol", + "$settings": "Dewisiadau", + "$twoPageView": "Gweld dwy dudalen ar y tro", + "$goHome": "Gweld y maint gwreiddiol", + "$imageUnavailable": "Nid oes delwedd ar gael", + "$rotateRight": "Cylchdroi i'r dde", + "$zoomIn": "Closio", + "$zoomOut": "Gwrthglosio", + "$adjustImage": "Addasu delwedd", + "$clearSearch": "Gwaredu", + "$displaying_A_of_B": "{0} {1} o {2}", + "$enterKeyword": "Mewnosodwch allweddair", + "$imageLowercase": "delwedd", + "$instanceFound": "Dangos 1 canlyniad ar gyfer '{0}' ", + "$instancesFound": "Dangos {0} canlyniad o '{1}' ", + "$nextResult": "Canlyniad nesaf", + "$pageLowercase": "tudalen", + "$previousResult": "Canlyniad blaenorol", + "$print": "Argraffu", + "$resultFoundFor": "canlyniad a geir ar gyfer", + "$resultsFoundFor": "canlyniad ar gyfer", + "$searchWithinItem": "Chwilio tu fewn i:", + "$locale": "Iaith", + "$navigatorEnabled": "Ffenest llywio ar gae", + "$clickToZoomEnabled": "Cliciwch gyda'r llygoden i glosio", + "$reducedMotion": "Lleihau symudiad (analluogi animeiddiadau)", + "$preserveViewport": "Cadw'r lefel o glosio", + "$uvWebsite": "mwy o wybodaeth", + "$custom": "dewisol", + "$embedInstructions": "Er mwyn ymgorffori'r eitem hon ar eich gwefan, cop\u00efwch a gosodwch y cod isod.", + "$height": "Hyd", + "$iiifManifest": "Maniffest IIIF", + "$shareInstructions": "Er mwyn rhannu'r eitem hon, cop\u00efwch y URL isod.", + "$size": "Maint:", + "$width": "Lled", + "$cancel": "Canslo", + "$confirm": "Cadarnhau", + "$viewTerms": "Darllenwch y Telerau a'r Amodau Llawn", + "$login": "Mewngofnodi", + "$log_in": "Mewngofnodi", + "$logout": "Allgofnodi", + "$authCORSError": "Mae angen diweddaru'ch porwr er mwyn galluogi rhannu adnoddau traws-safle.", + "$authorisationFailedMessage": "Ni lwyddoch i fewngofnodi. Rhowch gynnig arni eto.", + "$canvasIndexOutOfRange": "Canfas yn rhy fawr i'w arddangos (ceisiwch eto)", + "$fallbackDegradedLabel": "Mewngofnodi", + "$fallbackDegradedMessage": "Mewngofnodwch i weld y cynnwys hwn gyda phenderfyniad llawn.", + "$forbiddenResourceMessage": "Nid yw'ch hawliau mynediad presennol yn ddigonol i weld y ddelwedd hon", + "$mediaViewer": "Gwyliwr Cyfryngau", + "$skipToDownload": "Neidio i lawrlwythiadau a fformatau amgen", + "$pleaseEnterValue": "Mewnosodwch gwerth", + "$pleaseLogInToViewAtFullQuality": "Mewngofnodwch i weld yn ansawdd llawn.", + "$vr": "VR", + "$currentTime": "Amser Presennol", + "$duration": "Hyd", + "$mute": "Mudo", + "$pause": "Seibiant", + "$play": "Chwarae", + "$brightness": "Disgleirdeb", + "$contrast": "Cyferbyniad", + "$saturation": "Dirlawnder" } diff --git a/src/locales/en-GB.json b/src/locales/en-GB.json index a8af0f50e..49376532e 100644 --- a/src/locales/en-GB.json +++ b/src/locales/en-GB.json @@ -97,6 +97,7 @@ "$rotateRight": "Rotate Right", "$zoomIn": "Zoom In", "$zoomOut": "Zoom Out", + "$adjustImage": "Adjust image", "$clearSearch": "Clear", "$displaying_A_of_B": "{0} {1} of {2}", "$enterKeyword": "Enter Keyword", @@ -144,5 +145,10 @@ "$duration": "Duration", "$mute": "Mute", "$pause": "Pause", - "$play": "Play" + "$play": "Play", + "$brightness": "Brightness", + "$contrast": "Contrast", + "$saturation": "Saturation", + "$reset": "Reset", + "$remember": "Remember my settings" } diff --git a/src/locales/fr-FR.json b/src/locales/fr-FR.json index ad5fa6713..2b16422ad 100644 --- a/src/locales/fr-FR.json +++ b/src/locales/fr-FR.json @@ -1,148 +1,149 @@ { - "$collapse": "Masquer les contenus", - "$collapseFull": "Masquer la galerie", - "$date": "date", - "$expandContents": "Afficher les contenus", - "$expandGallery": "Afficher la galerie", - "$index": "Index", - "$manifestRanges": "Manifestes", - "$searchResult": "{0} résultats", - "$searchResults": "{0} résultats", - "$sortBy": "Trier par :", - "$thumbnails": "Vignettes", - "$contents": "Contenus", - "$volume": "volume", - "$close": "Fermer", - "$allPages": "Toutes les pages", - "$currentViewAsJpg": "Vue actuelle {0} x {1}px (jpg)", - "$openNewWindow": "Ouvre une nouvelle fenêtre", - "$download": "Télécharger", - "$downloadSelection": "Télécharger la sélection", - "$downloadSelectionExplanation": "Ouvre une fenêtre pour sélectionner les pages à télécharger.", - "$editSettings": "Modifier les paramètres", - "$entireDocument": "Document entier ({0})", - "$entireFileX": "Fichier complet ({0})", - "$entireFile": "Fichier complet", - "$individualPages": "Pages individuelles", - "$noDownloadOptionsAvailable": "Aucune option de téléchargement n'est disponible.", - "$pagingNote": "Veuillez fermer l'affichage en double page pour accéder aux options supplémentaires.", - "$preview": "Aperçu", - "$selection": "Sélection", - "$termsOfUse": "Conditions d'utilisation", - "$wholeImageHighRes": "Image {0} x {1}px ({2})", - "$wholeImageHighResExplanation": "Ouvre une nouvelle fenêtre.", - "$wholeImageLowResAsJpg": "Image {0} x {1}px (jpg)", - "$wholeImageLowResAsJpgExplanation": "Ouvre une nouvelle fenêtre.", - "$wholeImagesHighRes": "Images ({0})", - "$wholeImagesHighResExplanation": "S'ouvre dans deux nouvelles fenêtres.", - "$add_to_bookmarks": "Ajouter aux favoris", - "$embed": "Intégrer", - "$exitFullScreen": "Quitter le mode plein écran", - "$feedback": "Commentaire", - "$fullScreen": "Affichage en plein écran", - "$moreInfo": "Informations", - "$open": "Ouvrir", - "$share": "Partager", - "$emptyValue": "veuillez saisir une valeur.", - "$invalidNumber": "Veuillez saisir un nombre valide.", - "$noMatches": "Aucune correspondance n'a été trouvée.", - "$ok": "OK", - "$pageNotFound": "Ce contenu ne contient pas de page avec le numéro indiqué. Veuillez essayer de basculer le mode de numérotation sur 'image'.", - "$refresh": "Rafraîchir", - "$placeholder_text": "texte d'exemple", - "$help": "Aide", - "$attribution": "Attribution", - "$aboutTheImage": "A propos de l'image", - "$collapseInformation": "Masquer les informations", - "$collapseGallery": "Masquer la galerie", - "$copiedToClipboard": "Copié dans le presse-papiers", - "$copyToClipboard": "Copier dans le presse-papiers", - "$description": "Description", - "$expandInformation": "Afficher les informations", - "$moduleGoesHere": "Votre module vient ici !", - "$less": "moins", - "$license": "Licence", - "$logo": "Logo", - "$aboutTheItem": "A propos du contenu", - "$more": "suite", - "$noDataToDisplay": "Aucune donnée à afficher", - "$page": "Page", - "$aboutThisSection": "À propos de cette rubrique", - "$moreInformation": "Informations", - "$selectAll": "Tout sélectionner", - "$selectPagesForDownload": "Sélectionner les pages à télécharger", - "$first": "Premier", - "$firstImage": "Première image", - "$firstPage": "Première page", - "$folio": "Folio", - "$gallery": "Gallerie", - "$go": "Aller", - "$image": "Image", - "$last": "Dernier", - "$lastImage": "Dernière image", - "$lastPage": "Dernière page", - "$next": "Suivant", - "$nextImage": "Prochaine image", - "$nextPage": "Page suivante", - "$of": "de {0}", - "$singlePageView": "Affichage en mode page simple", - "$searchByPageNumber": "Recherche par numéro de page.", - "$previous": "Précédent", - "$previousImage": "Image précédente", - "$previousPage": "Page précédent", - "$settings": "Paramètres", - "$twoPageView": "Affichage double page", - "$goHome": "Retour", - "$imageUnavailable": "Image non disponible", - "$rotateRight": "Pivoter à droite", - "$zoomIn": "Zoomer", - "$zoomOut": "Dézoomer", - "$clearSearch": "Effacer", - "$displaying_A_of_B": "{0} {1} de {2}", - "$enterKeyword": "Saisir un mot", - "$imageLowercase": "image", - "$instanceFound": "1 instance de '{0}' trouvée", - "$instancesFound": "{0} instances de '{1}' trouvées", - "$nextResult": "Résultat suivant", - "$pageLowercase": "page", - "$previousResult": "Résultat précéde", - "$print": "Imprimer", - "$resultFoundFor": "résultat trouvé pour ", - "$resultsFoundFor": "résultats trouvés pour", - "$searchWithinItem": "Chercher dans ce document :", - "$locale": "Langues", - "$navigatorEnabled": "Navigateur activé", - "$clickToZoomEnabled": "Cliquer pour zoomer", - "$reducedMotion": "Réduire le mouvement (désactive les animations)", - "$preserveViewport": "Conserver le zoom", - "$uvWebsite": "informations", - "$custom": "personnalisée", - "$embedInstructions": "Pour afficher ce contenu sur votre site internet, copier-collez le code ci-dessous.", - "$height": "Hauteur", - "$iiifManifest": "Manifeste IIIF", - "$shareInstructions": "Pour partager ce contenu, copier l'URL ci-dessous.", - "$size": "Taille :", - "$width": "Largeur", - "$cancel": "Annuler", - "$confirm": "Confirmer", - "$viewTerms": "Lire les termes et les conditions d'utilisation", - "$login": "Connexion", - "$log_in": "Connexion", - "$logout": "Déconnexion", - "$authCORSError": "Votre navigateur ne supporte pas CORS, veuillez mettre à jour votre navigateur pour afficher ce contenu.", - "$authorisationFailedMessage": "Votre tentative de connexion semble avoir échoué. Veuillez réessayer.", - "$canvasIndexOutOfRange": "Valeur d'index invalide pour la balise Canvas.", - "$fallbackDegradedLabel": "Connexion", - "$fallbackDegradedMessage": "Connectez-vous pour visualisez ce contenu en résolution maximale.", - "$forbiddenResourceMessage": "Vos droits d'accès ne vous permettent pas de visualiser cette image", - "$mediaViewer": "Visionneuse multimédia", - "$skipToDownload": "Passer aux téléchargements et aux formats alternatifs", - "$pleaseEnterValue": "veuillez saisir une valeur.", - "$pleaseLogInToViewAtFullQuality": "Veuillez vous connecter pour voir en pleine qualité.", - "$vr": "VR", - "$currentTime": "Heure actuelle", - "$duration": "Durée", - "$mute": "Muet", - "$pause": "Pause", - "$play": "Jouer" + "$collapse": "Masquer les contenus", + "$collapseFull": "Masquer la galerie", + "$date": "date", + "$expandContents": "Afficher les contenus", + "$expandGallery": "Afficher la galerie", + "$index": "Index", + "$manifestRanges": "Manifestes", + "$searchResult": "{0} résultats", + "$searchResults": "{0} résultats", + "$sortBy": "Trier par :", + "$thumbnails": "Vignettes", + "$contents": "Contenus", + "$volume": "volume", + "$close": "Fermer", + "$allPages": "Toutes les pages", + "$currentViewAsJpg": "Vue actuelle {0} x {1}px (jpg)", + "$openNewWindow": "Ouvre une nouvelle fenêtre", + "$download": "Télécharger", + "$downloadSelection": "Télécharger la sélection", + "$downloadSelectionExplanation": "Ouvre une fenêtre pour sélectionner les pages à télécharger.", + "$editSettings": "Modifier les paramètres", + "$entireDocument": "Document entier ({0})", + "$entireFileX": "Fichier complet ({0})", + "$entireFile": "Fichier complet", + "$individualPages": "Pages individuelles", + "$noDownloadOptionsAvailable": "Aucune option de téléchargement n'est disponible.", + "$pagingNote": "Veuillez fermer l'affichage en double page pour accéder aux options supplémentaires.", + "$preview": "Aperçu", + "$selection": "Sélection", + "$termsOfUse": "Conditions d'utilisation", + "$wholeImageHighRes": "Image {0} x {1}px ({2})", + "$wholeImageHighResExplanation": "Ouvre une nouvelle fenêtre.", + "$wholeImageLowResAsJpg": "Image {0} x {1}px (jpg)", + "$wholeImageLowResAsJpgExplanation": "Ouvre une nouvelle fenêtre.", + "$wholeImagesHighRes": "Images ({0})", + "$wholeImagesHighResExplanation": "S'ouvre dans deux nouvelles fenêtres.", + "$add_to_bookmarks": "Ajouter aux favoris", + "$embed": "Intégrer", + "$exitFullScreen": "Quitter le mode plein écran", + "$feedback": "Commentaire", + "$fullScreen": "Affichage en plein écran", + "$moreInfo": "Informations", + "$open": "Ouvrir", + "$share": "Partager", + "$emptyValue": "veuillez saisir une valeur.", + "$invalidNumber": "Veuillez saisir un nombre valide.", + "$noMatches": "Aucune correspondance n'a été trouvée.", + "$ok": "OK", + "$pageNotFound": "Ce contenu ne contient pas de page avec le numéro indiqué. Veuillez essayer de basculer le mode de numérotation sur 'image'.", + "$refresh": "Rafraîchir", + "$placeholder_text": "texte d'exemple", + "$help": "Aide", + "$attribution": "Attribution", + "$aboutTheImage": "A propos de l'image", + "$collapseInformation": "Masquer les informations", + "$collapseGallery": "Masquer la galerie", + "$copiedToClipboard": "Copié dans le presse-papiers", + "$copyToClipboard": "Copier dans le presse-papiers", + "$description": "Description", + "$expandInformation": "Afficher les informations", + "$moduleGoesHere": "Votre module vient ici !", + "$less": "moins", + "$license": "Licence", + "$logo": "Logo", + "$aboutTheItem": "A propos du contenu", + "$more": "suite", + "$noDataToDisplay": "Aucune donnée à afficher", + "$page": "Page", + "$aboutThisSection": "À propos de cette rubrique", + "$moreInformation": "Informations", + "$selectAll": "Tout sélectionner", + "$selectPagesForDownload": "Sélectionner les pages à télécharger", + "$first": "Premier", + "$firstImage": "Première image", + "$firstPage": "Première page", + "$folio": "Folio", + "$gallery": "Gallerie", + "$go": "Aller", + "$image": "Image", + "$last": "Dernier", + "$lastImage": "Dernière image", + "$lastPage": "Dernière page", + "$next": "Suivant", + "$nextImage": "Prochaine image", + "$nextPage": "Page suivante", + "$of": "de {0}", + "$singlePageView": "Affichage en mode page simple", + "$searchByPageNumber": "Recherche par numéro de page.", + "$previous": "Précédent", + "$previousImage": "Image précédente", + "$previousPage": "Page précédent", + "$settings": "Paramètres", + "$twoPageView": "Affichage double page", + "$goHome": "Retour", + "$imageUnavailable": "Image non disponible", + "$rotateRight": "Pivoter à droite", + "$zoomIn": "Zoomer", + "$zoomOut": "Dézoomer", + "$adjustImage": "Ajuster l'image", + "$clearSearch": "Effacer", + "$displaying_A_of_B": "{0} {1} de {2}", + "$enterKeyword": "Saisir un mot", + "$imageLowercase": "image", + "$instanceFound": "1 instance de '{0}' trouvée", + "$instancesFound": "{0} instances de '{1}' trouvées", + "$nextResult": "Résultat suivant", + "$pageLowercase": "page", + "$previousResult": "Résultat précéde", + "$print": "Imprimer", + "$resultFoundFor": "résultat trouvé pour ", + "$resultsFoundFor": "résultats trouvés pour", + "$searchWithinItem": "Chercher dans ce document :", + "$locale": "Langues", + "$navigatorEnabled": "Navigateur activé", + "$clickToZoomEnabled": "Cliquer pour zoomer", + "$reducedMotion": "Réduire le mouvement (désactive les animations)", + "$preserveViewport": "Conserver le zoom", + "$uvWebsite": "informations", + "$custom": "personnalisée", + "$embedInstructions": "Pour afficher ce contenu sur votre site internet, copier-collez le code ci-dessous.", + "$height": "Hauteur", + "$iiifManifest": "Manifeste IIIF", + "$shareInstructions": "Pour partager ce contenu, copier l'URL ci-dessous.", + "$size": "Taille :", + "$width": "Largeur", + "$cancel": "Annuler", + "$confirm": "Confirmer", + "$viewTerms": "Lire les termes et les conditions d'utilisation", + "$login": "Connexion", + "$log_in": "Connexion", + "$logout": "Déconnexion", + "$authCORSError": "Votre navigateur ne supporte pas CORS, veuillez mettre à jour votre navigateur pour afficher ce contenu.", + "$authorisationFailedMessage": "Votre tentative de connexion semble avoir échoué. Veuillez réessayer.", + "$canvasIndexOutOfRange": "Valeur d'index invalide pour la balise Canvas.", + "$fallbackDegradedLabel": "Connexion", + "$fallbackDegradedMessage": "Connectez-vous pour visualisez ce contenu en résolution maximale.", + "$forbiddenResourceMessage": "Vos droits d'accès ne vous permettent pas de visualiser cette image", + "$mediaViewer": "Visionneuse multimédia", + "$skipToDownload": "Passer aux téléchargements et aux formats alternatifs", + "$pleaseEnterValue": "veuillez saisir une valeur.", + "$pleaseLogInToViewAtFullQuality": "Veuillez vous connecter pour voir en pleine qualité.", + "$vr": "VR", + "$currentTime": "Heure actuelle", + "$duration": "Durée", + "$mute": "Muet", + "$pause": "Pause", + "$play": "Jouer" } diff --git a/src/locales/pl-PL.json b/src/locales/pl-PL.json index 2ade88313..861a9eee3 100644 --- a/src/locales/pl-PL.json +++ b/src/locales/pl-PL.json @@ -1,148 +1,149 @@ { - "$collapse": "Zwiń zawartość", - "$collapseFull": "Zwiń galerię", - "$date": "data", - "$expandContents": "Rozwiń zawartość", - "$expandGallery": "Rozwiń galerię", - "$index": "Indeks", - "$manifestRanges": "Zakresy manifestu", - "$searchResult": "Liczba wyników: {0}", - "$searchResults": "Liczba wyników: {0}", - "$sortBy": "Sortuj wg:", - "$thumbnails": "Miniatury", - "$contents": "Zawartość", - "$volume": "tom", - "$close": "Zamknij", - "$allPages": "Wszystkie strony", - "$currentViewAsJpg": "Aktualny widok {0} x {1}px (jpg)", - "$openNewWindow": "Otwiera się w nowym oknie", - "$download": "Pobierz", - "$downloadSelection": "Pobierz wybrane strony", - "$downloadSelectionExplanation": "Otwiera okno wyboru stron do pobrania.", - "$editSettings": "Edytuj ustawienia", - "$entireDocument": "Cały dokument ({0})", - "$entireFileX": "Cały plik ({0})", - "$entireFile": "Cały plik", - "$individualPages": "Strony indywidualne", - "$noDownloadOptionsAvailable": "Brak dostępnych opcji pobierania.", - "$pagingNote": "Wyłącz widok dwóch stron, aby uzyskać dodatkowe opcje.", - "$preview": "Podgląd", - "$selection": "Wybór", - "$termsOfUse": "Warunki korzystania", - "$wholeImageHighRes": "Pełny obraz {0} x {1}px ({2})", - "$wholeImageHighResExplanation": "Otwiera się w nowym oknie.", - "$wholeImageLowResAsJpg": "Pełny obraz {0} x {1}px (jpg)", - "$wholeImageLowResAsJpgExplanation": "Otwiera się w nowym oknie.", - "$wholeImagesHighRes": "Pełne obrazy ({0})", - "$wholeImagesHighResExplanation": "Otwiera się w dwóch nowych oknach", - "$add_to_bookmarks": "Dodaj do zakładek", - "$embed": "Osadź", - "$exitFullScreen": "Zamknij pełny ekran", - "$feedback": "Feedback", - "$fullScreen": "Pełny ekran", - "$moreInfo": "Więcej informacji", - "$open": "Otwórz", - "$share": "Udostępnij", - "$emptyValue": "proszę wprowadzić wartość.", - "$invalidNumber": "Proszę wprowadzić poprawny numer.", - "$noMatches": "Nie znaleziono dopasowań.", - "$ok": "OK", - "$pageNotFound": "Ten obiekt nie zawiera strony z wprowadzonym numerem. Spróbuj przełączyć tryb numeracji na 'obraz'.", - "$refresh": "Odśwież", - "$placeholder_text": "tekst zastępczy", - "$help": "Pomoc", - "$attribution": "Źródło", - "$aboutTheImage": "O obrazie", - "$collapseInformation": "Zwiń informacje", - "$collapseGallery": "Zwiń galerię", - "$copiedToClipboard": "Skopiowano do schowka", - "$copyToClipboard": "Skopiuj do schowka", - "$description": "Opis", - "$expandInformation": "Rozwiń informacje", - "$moduleGoesHere": "Miejsce na twój moduł!", - "$less": "mniej", - "$license": "Licencja", - "$logo": "Logo", - "$aboutTheItem": "O obiekcie", - "$more": "więcej", - "$noDataToDisplay": "Brak danych do wyświetlenia", - "$page": "Strona", - "$aboutThisSection": "O tej sekcji", - "$moreInformation": "O obiekcie", - "$selectAll": "Zaznacz wszystko", - "$selectPagesForDownload": "Wybierz strony do pobrania", - "$first": "Pierwsza", - "$firstImage": "Pierwszy obraz", - "$firstPage": "Pierwsza strona", - "$folio": "Folio", - "$gallery": "Galeria", - "$go": "Idź", - "$image": "Obraz", - "$last": "Ostatnia", - "$lastImage": "Ostatni obraz", - "$lastPage": "Ostatnia strona", - "$next": "Następna", - "$nextImage": "Następny obraz", - "$nextPage": "Następna strona", - "$of": "z {0}", - "$singlePageView": "Widok pojedynczej strony", - "$searchByPageNumber": "Szukaj według numeru strony", - "$previous": "Poprzednia", - "$previousImage": "Poprzedni obraz", - "$previousPage": "Poprzednia stron", - "$settings": "Ustawienia", - "$twoPageView": "Widok dwóch stro", - "$goHome": "Zobacz całą stronę", - "$imageUnavailable": "Obraz niedostępny", - "$rotateRight": "Obróć w prawo", - "$zoomIn": "Przybliż", - "$zoomOut": "Oddal", - "$clearSearch": "Wyczyść", - "$displaying_A_of_B": "{0} {1} z {2}", - "$enterKeyword": "Wprowadź słowo kluczowe", - "$imageLowercase": "obraz", - "$instanceFound": "Znaleziono 1 wystąpienie '{0}'", - "$instancesFound": "Znalezione wystąpienia '{1}': {0}", - "$nextResult": "Następny wynik", - "$pageLowercase": "strona", - "$previousResult": "Poprzedni wynik", - "$print": "Drukuj", - "$resultFoundFor": "wynik dla", - "$resultsFoundFor": "wyniki/wyników dla", - "$searchWithinItem": "Wyszukaj w tym obiekcie:", - "$locale": "Język", - "$navigatorEnabled": "Włączona nawigacja", - "$clickToZoomEnabled": "Przybliżenie przez kliknięcie myszą", - "$reducedMotion": "Zmniejsz ruch (wyłącza animacje)", - "$preserveViewport": "Zachowanie przybliżenia", - "$uvWebsite": "więcej informacji", - "$custom": "Ustawienia", - "$embedInstructions": "Aby osadzić ten obiekt na własnej witrynie, skopiuj i wklej poniższy kod.", - "$height": "Wysokość", - "$iiifManifest": "Manifest IIIF", - "$shareInstructions": "Aby udostępnić ten obiekt, skopiuj poniższy adres URL.", - "$size": "Rozmiar:", - "$width": "Szerokość", - "$cancel": "Anuluj", - "$confirm": "Potwierdź", - "$viewTerms": "Przeczytaj pełny Regulamin", - "$login": "Zaloguj się", - "$log_in": "Zaloguj się", - "$logout": "Wyloguj", - "$authCORSError": "Twoja przeglądarka nie obsługuje CORS. Zaktualizuj ją, aby wyświetlić tę zawartość.", - "$authorisationFailedMessage": "Twoja próba logowania nie powidła się. Proszę spróbuj ponownie.", - "$canvasIndexOutOfRange": "Numer kanwy poza zakresem", - "$fallbackDegradedLabel": "Zaloguj się", - "$fallbackDegradedMessage": "Zaloguj się, aby zobaczyć tę treść w pełnej rozdzielczości.", - "$forbiddenResourceMessage": "Twoje obecne prawa dostępu są niewystarczające, aby wyświetlić ten obraz", - "$mediaViewer": "Przeglądarka multimediów", - "$skipToDownload": "Przejdź do pobierania i alternatywnych formatów", - "$pleaseEnterValue": "proszę wprowadzić wartość", - "$pleaseLogInToViewAtFullQuality": "Zaloguj się, aby oglądać w pełnej jakości.", - "$vr": "VR", - "$currentTime": "Obecny czas", - "$duration": "Czas trwania", - "$mute": "Wycisz", - "$pause": "Pauza", - "$play": "Odtwarzaj" + "$collapse": "Zwiń zawartość", + "$collapseFull": "Zwiń galerię", + "$date": "data", + "$expandContents": "Rozwiń zawartość", + "$expandGallery": "Rozwiń galerię", + "$index": "Indeks", + "$manifestRanges": "Zakresy manifestu", + "$searchResult": "Liczba wyników: {0}", + "$searchResults": "Liczba wyników: {0}", + "$sortBy": "Sortuj wg:", + "$thumbnails": "Miniatury", + "$contents": "Zawartość", + "$volume": "tom", + "$close": "Zamknij", + "$allPages": "Wszystkie strony", + "$currentViewAsJpg": "Aktualny widok {0} x {1}px (jpg)", + "$openNewWindow": "Otwiera się w nowym oknie", + "$download": "Pobierz", + "$downloadSelection": "Pobierz wybrane strony", + "$downloadSelectionExplanation": "Otwiera okno wyboru stron do pobrania.", + "$editSettings": "Edytuj ustawienia", + "$entireDocument": "Cały dokument ({0})", + "$entireFileX": "Cały plik ({0})", + "$entireFile": "Cały plik", + "$individualPages": "Strony indywidualne", + "$noDownloadOptionsAvailable": "Brak dostępnych opcji pobierania.", + "$pagingNote": "Wyłącz widok dwóch stron, aby uzyskać dodatkowe opcje.", + "$preview": "Podgląd", + "$selection": "Wybór", + "$termsOfUse": "Warunki korzystania", + "$wholeImageHighRes": "Pełny obraz {0} x {1}px ({2})", + "$wholeImageHighResExplanation": "Otwiera się w nowym oknie.", + "$wholeImageLowResAsJpg": "Pełny obraz {0} x {1}px (jpg)", + "$wholeImageLowResAsJpgExplanation": "Otwiera się w nowym oknie.", + "$wholeImagesHighRes": "Pełne obrazy ({0})", + "$wholeImagesHighResExplanation": "Otwiera się w dwóch nowych oknach", + "$add_to_bookmarks": "Dodaj do zakładek", + "$embed": "Osadź", + "$exitFullScreen": "Zamknij pełny ekran", + "$feedback": "Feedback", + "$fullScreen": "Pełny ekran", + "$moreInfo": "Więcej informacji", + "$open": "Otwórz", + "$share": "Udostępnij", + "$emptyValue": "proszę wprowadzić wartość.", + "$invalidNumber": "Proszę wprowadzić poprawny numer.", + "$noMatches": "Nie znaleziono dopasowań.", + "$ok": "OK", + "$pageNotFound": "Ten obiekt nie zawiera strony z wprowadzonym numerem. Spróbuj przełączyć tryb numeracji na 'obraz'.", + "$refresh": "Odśwież", + "$placeholder_text": "tekst zastępczy", + "$help": "Pomoc", + "$attribution": "Źródło", + "$aboutTheImage": "O obrazie", + "$collapseInformation": "Zwiń informacje", + "$collapseGallery": "Zwiń galerię", + "$copiedToClipboard": "Skopiowano do schowka", + "$copyToClipboard": "Skopiuj do schowka", + "$description": "Opis", + "$expandInformation": "Rozwiń informacje", + "$moduleGoesHere": "Miejsce na twój moduł!", + "$less": "mniej", + "$license": "Licencja", + "$logo": "Logo", + "$aboutTheItem": "O obiekcie", + "$more": "więcej", + "$noDataToDisplay": "Brak danych do wyświetlenia", + "$page": "Strona", + "$aboutThisSection": "O tej sekcji", + "$moreInformation": "O obiekcie", + "$selectAll": "Zaznacz wszystko", + "$selectPagesForDownload": "Wybierz strony do pobrania", + "$first": "Pierwsza", + "$firstImage": "Pierwszy obraz", + "$firstPage": "Pierwsza strona", + "$folio": "Folio", + "$gallery": "Galeria", + "$go": "Idź", + "$image": "Obraz", + "$last": "Ostatnia", + "$lastImage": "Ostatni obraz", + "$lastPage": "Ostatnia strona", + "$next": "Następna", + "$nextImage": "Następny obraz", + "$nextPage": "Następna strona", + "$of": "z {0}", + "$singlePageView": "Widok pojedynczej strony", + "$searchByPageNumber": "Szukaj według numeru strony", + "$previous": "Poprzednia", + "$previousImage": "Poprzedni obraz", + "$previousPage": "Poprzednia stron", + "$settings": "Ustawienia", + "$twoPageView": "Widok dwóch stro", + "$goHome": "Zobacz całą stronę", + "$imageUnavailable": "Obraz niedostępny", + "$rotateRight": "Obróć w prawo", + "$zoomIn": "Przybliż", + "$zoomOut": "Oddal", + "$adjustImage": "Dostosuj obraz", + "$clearSearch": "Wyczyść", + "$displaying_A_of_B": "{0} {1} z {2}", + "$enterKeyword": "Wprowadź słowo kluczowe", + "$imageLowercase": "obraz", + "$instanceFound": "Znaleziono 1 wystąpienie '{0}'", + "$instancesFound": "Znalezione wystąpienia '{1}': {0}", + "$nextResult": "Następny wynik", + "$pageLowercase": "strona", + "$previousResult": "Poprzedni wynik", + "$print": "Drukuj", + "$resultFoundFor": "wynik dla", + "$resultsFoundFor": "wyniki/wyników dla", + "$searchWithinItem": "Wyszukaj w tym obiekcie:", + "$locale": "Język", + "$navigatorEnabled": "Włączona nawigacja", + "$clickToZoomEnabled": "Przybliżenie przez kliknięcie myszą", + "$reducedMotion": "Zmniejsz ruch (wyłącza animacje)", + "$preserveViewport": "Zachowanie przybliżenia", + "$uvWebsite": "więcej informacji", + "$custom": "Ustawienia", + "$embedInstructions": "Aby osadzić ten obiekt na własnej witrynie, skopiuj i wklej poniższy kod.", + "$height": "Wysokość", + "$iiifManifest": "Manifest IIIF", + "$shareInstructions": "Aby udostępnić ten obiekt, skopiuj poniższy adres URL.", + "$size": "Rozmiar:", + "$width": "Szerokość", + "$cancel": "Anuluj", + "$confirm": "Potwierdź", + "$viewTerms": "Przeczytaj pełny Regulamin", + "$login": "Zaloguj się", + "$log_in": "Zaloguj się", + "$logout": "Wyloguj", + "$authCORSError": "Twoja przeglądarka nie obsługuje CORS. Zaktualizuj ją, aby wyświetlić tę zawartość.", + "$authorisationFailedMessage": "Twoja próba logowania nie powidła się. Proszę spróbuj ponownie.", + "$canvasIndexOutOfRange": "Numer kanwy poza zakresem", + "$fallbackDegradedLabel": "Zaloguj się", + "$fallbackDegradedMessage": "Zaloguj się, aby zobaczyć tę treść w pełnej rozdzielczości.", + "$forbiddenResourceMessage": "Twoje obecne prawa dostępu są niewystarczające, aby wyświetlić ten obraz", + "$mediaViewer": "Przeglądarka multimediów", + "$skipToDownload": "Przejdź do pobierania i alternatywnych formatów", + "$pleaseEnterValue": "proszę wprowadzić wartość", + "$pleaseLogInToViewAtFullQuality": "Zaloguj się, aby oglądać w pełnej jakości.", + "$vr": "VR", + "$currentTime": "Obecny czas", + "$duration": "Czas trwania", + "$mute": "Wycisz", + "$pause": "Pauza", + "$play": "Odtwarzaj" } diff --git a/src/locales/sv-SE.json b/src/locales/sv-SE.json index 602f297b3..73f124d5a 100644 --- a/src/locales/sv-SE.json +++ b/src/locales/sv-SE.json @@ -1,148 +1,154 @@ { - "$collapse": "Fäll ihop innehåll", - "$collapseFull": "Fäll ihop galleri", - "$date": "datum", - "$expandContents": "Expandera innehåll", - "$expandGallery": "Expandera galleri", - "$index": "Index", - "$manifestRanges": "Manifest-omfång", - "$searchResult": "{0} sökträffar", - "$searchResults": "{0} sökträffar", - "$sortBy": "Sortera efter:", - "$thumbnails": "Småbilder", - "$contents": "Innehåll", - "$volume": "volym", - "$close": "Stäng", - "$allPages": "Alla sidor", - "$currentViewAsJpg": "Aktuell vy {0} x {1}px (jpg)", - "$openNewWindow": "Öppnas i nytt fönster", - "$download": "Ladda ner", - "$downloadSelection": "Ladda ner valt område", - "$downloadSelectionExplanation": "Öppnar dialog där du får välja sidor att ladda ner.", - "$editSettings": "Ändra inställningar", - "$entireDocument": "Hela dokumentet ({0})", - "$entireFileX": "Hela filen ({0})", - "$entireFile": "Hela filen", - "$individualPages": "Enskilda sidor", - "$noDownloadOptionsAvailable": "Inga nedladdningsalternativ är tillgängliga.", - "$pagingNote": "Stäng dubbelsidig vy för fler alternativ", - "$preview": "Förhandsgranska", - "$selection": "Urval", - "$termsOfUse": "Användningsvillkor", - "$wholeImageHighRes": "Hela bilden {0} x {1}px ({2})", - "$wholeImageHighResExplanation": "Öppnas i nytt fönster.", - "$wholeImageLowResAsJpg": "Hela bilden {0} x {1}px (jpg)", - "$wholeImageLowResAsJpgExplanation": "Öppnas i nytt fönster.", - "$wholeImagesHighRes": "Hela bilder ({0}", - "$wholeImagesHighResExplanation": "Öppnas i två nya fönster.", - "$add_to_bookmarks": "Lägg till bokmärke", - "$embed": "Bädda in", - "$exitFullScreen": "Avsluta helskärm", - "$feedback": "Feedback", - "$fullScreen": "Helskärm", - "$moreInfo": "Mer information", - "$open": "Öppna", - "$share": "Dela", - "$emptyValue": "ange ett värde.", - "$invalidNumber": "Ange ett giltigt nummer.", - "$noMatches": "Inga träffar hittades.", - "$ok": "OK", - "$pageNotFound": "Detta objekt har ingen sida med det nummer du angett. Testa att byta numreringsläge till 'bild'.", - "$refresh": "Uppdatera", - "$placeholder_text": "platshållartext", - "$help": "Hjälp", - "$attribution": "Upphov", - "$aboutTheImage": "Om bilden", - "$collapseInformation": "Fäll ihop information", - "$collapseGallery": "Fäll ihop galleri", - "$copiedToClipboard": "Kopierade till urklipp", - "$copyToClipboard": "Kopiera till urklipp", - "$description": "Beskrivning", - "$expandInformation": "Expandera information", - "$moduleGoesHere": "Plats för din modul!", - "$less": "mindre", - "$license": "Licensvillkor", - "$logo": "Logotyp", - "$aboutTheItem": "Om objektet", - "$more": "mer", - "$noDataToDisplay": "Ingen information att vis", - "$page": "Sida", - "$aboutThisSection": "Om detta avsnitt", - "$moreInformation": "Mer information", - "$selectAll": "Markera alla", - "$selectPagesForDownload": "Välj sidor att ladda ner", - "$first": "Första", - "$firstImage": "Första bild", - "$firstPage": "Första sidan", - "$folio": "Folio", - "$gallery": "Galleri", - "$go": "Gå", - "$image": "Bild", - "$last": "Sista", - "$lastImage": "Sista bilden", - "$lastPage": "Sista sidan", - "$next": "Nästa", - "$nextImage": "Nästa bild", - "$nextPage": "Nästa sida", - "$of": "av {0}", - "$singlePageView": "Enkelsidig vy", - "$searchByPageNumber": "Sök med sidnummer", - "$previous": "Föregående", - "$previousImage": "Föregående bild", - "$previousPage": "Föregående bild", - "$settings": "Inställningar", - "$twoPageView": "Dubbelsidig vy", - "$goHome": "Visa hela sidan", - "$imageUnavailable": "Bild ej tillgänglig", - "$rotateRight": "Rotera höger", - "$zoomIn": "Zooma in", - "$zoomOut": "Zooma ut", - "$clearSearch": "Rensa sökning", - "$displaying_A_of_B": "{0} {1} av {2}", - "$enterKeyword": "Ange sökord", - "$imageLowercase": "bild", - "$instanceFound": "1 instans av '{0}' hittades", - "$instancesFound": "{0} instanser av '{1}' hittades", - "$nextResult": "Nästa träff", - "$pageLowercase": "sida", - "$previousResult": "Föregående träff", - "$print": "Skriv ut", - "$resultFoundFor": "träff hittades för", - "$resultsFoundFor": "träffar hittades fö", - "$searchWithinItem": "Sök inom detta objekt:", - "$locale": "Språk", - "$navigatorEnabled": "Visa minivy", - "$clickToZoomEnabled": "Zooma med musklick", - "$reducedMotion": "Minska rörelse (inaktiverar animationer)", - "$preserveViewport": "Behåll zoomnivå", - "$uvWebsite": "mer info", - "$custom": "Anpassad", - "$embedInstructions": "För att bädda in det här objektet i din egen webbplats, kopiera och klistra koden nedan.", - "$height": "Höjd", - "$iiifManifest": "IIIF Manifest", - "$shareInstructions": "Kopiera länken nedan för att dela det här objektet.", - "$size": "Storlek:", - "$width": "Bredd", - "$cancel": "Avbryt", - "$confirm": "Bekräfta", - "$viewTerms": "Läs fullständiga villkor", - "$login": "Logga in", - "$log_in": "Logga in", - "$logout": "Logga ut", - "$authCORSError": "Din webbläsare stöder inte CORS. Uppgradera den för att kunna se detta innehåll.", - "$authorisationFailedMessage": "Din inloggning misslyckades. Vänligen försök igen.", - "$canvasIndexOutOfRange": "Canvas-index ogiltigt.", - "$fallbackDegradedLabel": "Logga in", - "$fallbackDegradedMessage": "Logga in för att se bilden i bästa kvalitet.", - "$forbiddenResourceMessage": "Du har inte behörighet att se den här bilden", - "$mediaViewer": "Media Viewer", - "$skipToDownload": "Hoppa till nedladdningar och alternativa format", - "$pleaseEnterValue": "var god ange ett värde", - "$pleaseLogInToViewAtFullQuality": "Logga in för att se i full kvalitet", - "$vr": "VR", - "$currentTime": "Aktuell tid", - "$duration": "Speltid", - "$mute": "Tyst", - "$pause": "Paus", - "$play": "Spela" + "$collapse": "Fäll ihop innehåll", + "$collapseFull": "Fäll ihop galleri", + "$date": "datum", + "$expandContents": "Expandera innehåll", + "$expandGallery": "Expandera galleri", + "$index": "Index", + "$manifestRanges": "Manifest-omfång", + "$searchResult": "{0} sökträffar", + "$searchResults": "{0} sökträffar", + "$sortBy": "Sortera efter:", + "$thumbnails": "Småbilder", + "$contents": "Innehåll", + "$volume": "volym", + "$close": "Stäng", + "$allPages": "Alla sidor", + "$currentViewAsJpg": "Aktuell vy {0} x {1}px (jpg)", + "$openNewWindow": "Öppnas i nytt fönster", + "$download": "Ladda ner", + "$downloadSelection": "Ladda ner valt område", + "$downloadSelectionExplanation": "Öppnar dialog där du får välja sidor att ladda ner.", + "$editSettings": "Ändra inställningar", + "$entireDocument": "Hela dokumentet ({0})", + "$entireFileX": "Hela filen ({0})", + "$entireFile": "Hela filen", + "$individualPages": "Enskilda sidor", + "$noDownloadOptionsAvailable": "Inga nedladdningsalternativ är tillgängliga.", + "$pagingNote": "Stäng dubbelsidig vy för fler alternativ", + "$preview": "Förhandsgranska", + "$selection": "Urval", + "$termsOfUse": "Användningsvillkor", + "$wholeImageHighRes": "Hela bilden {0} x {1}px ({2})", + "$wholeImageHighResExplanation": "Öppnas i nytt fönster.", + "$wholeImageLowResAsJpg": "Hela bilden {0} x {1}px (jpg)", + "$wholeImageLowResAsJpgExplanation": "Öppnas i nytt fönster.", + "$wholeImagesHighRes": "Hela bilder ({0}", + "$wholeImagesHighResExplanation": "Öppnas i två nya fönster.", + "$add_to_bookmarks": "Lägg till bokmärke", + "$embed": "Bädda in", + "$exitFullScreen": "Avsluta helskärm", + "$feedback": "Feedback", + "$fullScreen": "Helskärm", + "$moreInfo": "Mer information", + "$open": "Öppna", + "$share": "Dela", + "$emptyValue": "ange ett värde.", + "$invalidNumber": "Ange ett giltigt nummer.", + "$noMatches": "Inga träffar hittades.", + "$ok": "OK", + "$pageNotFound": "Detta objekt har ingen sida med det nummer du angett. Testa att byta numreringsläge till 'bild'.", + "$refresh": "Uppdatera", + "$placeholder_text": "platshållartext", + "$help": "Hjälp", + "$attribution": "Upphov", + "$aboutTheImage": "Om bilden", + "$collapseInformation": "Fäll ihop information", + "$collapseGallery": "Fäll ihop galleri", + "$copiedToClipboard": "Kopierade till urklipp", + "$copyToClipboard": "Kopiera till urklipp", + "$description": "Beskrivning", + "$expandInformation": "Expandera information", + "$moduleGoesHere": "Plats för din modul!", + "$less": "mindre", + "$license": "Licensvillkor", + "$logo": "Logotyp", + "$aboutTheItem": "Om objektet", + "$more": "mer", + "$noDataToDisplay": "Ingen information att vis", + "$page": "Sida", + "$aboutThisSection": "Om detta avsnitt", + "$moreInformation": "Mer information", + "$selectAll": "Markera alla", + "$selectPagesForDownload": "Välj sidor att ladda ner", + "$first": "Första", + "$firstImage": "Första bild", + "$firstPage": "Första sidan", + "$folio": "Folio", + "$gallery": "Galleri", + "$go": "Gå", + "$image": "Bild", + "$last": "Sista", + "$lastImage": "Sista bilden", + "$lastPage": "Sista sidan", + "$next": "Nästa", + "$nextImage": "Nästa bild", + "$nextPage": "Nästa sida", + "$of": "av {0}", + "$singlePageView": "Enkelsidig vy", + "$searchByPageNumber": "Sök med sidnummer", + "$previous": "Föregående", + "$previousImage": "Föregående bild", + "$previousPage": "Föregående bild", + "$settings": "Inställningar", + "$twoPageView": "Dubbelsidig vy", + "$goHome": "Visa hela sidan", + "$imageUnavailable": "Bild ej tillgänglig", + "$rotateRight": "Rotera höger", + "$zoomIn": "Zooma in", + "$zoomOut": "Zooma ut", + "$adjustImage": "Justera bild", + "$clearSearch": "Rensa sökning", + "$displaying_A_of_B": "{0} {1} av {2}", + "$enterKeyword": "Ange sökord", + "$imageLowercase": "bild", + "$instanceFound": "1 instans av '{0}' hittades", + "$instancesFound": "{0} instanser av '{1}' hittades", + "$nextResult": "Nästa träff", + "$pageLowercase": "sida", + "$previousResult": "Föregående träff", + "$print": "Skriv ut", + "$resultFoundFor": "träff hittades för", + "$resultsFoundFor": "träffar hittades fö", + "$searchWithinItem": "Sök inom detta objekt:", + "$locale": "Språk", + "$navigatorEnabled": "Visa minivy", + "$clickToZoomEnabled": "Zooma med musklick", + "$reducedMotion": "Minska rörelse (inaktiverar animationer)", + "$preserveViewport": "Behåll zoomnivå", + "$uvWebsite": "mer info", + "$custom": "Anpassad", + "$embedInstructions": "För att bädda in det här objektet i din egen webbplats, kopiera och klistra koden nedan.", + "$height": "Höjd", + "$iiifManifest": "IIIF Manifest", + "$shareInstructions": "Kopiera länken nedan för att dela det här objektet.", + "$size": "Storlek:", + "$width": "Bredd", + "$cancel": "Avbryt", + "$confirm": "Bekräfta", + "$viewTerms": "Läs fullständiga villkor", + "$login": "Logga in", + "$log_in": "Logga in", + "$logout": "Logga ut", + "$authCORSError": "Din webbläsare stöder inte CORS. Uppgradera den för att kunna se detta innehåll.", + "$authorisationFailedMessage": "Din inloggning misslyckades. Vänligen försök igen.", + "$canvasIndexOutOfRange": "Canvas-index ogiltigt.", + "$fallbackDegradedLabel": "Logga in", + "$fallbackDegradedMessage": "Logga in för att se bilden i bästa kvalitet.", + "$forbiddenResourceMessage": "Du har inte behörighet att se den här bilden", + "$mediaViewer": "Media Viewer", + "$skipToDownload": "Hoppa till nedladdningar och alternativa format", + "$pleaseEnterValue": "var god ange ett värde", + "$pleaseLogInToViewAtFullQuality": "Logga in för att se i full kvalitet", + "$vr": "VR", + "$currentTime": "Aktuell tid", + "$duration": "Speltid", + "$mute": "Tyst", + "$pause": "Paus", + "$play": "Spela", + "$brightness": "Ljusstyrka", + "$contrast": "Kontrast", + "$saturation": "Färgmättnad", + "$reset": "Återställ", + "$remember": "Kom ihåg mina inställningar" } diff --git a/src/uv-iiif-config.json b/src/uv-iiif-config.json index afadc0c1a..c8b92750a 100644 --- a/src/uv-iiif-config.json +++ b/src/uv-iiif-config.json @@ -8,7 +8,8 @@ "overrideFullScreen": false, "pagingEnabled": true, "rightPanelEnabled": true, - "clickToZoomEnabled": false + "clickToZoomEnabled": false, + "saveUserSettings": true }, "modules": { "avCenterPanel": { @@ -33,7 +34,9 @@ }, "openSeadragonCenterPanel": { "options": { - "autoHideControls": false + "autoHideControls": false, + "showHomeControl": true, + "showAdjustImageControl": true } }, "footerPanel": {