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:
eikek
2022-05-21 14:34:48 +02:00
parent 81f7e4e322
commit 5ec311c331
9 changed files with 102 additions and 6 deletions

View File

@ -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
]

View File

@ -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"