mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Externalized strings
This commit is contained in:
39
modules/webapp/src/main/elm/Messages/Basics.elm
Normal file
39
modules/webapp/src/main/elm/Messages/Basics.elm
Normal file
@ -0,0 +1,39 @@
|
||||
module Messages.Basics exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ incoming : String
|
||||
, outgoing : String
|
||||
, tags : String
|
||||
, items : String
|
||||
, submit : String
|
||||
, submitThisForm : String
|
||||
, cancel : String
|
||||
, delete : String
|
||||
, created : String
|
||||
, edit : String
|
||||
, back : String
|
||||
, backToList : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ incoming = "Incoming"
|
||||
, outgoing = "Outgoing"
|
||||
, tags = "Tags"
|
||||
, items = "Items"
|
||||
, submit = "Submit"
|
||||
, submitThisForm = "Submit this form"
|
||||
, cancel = "Cancel"
|
||||
, delete = "Delete"
|
||||
, created = "Created"
|
||||
, edit = "Edit"
|
||||
, back = "Back"
|
||||
, backToList = "Back to list"
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
gb
|
@ -0,0 +1,35 @@
|
||||
module Messages.ClassifierSettingsFormComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ autoTaggingText : String
|
||||
, blacklistOrWhitelist : String
|
||||
, whitelistLabel : String
|
||||
, blacklistLabel : String
|
||||
, itemCount : String
|
||||
, schedule : String
|
||||
, itemCountHelp : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ autoTaggingText =
|
||||
"""
|
||||
|
||||
Auto-tagging works by learning from existing documents. The more
|
||||
documents you have correctly tagged, the better. Learning is done
|
||||
periodically based on a schedule. You can specify tag-groups that
|
||||
should either be used (whitelist) or not used (blacklist) for
|
||||
learning.
|
||||
|
||||
Use an empty whitelist to disable auto tagging.
|
||||
|
||||
"""
|
||||
, blacklistOrWhitelist = "Is the following a blacklist or whitelist?"
|
||||
, whitelistLabel = "Include tag categories for learning"
|
||||
, blacklistLabel = "Exclude tag categories from learning"
|
||||
, itemCount = "Item Count"
|
||||
, schedule = "Schedule"
|
||||
, itemCountHelp = "The maximum number of items to learn from, order by date newest first. Use 0 to mean all."
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
module Messages.CollectiveSettingsFormComp exposing (..)
|
||||
|
||||
import Messages.ClassifierSettingsFormComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ classifierSettingsForm : Messages.ClassifierSettingsFormComp.Texts
|
||||
, save : String
|
||||
, saveSettings : String
|
||||
, documentLanguage : String
|
||||
, documentLanguageHelp : String
|
||||
, integrationEndpoint : String
|
||||
, integrationEndpointLabel : String
|
||||
, integrationEndpointHelp : String
|
||||
, fulltextSearch : String
|
||||
, reindexAllData : String
|
||||
, reindexAllDataHelp : String
|
||||
, autoTagging : String
|
||||
, startNow : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ classifierSettingsForm = Messages.ClassifierSettingsFormComp.gb
|
||||
, save = "Save"
|
||||
, saveSettings = "Save Settings"
|
||||
, documentLanguage = "Document Language"
|
||||
, documentLanguageHelp = "The language of your documents. This helps text recognition (OCR) and text analysis."
|
||||
, integrationEndpoint = "Integration Endpoint"
|
||||
, integrationEndpointLabel = "Enable integration endpoint"
|
||||
, integrationEndpointHelp =
|
||||
"The integration endpoint allows (local) applications to submit files. "
|
||||
++ "You can choose to disable it for your collective."
|
||||
, fulltextSearch = "Full-Text Search"
|
||||
, reindexAllData = "Re-Index All Data"
|
||||
, reindexAllDataHelp =
|
||||
"This starts a task that clears the full-text index and re-indexes all your data again."
|
||||
++ "You must type OK before clicking the button to avoid accidental re-indexing."
|
||||
, autoTagging = "Auto-Tagging"
|
||||
, startNow = "Start now"
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
module Messages.CollectiveSettingsPage exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
import Messages.CollectiveSettingsFormComp
|
||||
import Messages.SourceManageComp
|
||||
import Messages.UserManageComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, userManage : Messages.UserManageComp.Texts
|
||||
, collectiveSettingsForm : Messages.CollectiveSettingsFormComp.Texts
|
||||
, sourceManage : Messages.SourceManageComp.Texts
|
||||
, collectiveSettings : String
|
||||
, insights : String
|
||||
, sources : String
|
||||
, settings : String
|
||||
, users : String
|
||||
, user : String
|
||||
, collective : String
|
||||
, size : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, userManage = Messages.UserManageComp.gb
|
||||
, collectiveSettingsForm = Messages.CollectiveSettingsFormComp.gb
|
||||
, sourceManage = Messages.SourceManageComp.gb
|
||||
, collectiveSettings = "Collective Settings"
|
||||
, insights = "Insights"
|
||||
, sources = "Sources"
|
||||
, settings = "Settings"
|
||||
, users = "Users"
|
||||
, user = "User"
|
||||
, collective = "Collective"
|
||||
, size = "Size"
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
gb
|
@ -1,14 +1,16 @@
|
||||
module Messages.LoginPage exposing
|
||||
( Texts
|
||||
, de
|
||||
, fr
|
||||
, gb
|
||||
)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ username : String
|
||||
{ loginToDocspell : String
|
||||
, username : String
|
||||
, collectiveSlashLogin : String
|
||||
, password : String
|
||||
, rememberMe : String
|
||||
, loginPlaceholder : String
|
||||
, passwordPlaceholder : String
|
||||
, loginButton : String
|
||||
@ -20,8 +22,11 @@ type alias Texts =
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ username = "Username"
|
||||
{ loginToDocspell = "Login to Docspell"
|
||||
, username = "Username"
|
||||
, collectiveSlashLogin = "Collective / Login"
|
||||
, password = "Password"
|
||||
, rememberMe = "Remember Me"
|
||||
, loginPlaceholder = "Login"
|
||||
, passwordPlaceholder = "Password"
|
||||
, loginButton = "Login"
|
||||
@ -33,8 +38,11 @@ gb =
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
{ username = "Benutzer"
|
||||
{ loginToDocspell = "Docspell Anmeldung"
|
||||
, username = "Benutzer"
|
||||
, collectiveSlashLogin = "Kollektiv / Benutzer"
|
||||
, password = "Passwort"
|
||||
, rememberMe = "Anmeldung speichern"
|
||||
, loginPlaceholder = "Benutzer"
|
||||
, passwordPlaceholder = "Passwort"
|
||||
, loginButton = "Anmelden"
|
||||
@ -42,16 +50,3 @@ de =
|
||||
, noAccount = "Kein Konto?"
|
||||
, signupLink = "Hier registrieren!"
|
||||
}
|
||||
|
||||
|
||||
fr : Texts
|
||||
fr =
|
||||
{ username = "Identifiant"
|
||||
, password = "Mot de passe"
|
||||
, loginPlaceholder = "Utilisateur"
|
||||
, passwordPlaceholder = "Mot de passe"
|
||||
, loginButton = "Connexion"
|
||||
, loginSuccessful = "Identification réussie"
|
||||
, noAccount = "Pas de compte ?"
|
||||
, signupLink = "S'inscrire"
|
||||
}
|
||||
|
61
modules/webapp/src/main/elm/Messages/SourceFormComp.elm
Normal file
61
modules/webapp/src/main/elm/Messages/SourceFormComp.elm
Normal file
@ -0,0 +1,61 @@
|
||||
module Messages.SourceFormComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, name : String
|
||||
, description : String
|
||||
, enabled : String
|
||||
, priority : String
|
||||
, priorityInfo : String
|
||||
, metadata : String
|
||||
, metadataInfoText : String
|
||||
, folder : String
|
||||
, folderInfo : String
|
||||
, folderForbiddenText : String
|
||||
, tagsInfo : String
|
||||
, fileFilter : String
|
||||
, fileFilterInfo : String
|
||||
, language : String
|
||||
, languageInfo : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, name = "Name"
|
||||
, description = "Description"
|
||||
, enabled = "Enabled"
|
||||
, priority = "Priority"
|
||||
, priorityInfo = "The priority used by the scheduler when processing uploaded files."
|
||||
, metadata = "Metadata"
|
||||
, metadataInfoText =
|
||||
"Metadata specified here is automatically attached to each item uploaded "
|
||||
++ "through this source, unless it is overriden in the upload request meta data. "
|
||||
++ "Tags from the request are added to those defined here."
|
||||
, folder = "Folder"
|
||||
, folderInfo = "Choose a folder to automatically put items into."
|
||||
, folderForbiddenText =
|
||||
"""
|
||||
You are **not a member** of this folder. Items created through this
|
||||
link will be **hidden** from any search results. Use a folder where
|
||||
you are a member of to make items visible. This message will
|
||||
disappear then.
|
||||
"""
|
||||
, tagsInfo = "Choose tags that should be applied to items."
|
||||
, fileFilter = "File Filter"
|
||||
, fileFilterInfo = """
|
||||
|
||||
Specify a file glob to filter files when uploading archives
|
||||
(e.g. for email and zip). For example, to only extract pdf files:
|
||||
`*.pdf`. Globs can be combined via OR, like this: `*.pdf|mail.html`.
|
||||
|
||||
"""
|
||||
, language = "Language"
|
||||
, languageInfo =
|
||||
"Used for text extraction and analysis. The collective's "
|
||||
++ "default language is used if not specified here."
|
||||
}
|
53
modules/webapp/src/main/elm/Messages/SourceManageComp.elm
Normal file
53
modules/webapp/src/main/elm/Messages/SourceManageComp.elm
Normal file
@ -0,0 +1,53 @@
|
||||
module Messages.SourceManageComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
import Messages.SourceFormComp
|
||||
import Messages.SourceTableComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, sourceTable : Messages.SourceTableComp.Texts
|
||||
, sourceForm : Messages.SourceFormComp.Texts
|
||||
, addSourceUrl : String
|
||||
, newSource : String
|
||||
, publicUploads : String
|
||||
, sourceInfoText : String
|
||||
, itemsCreatedInfo : Int -> String
|
||||
, publicUploadPage : String
|
||||
, copyToClipboard : String
|
||||
, openInNewTab : String
|
||||
, publicUploadUrl : String
|
||||
, reallyDeleteSource : String
|
||||
, createNewSource : String
|
||||
, deleteThisSource : String
|
||||
, errorGeneratingQR : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, sourceTable = Messages.SourceTableComp.gb
|
||||
, sourceForm = Messages.SourceFormComp.gb
|
||||
, addSourceUrl = "Add a source url"
|
||||
, newSource = "New source"
|
||||
, publicUploads = "Public Uploads"
|
||||
, sourceInfoText =
|
||||
"This source defines URLs that can be used by anyone to send files to "
|
||||
++ "you. There is a web page that you can share or the API url can be used "
|
||||
++ "with other clients."
|
||||
, itemsCreatedInfo =
|
||||
\n ->
|
||||
"There have been "
|
||||
++ String.fromInt n
|
||||
++ " items created through this source."
|
||||
, publicUploadPage = "Public Upload Page"
|
||||
, copyToClipboard = "Copy to clipboard"
|
||||
, openInNewTab = "Open in new tab/window"
|
||||
, publicUploadUrl = "Public API Upload URL"
|
||||
, reallyDeleteSource = "Really delete this source?"
|
||||
, createNewSource = "Create new source"
|
||||
, deleteThisSource = "Delete this source"
|
||||
, errorGeneratingQR = "Error generating QR Code"
|
||||
}
|
22
modules/webapp/src/main/elm/Messages/SourceTableComp.elm
Normal file
22
modules/webapp/src/main/elm/Messages/SourceTableComp.elm
Normal file
@ -0,0 +1,22 @@
|
||||
module Messages.SourceTableComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ abbrev : String
|
||||
, enabled : String
|
||||
, counter : String
|
||||
, priority : String
|
||||
, id : String
|
||||
, show : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ abbrev = "Abbrev"
|
||||
, enabled = "Enabled"
|
||||
, counter = "Counter"
|
||||
, priority = "Priority"
|
||||
, id = "Id"
|
||||
, show = "Show"
|
||||
}
|
18
modules/webapp/src/main/elm/Messages/UserFormComp.elm
Normal file
18
modules/webapp/src/main/elm/Messages/UserFormComp.elm
Normal file
@ -0,0 +1,18 @@
|
||||
module Messages.UserFormComp exposing (..)
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ login : String
|
||||
, state : String
|
||||
, email : String
|
||||
, password : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ login = "Login"
|
||||
, state = "State"
|
||||
, email = "E-Mail"
|
||||
, password = "Password"
|
||||
}
|
39
modules/webapp/src/main/elm/Messages/UserManageComp.elm
Normal file
39
modules/webapp/src/main/elm/Messages/UserManageComp.elm
Normal file
@ -0,0 +1,39 @@
|
||||
module Messages.UserManageComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
import Messages.UserFormComp
|
||||
import Messages.UserTableComp
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ userTable : Messages.UserTableComp.Texts
|
||||
, userForm : Messages.UserFormComp.Texts
|
||||
, users : String
|
||||
, newUser : String
|
||||
, addNewUser : String
|
||||
, reallyDeleteUser : String
|
||||
, createNewUser : String
|
||||
, basics : Messages.Basics.Texts
|
||||
, deleteThisUser : String
|
||||
, pleaseCorrectErrors : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ userTable = Messages.UserTableComp.gb
|
||||
, userForm = Messages.UserFormComp.gb
|
||||
, basics = Messages.Basics.gb
|
||||
, users = "Users"
|
||||
, newUser = "New user"
|
||||
, addNewUser = "Add new user"
|
||||
, reallyDeleteUser = "Really delete this user?"
|
||||
, createNewUser = "Create new user"
|
||||
, deleteThisUser = "Delete this user"
|
||||
, pleaseCorrectErrors = "Please correct the errors in the form."
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
gb
|
26
modules/webapp/src/main/elm/Messages/UserTableComp.elm
Normal file
26
modules/webapp/src/main/elm/Messages/UserTableComp.elm
Normal file
@ -0,0 +1,26 @@
|
||||
module Messages.UserTableComp exposing (..)
|
||||
|
||||
import Messages.Basics
|
||||
|
||||
|
||||
type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, login : String
|
||||
, state : String
|
||||
, email : String
|
||||
, logins : String
|
||||
, lastLogin : String
|
||||
, created : String
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, login = "Login"
|
||||
, state = "State"
|
||||
, email = "E-Mail"
|
||||
, logins = "Logins"
|
||||
, lastLogin = "Last Login"
|
||||
, created = "Created"
|
||||
}
|
Reference in New Issue
Block a user