mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Externalize strings for document language
This commit is contained in:
@ -200,7 +200,7 @@ view2 flags texts settings model =
|
||||
languageCfg =
|
||||
{ makeOption =
|
||||
\l ->
|
||||
{ text = Data.Language.toName l
|
||||
{ text = texts.languageLabel l
|
||||
, additional = ""
|
||||
}
|
||||
, placeholder = ""
|
||||
|
@ -39,6 +39,7 @@ import Html.Attributes exposing (..)
|
||||
import Html.Events exposing (onCheck, onClick, onInput)
|
||||
import Http
|
||||
import Markdown
|
||||
import Messages.LanguageData
|
||||
import Set exposing (Set)
|
||||
import Styles as S
|
||||
import Util.Folder exposing (mkFolderOption)
|
||||
@ -1054,7 +1055,7 @@ viewMetadata2 flags settings model =
|
||||
}
|
||||
|
||||
languageCfg =
|
||||
{ display = Data.Language.toName
|
||||
{ display = Messages.LanguageData.gb
|
||||
, icon = \_ -> Nothing
|
||||
, style = DS.mainStyleWith "flex-grow mr-2"
|
||||
}
|
||||
|
@ -327,10 +327,10 @@ view2 flags texts settings model =
|
||||
languageCfg =
|
||||
{ makeOption =
|
||||
\a ->
|
||||
{ text = Data.Language.toName a
|
||||
{ text = texts.languageLabel a
|
||||
, additional = ""
|
||||
}
|
||||
, placeholder = "Select…"
|
||||
, placeholder = texts.selectPlaceholder
|
||||
, labelColor = \_ -> \_ -> ""
|
||||
, style = DS.mainStyle
|
||||
}
|
||||
|
Reference in New Issue
Block a user