Externalize more strings missed before

This commit is contained in:
Eike Kettner
2021-04-10 16:02:34 +02:00
parent e063a10663
commit 92ae22a68d
52 changed files with 219 additions and 253 deletions

View File

@ -204,7 +204,7 @@ view2 texts cfg settings model item =
, metaDataContent2 texts settings item
, notesContent2 settings item
, fulltextResultsContent2 item
, previewMenu2 settings model item (currentAttachment model item)
, previewMenu2 texts settings model item (currentAttachment model item)
, selectedDimmer
]
)
@ -234,7 +234,7 @@ metaDataContent2 texts settings item =
[ ( "hidden", fieldHidden Data.Fields.Folder )
]
, class "hover:opacity-60"
, title texts.folder
, title texts.basics.folder
]
[ Icons.folderIcon2 "mr-2"
, Comp.LinkTarget.makeFolderLink item
@ -311,7 +311,7 @@ mainContent2 texts cardAction cardColor isConfirmed settings _ item =
&& fieldHidden Data.Fields.CorrPerson
)
]
, title "Correspondent"
, title texts.basics.correspondent
]
(Icons.correspondentIcon2 "mr-2 w-4 text-center"
:: Comp.LinkTarget.makeCorrLink item [ ( "hover:opacity-75", True ) ] SetLinkTarget
@ -323,7 +323,7 @@ mainContent2 texts cardAction cardColor isConfirmed settings _ item =
&& fieldHidden Data.Fields.ConcEquip
)
]
, title "Concerning"
, title texts.basics.concerning
]
(Icons.concernedIcon2 "mr-2 w-4 text-center"
:: Comp.LinkTarget.makeConcLink item [ ( "hover:opacity-75", True ) ] SetLinkTarget
@ -340,7 +340,7 @@ mainContent2 texts cardAction cardColor isConfirmed settings _ item =
, ( cardColor, True )
, ( "hidden", isConfirmed )
]
, title "New"
, title texts.new
]
[ i [ class "ml-2 fa fa-exclamation-circle" ] []
]
@ -440,8 +440,8 @@ previewImage2 settings cardAction model item =
]
previewMenu2 : UiSettings -> Model -> ItemLight -> Maybe AttachmentLight -> Html Msg
previewMenu2 settings model item mainAttach =
previewMenu2 : Texts -> UiSettings -> Model -> ItemLight -> Maybe AttachmentLight -> Html Msg
previewMenu2 texts settings model item mainAttach =
let
pageCount =
Maybe.andThen .pageCount mainAttach
@ -478,7 +478,7 @@ previewMenu2 settings model item mainAttach =
)
]
, class "label font-semibold text-sm border-gray-300 dark:border-bluegray-600"
, title ("Due on " ++ dueDate)
, title (texts.dueOn ++ " " ++ dueDate)
]
[ Icons.dueDateIcon2 "mr-2"
, text (" " ++ dueDate)
@ -490,7 +490,7 @@ previewMenu2 settings model item mainAttach =
, class "px-2 py-1 border rounded "
, href attachUrl
, target "_self"
, title "Open attachment file"
, title texts.openAttachmentFile
]
[ i [ class "fa fa-eye" ] []
]
@ -498,7 +498,7 @@ previewMenu2 settings model item mainAttach =
[ class S.secondaryBasicButtonPlain
, class "px-2 py-1 border rounded ml-2"
, Page.href (ItemDetailPage item.id)
, title "Go to detail view"
, title texts.gotoDetail
]
[ i [ class "fa fa-edit" ] []
]
@ -518,7 +518,7 @@ previewMenu2 settings model item mainAttach =
[ a
[ class S.secondaryBasicButtonPlain
, class "px-2 py-1 border rounded-l block"
, title "Cycle attachments"
, title texts.cycleAttachments
, href "#"
, onClick (CyclePreview item)
]