mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Add polish to processing lanugages
SOLR doesn't support polish out of the box. Plugins are required for polish. The language has been added only with basic support. For better results, a manual setup of solr is required. Closes: #1345
This commit is contained in:
@ -33,6 +33,7 @@ type Language
|
||||
| Hebrew
|
||||
| Hungarian
|
||||
| Lithuanian
|
||||
| Polish
|
||||
|
||||
|
||||
fromString : String -> Maybe Language
|
||||
@ -94,6 +95,9 @@ fromString str =
|
||||
else if str == "lit" || str == "lt" || str == "lithuanian" then
|
||||
Just Lithuanian
|
||||
|
||||
else if str == "pol" || str == "pl" || str == "polish" then
|
||||
Just Polish
|
||||
|
||||
else
|
||||
Nothing
|
||||
|
||||
@ -158,6 +162,9 @@ toIso3 lang =
|
||||
Lithuanian ->
|
||||
"lit"
|
||||
|
||||
Polish ->
|
||||
"pol"
|
||||
|
||||
|
||||
all : List Language
|
||||
all =
|
||||
@ -180,4 +187,5 @@ all =
|
||||
, Hebrew
|
||||
, Hungarian
|
||||
, Lithuanian
|
||||
, Polish
|
||||
]
|
||||
|
@ -74,6 +74,9 @@ gb lang =
|
||||
Lithuanian ->
|
||||
"Lithuanian"
|
||||
|
||||
Polish ->
|
||||
"Polish"
|
||||
|
||||
|
||||
de : Language -> String
|
||||
de lang =
|
||||
@ -135,6 +138,9 @@ de lang =
|
||||
Lithuanian ->
|
||||
"Litauisch"
|
||||
|
||||
Polish ->
|
||||
"Polnisch"
|
||||
|
||||
|
||||
fr : Language -> String
|
||||
fr lang =
|
||||
@ -195,3 +201,6 @@ fr lang =
|
||||
|
||||
Lithuanian ->
|
||||
"Lituanien"
|
||||
|
||||
Polish ->
|
||||
"Polonais"
|
||||
|
Reference in New Issue
Block a user