mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 08:43:53 +08:00
15 lines
275 B
Ruby
15 lines
275 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class SearchTokenizeJapaneseValidator
|
||
|
def initialize(opts = {})
|
||
|
end
|
||
|
|
||
|
def valid_value?(value)
|
||
|
!SiteSetting.search_tokenize_chinese
|
||
|
end
|
||
|
|
||
|
def error_message
|
||
|
I18n.t("site_settings.errors.search_tokenize_chinese_enabled")
|
||
|
end
|
||
|
end
|