Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Skip fixing in-context translation files

Oliver Günther784361c03cb4
diff --git a/script/i18n/fix_crowdin_translation_filenames.rb b/script/i18n/fix_crowdin_translation_filenames.rb
index a1c0d121cae..3522580687d 100644
--- a/script/i18n/fix_crowdin_translation_filenames.rb
+++ b/script/i18n/fix_crowdin_translation_filenames.rb
@@ -5,6 +5,9 @@ Dir.glob('**/config/locales/crowdin/*.yml').each do |crowdin_file|
language_key = nil
filename = File.basename(crowdin_file)
+ # Skip the empty in-context translations
+ next if filename.includes?('lol.')
+
File.readlines(crowdin_file).each do |line|
if line.match(/^\s*(\S{2,}):\s*$/)
language_key = $1