Remove '?' and '.' characters from source key names

This commit is contained in:
2019-11-25 16:01:29 -06:00
parent 7b11a7bb01
commit 46ba805cdd
2 changed files with 1184 additions and 1709 deletions

View File

@@ -21,7 +21,7 @@ module Weblate
def self.get(source_text)
source_text.nil? or source_text.empty? ? source_text
: source_text.strip[0..150]
.gsub(/([^\w\d\s\.\?\!]|\n)/, '')
.gsub(/([^\w\d\s\!]|\n)/, '')
.tr(' ', '_') << "_KEY"
end
end

File diff suppressed because it is too large Load Diff