mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Externalize strings in other of components
This commit is contained in:
@ -52,7 +52,7 @@ view2 texts flags settings model =
|
||||
formTabs texts flags settings model
|
||||
|
||||
allTabNames =
|
||||
List.map .title tabs
|
||||
List.map .name tabs
|
||||
|> Set.fromList
|
||||
in
|
||||
div (class "flex flex-col relative" :: keyAttr)
|
||||
@ -127,7 +127,7 @@ formTabs texts flags settings model =
|
||||
|
||||
folderCfg =
|
||||
{ makeOption = Util.Folder.mkFolderOption flags model.allFolders
|
||||
, placeholder = ""
|
||||
, placeholder = texts.selectPlaceholder
|
||||
, labelColor = \_ -> \_ -> ""
|
||||
, style = dds
|
||||
}
|
||||
@ -254,6 +254,7 @@ formTabs texts flags settings model =
|
||||
[ div [ class "mb-4" ]
|
||||
[ Html.map CustomFieldMsg
|
||||
(Comp.CustomFieldMultiInput.view2
|
||||
texts.customFieldInput
|
||||
customFieldSettings
|
||||
model.customFieldsModel
|
||||
)
|
||||
|
@ -39,7 +39,7 @@ import Html.Attributes exposing (..)
|
||||
import Html.Events exposing (onClick, onInput)
|
||||
import Http
|
||||
import Markdown
|
||||
import Messages.MultiEditComp exposing (Texts)
|
||||
import Messages.MultiEditMenuComp exposing (Texts)
|
||||
import Page exposing (Page(..))
|
||||
import Set exposing (Set)
|
||||
import Styles as S
|
||||
@ -775,6 +775,7 @@ renderEditForm2 texts flags cfg settings model =
|
||||
, body =
|
||||
[ Html.map CustomFieldMsg
|
||||
(Comp.CustomFieldMultiInput.view2
|
||||
texts.customFieldMultiInput
|
||||
customFieldSettings
|
||||
model.customFieldModel
|
||||
)
|
||||
|
@ -52,6 +52,7 @@ view texts settings model pos attach =
|
||||
Just am ->
|
||||
Html.map (AttachMetaMsg attach.id)
|
||||
(Comp.AttachmentMeta.view2
|
||||
texts.attachmentMeta
|
||||
[ class "border-r border-l border-b dark:border-bluegray-600 px-2" ]
|
||||
am
|
||||
)
|
||||
|
@ -250,7 +250,10 @@ sendMailForm texts settings model =
|
||||
[ div [ class "text-lg font-bold" ]
|
||||
[ text texts.sendThisItemViaEmail
|
||||
]
|
||||
, B.loadingDimmer model.mailSending
|
||||
, B.loadingDimmer
|
||||
{ active = model.mailSending
|
||||
, label = texts.sendingMailNow
|
||||
}
|
||||
, Html.map ItemMailMsg (Comp.ItemMail.view2 texts.itemMail settings model.itemMail)
|
||||
, div
|
||||
[ classList
|
||||
|
Reference in New Issue
Block a user