Detect how to display pdf files

Closes: #1099
This commit is contained in:
eikek
2021-10-06 23:20:16 +02:00
parent b6187bb88d
commit f216c472ee
15 changed files with 217 additions and 87 deletions

View File

@ -0,0 +1,39 @@
{-
Copyright 2020 Eike K. & Contributors
SPDX-License-Identifier: AGPL-3.0-or-later
-}
module Messages.Data.PdfMode exposing
( de
, gb
)
import Data.Pdf exposing (PdfMode(..))
gb : PdfMode -> String
gb st =
case st of
Detect ->
"Detect automatically"
Native ->
"Use the browser's native PDF view"
Server ->
"Use cross-browser fallback"
de : PdfMode -> String
de st =
case st of
Detect ->
"Automatisch ermitteln"
Native ->
"Browsernative Darstellung"
Server ->
"Browserübergreifende Ersatzdarstellung"