mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Externalize strings in upload page
This commit is contained in:
20
modules/webapp/src/main/elm/Messages/DropzoneComp.elm
Normal file
20
modules/webapp/src/main/elm/Messages/DropzoneComp.elm
Normal file
@ -0,0 +1,20 @@
|
||||
module Messages.DropzoneComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ dropFilesHere : String
|
||||
, or : String
|
||||
, select : String
|
||||
, selectInfo : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ dropFilesHere = "Drop files here"
|
||||
, or = "Or"
|
||||
, select = "Select ..."
|
||||
, selectInfo =
|
||||
"Choose document files (pdf, docx, txt, html, …). "
|
||||
++ "Archives (zip and eml) are extracted."
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
module Messages.ItemDetail.AddFilesForm exposing (..)
|
||||
|
||||
import Messages.DropzoneComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ dropzone : Messages.DropzoneComp.Texts }
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ dropzone = Messages.DropzoneComp.gb }
|
14
modules/webapp/src/main/elm/Messages/ItemDetailComp.elm
Normal file
14
modules/webapp/src/main/elm/Messages/ItemDetailComp.elm
Normal file
@ -0,0 +1,14 @@
|
||||
module Messages.ItemDetailComp exposing (..)
|
||||
|
||||
import Messages.ItemDetail.AddFilesForm
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ addFilesForm : Messages.ItemDetail.AddFilesForm.Texts
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ addFilesForm = Messages.ItemDetail.AddFilesForm.gb
|
||||
}
|
21
modules/webapp/src/main/elm/Messages/ItemDetailPage.elm
Normal file
21
modules/webapp/src/main/elm/Messages/ItemDetailPage.elm
Normal file
@ -0,0 +1,21 @@
|
||||
module Messages.ItemDetailPage exposing (..)
|
||||
|
||||
import Messages.ItemDetailComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ itemDetail : Messages.ItemDetailComp.Texts
|
||||
, editMetadata : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ itemDetail = Messages.ItemDetailComp.gb
|
||||
, editMetadata = "Edit Metadata"
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
gb
|
@ -31,3 +31,8 @@ gb =
|
||||
Creating an invite requires providing the password
|
||||
from the configuration."""
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
gb
|
||||
|
62
modules/webapp/src/main/elm/Messages/UploadPage.elm
Normal file
62
modules/webapp/src/main/elm/Messages/UploadPage.elm
Normal file
@ -0,0 +1,62 @@
|
||||
module Messages.UploadPage exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
import Messages.DropzoneComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, dropzone : Messages.DropzoneComp.Texts
|
||||
, reset : String
|
||||
, allFilesOneItem : String
|
||||
, skipExistingFiles : String
|
||||
, language : String
|
||||
, languageInfo : String
|
||||
, uploadErrorMessage : String
|
||||
, successBox :
|
||||
{ allFilesUploaded : String
|
||||
, line1 : String
|
||||
, itemsPage : String
|
||||
, line2 : String
|
||||
, processingPage : String
|
||||
, line3 : String
|
||||
, resetLine1 : String
|
||||
, reset : String
|
||||
, resetLine2 : String
|
||||
}
|
||||
, selectedFiles : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, dropzone = Messages.DropzoneComp.gb
|
||||
, reset = "Reset"
|
||||
, allFilesOneItem = "All files are one single item"
|
||||
, skipExistingFiles = "Skip files already present in docspell"
|
||||
, language = "Language"
|
||||
, languageInfo =
|
||||
"Used for text extraction and analysis. The collective's "
|
||||
++ "default language is used if not specified here."
|
||||
, uploadErrorMessage = "There were errors uploading some files."
|
||||
, successBox =
|
||||
{ allFilesUploaded = "All files uploaded"
|
||||
, line1 =
|
||||
"Your files have been successfully uploaded. "
|
||||
++ "They are now being processed. Check the "
|
||||
, itemsPage = "Items Page"
|
||||
, line2 = " later where the files will arrive eventually. Or go to the "
|
||||
, processingPage = "Processing Page"
|
||||
, line3 = " to view the current processing state."
|
||||
, resetLine1 = " Click "
|
||||
, reset = "Reset"
|
||||
, resetLine2 = " to upload more files."
|
||||
}
|
||||
, selectedFiles = "Selected Files"
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
gb
|
Reference in New Issue
Block a user