mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Externalize strings in detail page
This commit is contained in:
@ -19,6 +19,7 @@ type alias Texts =
|
||||
, ok : String
|
||||
, yes : String
|
||||
, no : String
|
||||
, chooseTag : String
|
||||
}
|
||||
|
||||
|
||||
@ -41,6 +42,7 @@ gb =
|
||||
, ok = "Ok"
|
||||
, yes = "Yes"
|
||||
, no = "No"
|
||||
, chooseTag = "Choose a tag…"
|
||||
}
|
||||
|
||||
|
||||
|
29
modules/webapp/src/main/elm/Messages/DetailEditComp.elm
Normal file
29
modules/webapp/src/main/elm/Messages/DetailEditComp.elm
Normal file
@ -0,0 +1,29 @@
|
||||
module Messages.DetailEditComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
import Messages.CustomFieldFormComp
|
||||
import Messages.EquipmentFormComp
|
||||
import Messages.OrgFormComp
|
||||
import Messages.PersonFormComp
|
||||
import Messages.TagFormComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, tagForm : Messages.TagFormComp.Texts
|
||||
, personForm : Messages.PersonFormComp.Texts
|
||||
, orgForm : Messages.OrgFormComp.Texts
|
||||
, equipmentForm : Messages.EquipmentFormComp.Texts
|
||||
, customFieldForm : Messages.CustomFieldFormComp.Texts
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, tagForm = Messages.TagFormComp.gb
|
||||
, personForm = Messages.PersonFormComp.gb
|
||||
, orgForm = Messages.OrgFormComp.gb
|
||||
, equipmentForm = Messages.EquipmentFormComp.gb
|
||||
, customFieldForm = Messages.CustomFieldFormComp.gb
|
||||
}
|
65
modules/webapp/src/main/elm/Messages/EditFormComp.elm
Normal file
65
modules/webapp/src/main/elm/Messages/EditFormComp.elm
Normal file
@ -0,0 +1,65 @@
|
||||
module Messages.EditFormComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, createNewCustomField : String
|
||||
, chooseDirection : String
|
||||
, selectPlaceholder : String
|
||||
, nameTab : String
|
||||
, dateTab : String
|
||||
, folderTab : String
|
||||
, folderNotOwnerWarning : String
|
||||
, customFieldsTab : String
|
||||
, dueDateTab : String
|
||||
, correspondentTab : String
|
||||
, organization : String
|
||||
, addNewOrg : String
|
||||
, editOrg : String
|
||||
, chooseOrg : String
|
||||
, addNewCorrespondentPerson : String
|
||||
, editPerson : String
|
||||
, personOrgInfo : String
|
||||
, concerningTab : String
|
||||
, addNewConcerningPerson : String
|
||||
, addNewEquipment : String
|
||||
, editEquipment : String
|
||||
, directionTab : String
|
||||
, suggestions : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, createNewCustomField = "Create new custom field"
|
||||
, chooseDirection = "Choose a direction…"
|
||||
, selectPlaceholder = "Select…"
|
||||
, nameTab = "Name"
|
||||
, dateTab = "Date"
|
||||
, folderTab = "Folder"
|
||||
, folderNotOwnerWarning =
|
||||
"""
|
||||
You are **not a member** of this folder. This item will be **hidden**
|
||||
from any search now. Use a folder where you are a member of to make this
|
||||
item visible. This message will disappear then.
|
||||
"""
|
||||
, customFieldsTab = "Custom Fields"
|
||||
, dueDateTab = "Due Date"
|
||||
, correspondentTab = "Correspondent"
|
||||
, organization = "Organization"
|
||||
, addNewOrg = "Add new organization"
|
||||
, editOrg = "Edit organization"
|
||||
, chooseOrg = "Choose an organization"
|
||||
, addNewCorrespondentPerson = "Add new correspondent person"
|
||||
, editPerson = "Edit person"
|
||||
, personOrgInfo = "The selected person doesn't belong to the selected organization."
|
||||
, concerningTab = "Concerning"
|
||||
, addNewConcerningPerson = "Add new concerning person"
|
||||
, addNewEquipment = "Add new equipment"
|
||||
, editEquipment = "Edit equipment"
|
||||
, directionTab = "Direction"
|
||||
, suggestions = "Suggestions"
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
module Messages.FixedDropdown exposing
|
||||
( Texts
|
||||
, de
|
||||
, gb
|
||||
)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ select : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ select = "Select…"
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
{ select = "Auswahl…"
|
||||
}
|
@ -1,12 +1,27 @@
|
||||
module Messages.ItemDetail.AddFilesForm exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
import Messages.DropzoneComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ dropzone : Messages.DropzoneComp.Texts }
|
||||
{ dropzone : Messages.DropzoneComp.Texts
|
||||
, basics : Messages.Basics.Texts
|
||||
, addMoreFilesToItem : String
|
||||
, reset : String
|
||||
, filesSubmittedInfo : String
|
||||
, refreshNow : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ dropzone = Messages.DropzoneComp.gb }
|
||||
{ dropzone = Messages.DropzoneComp.gb
|
||||
, basics = Messages.Basics.gb
|
||||
, addMoreFilesToItem = "Add more files to this item"
|
||||
, reset = "Reset"
|
||||
, filesSubmittedInfo =
|
||||
"All files have been uploaded. They are being processed, some data "
|
||||
++ "may not be available immediately. "
|
||||
, refreshNow = "Refresh now"
|
||||
}
|
||||
|
@ -1,14 +1,64 @@
|
||||
module Messages.ItemDetailComp exposing (..)
|
||||
|
||||
import Messages.DetailEditComp
|
||||
import Messages.ItemDetail.AddFilesForm
|
||||
import Messages.ItemInfoHeaderComp
|
||||
import Messages.ItemMailComp
|
||||
import Messages.NotesComp
|
||||
import Messages.SentMailsComp
|
||||
import Messages.SingleAttachmentComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ addFilesForm : Messages.ItemDetail.AddFilesForm.Texts
|
||||
, itemInfoHeader : Messages.ItemInfoHeaderComp.Texts
|
||||
, singleAttachment : Messages.SingleAttachmentComp.Texts
|
||||
, sentMails : Messages.SentMailsComp.Texts
|
||||
, notes : Messages.NotesComp.Texts
|
||||
, itemMail : Messages.ItemMailComp.Texts
|
||||
, detailEdit : Messages.DetailEditComp.Texts
|
||||
, key : String
|
||||
, backToSearchResults : String
|
||||
, previousItem : String
|
||||
, nextItem : String
|
||||
, sendMail : String
|
||||
, addMoreFiles : String
|
||||
, confirmItemMetadata : String
|
||||
, confirm : String
|
||||
, unconfirmItemMetadata : String
|
||||
, reprocessItem : String
|
||||
, deleteThisItem : String
|
||||
, sentEmails : String
|
||||
, sendThisItemViaEmail : String
|
||||
, itemId : String
|
||||
, createdOn : String
|
||||
, lastUpdateOn : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ addFilesForm = Messages.ItemDetail.AddFilesForm.gb
|
||||
, itemInfoHeader = Messages.ItemInfoHeaderComp.gb
|
||||
, singleAttachment = Messages.SingleAttachmentComp.gb
|
||||
, sentMails = Messages.SentMailsComp.gb
|
||||
, notes = Messages.NotesComp.gb
|
||||
, itemMail = Messages.ItemMailComp.gb
|
||||
, detailEdit = Messages.DetailEditComp.gb
|
||||
, key = "Key"
|
||||
, backToSearchResults = "Back to search results"
|
||||
, previousItem = "Previous item."
|
||||
, nextItem = "Next item."
|
||||
, sendMail = "Send Mail"
|
||||
, addMoreFiles = "Add more files to this item"
|
||||
, confirmItemMetadata = "Confirm item metadata"
|
||||
, confirm = "Confirm"
|
||||
, unconfirmItemMetadata = "Un-confirm item metadata"
|
||||
, reprocessItem = "Reprocess this item"
|
||||
, deleteThisItem = "Delete this item"
|
||||
, sentEmails = "Sent E-Mails"
|
||||
, sendThisItemViaEmail = "Send this item via E-Mail"
|
||||
, itemId = "Item ID"
|
||||
, createdOn = "Created on"
|
||||
, lastUpdateOn = "Last update on"
|
||||
}
|
||||
|
@ -1,18 +1,23 @@
|
||||
module Messages.ItemDetailPage exposing (..)
|
||||
|
||||
import Messages.EditFormComp
|
||||
import Messages.ItemDetailComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ itemDetail : Messages.ItemDetailComp.Texts
|
||||
, editForm : Messages.EditFormComp.Texts
|
||||
, editMetadata : String
|
||||
, collapseExpand : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ itemDetail = Messages.ItemDetailComp.gb
|
||||
, editForm = Messages.EditFormComp.gb
|
||||
, editMetadata = "Edit Metadata"
|
||||
, collapseExpand = "Collapse/Expand"
|
||||
}
|
||||
|
||||
|
||||
|
24
modules/webapp/src/main/elm/Messages/ItemInfoHeaderComp.elm
Normal file
24
modules/webapp/src/main/elm/Messages/ItemInfoHeaderComp.elm
Normal file
@ -0,0 +1,24 @@
|
||||
module Messages.ItemInfoHeaderComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ itemDate : String
|
||||
, dueDate : String
|
||||
, correspondent : String
|
||||
, concerning : String
|
||||
, folder : String
|
||||
, source : String
|
||||
, new : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ itemDate = "Item Date"
|
||||
, dueDate = "Due Date"
|
||||
, correspondent = "Correspondent"
|
||||
, concerning = "Concerning"
|
||||
, folder = "Folder"
|
||||
, source = "Source"
|
||||
, new = "New"
|
||||
}
|
30
modules/webapp/src/main/elm/Messages/ItemMailComp.elm
Normal file
30
modules/webapp/src/main/elm/Messages/ItemMailComp.elm
Normal file
@ -0,0 +1,30 @@
|
||||
module Messages.ItemMailComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, selectConnection : String
|
||||
, sendVia : String
|
||||
, recipients : String
|
||||
, ccRecipients : String
|
||||
, bccRecipients : String
|
||||
, subject : String
|
||||
, body : String
|
||||
, includeAllAttachments : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, selectConnection = "Select connection..."
|
||||
, sendVia = "Send via"
|
||||
, recipients = "Recipient(s)"
|
||||
, ccRecipients = "CC recipient(s)"
|
||||
, bccRecipients = "BCC recipient(s)..."
|
||||
, subject = "Subject"
|
||||
, body = "Body"
|
||||
, includeAllAttachments = "Include all item attachments"
|
||||
}
|
20
modules/webapp/src/main/elm/Messages/NotesComp.elm
Normal file
20
modules/webapp/src/main/elm/Messages/NotesComp.elm
Normal file
@ -0,0 +1,20 @@
|
||||
module Messages.NotesComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, notes : String
|
||||
, preview : String
|
||||
, supportsMarkdown : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, notes = "Notes"
|
||||
, preview = "Preview"
|
||||
, supportsMarkdown = "Supports Markdown"
|
||||
}
|
22
modules/webapp/src/main/elm/Messages/SentMailsComp.elm
Normal file
22
modules/webapp/src/main/elm/Messages/SentMailsComp.elm
Normal file
@ -0,0 +1,22 @@
|
||||
module Messages.SentMailsComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ from : String
|
||||
, date : String
|
||||
, recipients : String
|
||||
, subject : String
|
||||
, sent : String
|
||||
, sender : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ from = "From"
|
||||
, date = "Date"
|
||||
, recipients = "Recipients"
|
||||
, subject = "Subject"
|
||||
, sent = "Sent"
|
||||
, sender = "Sender"
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
module Messages.SingleAttachmentComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ noName : String
|
||||
, openFileInNewTab : String
|
||||
, downloadFile : String
|
||||
, renameFile : String
|
||||
, downloadOriginalArchiveFile : String
|
||||
, originalFile : String
|
||||
, renderPdfByBrowser : String
|
||||
, viewExtractedData : String
|
||||
, reprocessFile : String
|
||||
, deleteThisFile : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ noName = "No name"
|
||||
, openFileInNewTab = "Open file in new tab"
|
||||
, downloadFile = "Download file"
|
||||
, renameFile = "Rename file"
|
||||
, downloadOriginalArchiveFile = "Download original archive"
|
||||
, originalFile = "Original file"
|
||||
, renderPdfByBrowser = "Render pdf by browser"
|
||||
, viewExtractedData = "View extracted data"
|
||||
, reprocessFile = "Re-process this file"
|
||||
, deleteThisFile = "Delete this file"
|
||||
}
|
Reference in New Issue
Block a user