mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Merge pull request #696 from kubabrecka/update_stemmers
update the list of i18n postgre stemmers
This commit is contained in:
commit
669dad6cbb
1 changed files with 7 additions and 2 deletions
|
@ -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…
Reference in a new issue