i18n: Keying the site (1/5) - Card/cardv2, misc, navbar, and providers #1510

Merged
djoate merged 32 commits from i18n-simple into i18n-simple 2019-11-25 19:53:36 +00:00
41 changed files with 5085 additions and 991 deletions
Showing only changes of commit 939c7479c3 - Show all commits

View File

@@ -20,7 +20,7 @@ module Weblate
class ID
def self.get(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)/, '')
.tr(' ', '_') << "_KEY"
end