mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FEATURE: remove english korean slugs
This commit is contained in:
parent
4ff056231d
commit
e668d770ac
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue