mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FEATURE: remove english korean slugs
This commit is contained in:
parent
4ff056231d
commit
e668d770ac
|
@ -6,7 +6,9 @@ module Slug
|
|||
def self.for(string)
|
||||
slug = string.gsub("'", "").parameterize
|
||||
slug.gsub!("_", "-")
|
||||
if ['zh_CN', 'ja', 'ko'].include?(SiteSetting.default_locale)
|
||||
# TODO review if ja should use this
|
||||
# ko asked for it to be removed
|
||||
if ['zh_CN', 'ja'].include?(SiteSetting.default_locale)
|
||||
unless defined? Stringex
|
||||
require 'stringex_lite'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user