FEATURE: remove english korean slugs
This commit is contained in:
parent
4ff056231d
commit
e668d770ac
|
@ -6,7 +6,9 @@ module Slug
|
||||||
def self.for(string)
|
def self.for(string)
|
||||||
slug = string.gsub("'", "").parameterize
|
slug = string.gsub("'", "").parameterize
|
||||||
slug.gsub!("_", "-")
|
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
|
unless defined? Stringex
|
||||||
require 'stringex_lite'
|
require 'stringex_lite'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue