FEATURE: remove english korean slugs

This commit is contained in:
Sam 2014-11-18 11:47:04 +11:00
parent 4ff056231d
commit e668d770ac
1 changed files with 3 additions and 1 deletions

View File

@ -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