Translate more of the index.html

* Translate more of index.html, with translations sourced from
deepl.com

* Relax the plugin to allow capitalization, periods, exclamation 
marks, and question marks in the Weblate ID for YAML src. 
This helps differentiate between similar but different strings.
This commit is contained in:
djoate
2019-11-18 01:18:12 +00:00
committed by GitHub
parent c36002d851
commit 95f87e234c
6 changed files with 157 additions and 27 deletions

View File

@ -10,7 +10,7 @@ module Weblate
class ID
def self.get(source_text)
source_text.nil? ? source_text : source_text.strip[0..100].gsub(/[^\w\d\s]/, '').tr(' ', '_').downcase
source_text.nil? ? source_text : source_text.strip[0..100].gsub(/[^\w\d\s\.\?\!]/, '').tr(' ', '_')
end
end