From 8b22523e557dce92281e8aa2913d2a3068879c3c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 24 Mar 2015 13:14:55 +0100 Subject: [PATCH] build system: multiple sources in one line in Swedish translation file --- Rakefile | 1 + rake.d/helpers.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d17d6f73a..201f0bfb2 100755 --- a/Rakefile +++ b/Rakefile @@ -91,6 +91,7 @@ def setup_globals } $unwrapped_po = %{ca es eu it nl uk pl sr tr} + $po_multiple_sources = %{sv} cflags_common = "-Wall -Wno-comment -Wfatal-errors #{c(:WLOGICAL_OP)} #{c(:WNO_MISMATCHED_TAGS)} #{c(:WNO_SELF_ASSIGN)} #{c(:QUNUSED_ARGUMENTS)}" cflags_common += " #{c(:OPTIMIZATION_CFLAGS)} -D_FILE_OFFSET_BITS=64 #{c(:MATROSKA_CFLAGS)} #{c(:EBML_CFLAGS)} #{c(:EXTRA_CFLAGS)} #{c(:DEBUG_CFLAGS)} #{c(:PROFILING_CFLAGS)} #{c(:USER_CPPFLAGS)}" diff --git a/rake.d/helpers.rb b/rake.d/helpers.rb index 2315c9fbe..8356720e6 100644 --- a/rake.d/helpers.rb +++ b/rake.d/helpers.rb @@ -180,7 +180,7 @@ def adjust_to_poedit_style(in_name, out_name, language) previous_state = :initial previous_line = nil sources = [] - one_source = !$unwrapped_po.include?(language) + one_source = !$unwrapped_po.include?(language) && !$po_multiple_sources.include?(language) lines.each do |line| previous_state = state