mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 18:01:40 +08:00
15 lines
276 B
Ruby
15 lines
276 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class SearchTokenizeChineseValidator
|
||
|
def initialize(opts = {})
|
||
|
end
|
||
|
|
||
|
def valid_value?(value)
|
||
|
!SiteSetting.search_tokenize_japanese
|
||
|
end
|
||
|
|
||
|
def error_message
|
||
|
I18n.t("site_settings.errors.search_tokenize_japanese_enabled")
|
||
|
end
|
||
|
end
|