mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 02:35:51 +08:00
update the list of i18n postgre stemmers
This commit is contained in:
parent
fec86c624b
commit
17becd0e5f
@ -89,11 +89,16 @@ module Search
|
||||
|
||||
def self.current_locale_long
|
||||
case I18n.locale # Currently-present in /conf/locales/* only, sorry :-( Add as needed
|
||||
when :ru then 'russian'
|
||||
when :da then 'danish'
|
||||
when :de then 'german'
|
||||
when :en then 'english'
|
||||
when :es then 'spanish'
|
||||
when :fr then 'french'
|
||||
when :it then 'italian'
|
||||
when :nl then 'dutch'
|
||||
when :pt then 'portuguese'
|
||||
when :sv then 'swedish'
|
||||
else 'english'
|
||||
else 'simple' # use the 'simple' stemmer for other languages
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user