From 939c7479c343d0a1f2971a421a199c454d563aaf Mon Sep 17 00:00:00 2001 From: djoate <56777051+djoate@users.noreply.github.com> Date: Sun, 24 Nov 2019 15:51:54 -0500 Subject: [PATCH] Bump max key length to 150 characters --- _plugins/weblate-source-file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_plugins/weblate-source-file.rb b/_plugins/weblate-source-file.rb index 17c7759e..51f6fd90 100644 --- a/_plugins/weblate-source-file.rb +++ b/_plugins/weblate-source-file.rb @@ -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