NEW [WIP] Add localization support with jekyll-simple-i18n #1509
@@ -20,7 +20,7 @@ module Weblate
|
|||||||
class ID
|
class ID
|
||||||
def self.get(source_text)
|
def self.get(source_text)
|
||||||
source_text.nil? or source_text.empty? ? source_text
|
source_text.nil? or source_text.empty? ? source_text
|
||||||
: source_text.strip[0..100]
|
: source_text.strip[0..150]
|
||||||
.gsub(/([^\w\d\s\.\?\!]|\n)/, '')
|
.gsub(/([^\w\d\s\.\?\!]|\n)/, '')
|
||||||
.tr(' ', '_') << "_KEY"
|
.tr(' ', '_') << "_KEY"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user