tolq-parsers-xliff 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xliff/parser.rb +1 -1
- data/lib/xliff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ae10800de70b0a8b638c5194303cd76b293819
|
4
|
+
data.tar.gz: 6a23b3ab885cd7308cc89810c6b51c0701f03f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05fa2848e34c8d805d7a999e076e778ee2ac82be61a5b23ccce6168daa9315b26e1ebe12b7c5054b9065bc45d779c2e3735fb80fab4c754e8538f25463c10b27
|
7
|
+
data.tar.gz: cb5be587d2f85120b28d7c8faed1c6755f4d76e4132d6e9f42683ffb60b184c41942d67215e35e660fa7774fed3f48a020ef13855b7088b3e13818101868ee9b
|
data/lib/xliff/parser.rb
CHANGED
@@ -32,7 +32,7 @@ module Tolq::Parsers::Xliff
|
|
32
32
|
|
33
33
|
def extract_request_data_from_file(xliff_file)
|
34
34
|
xliff_file.strings.inject({}) do |acc, string|
|
35
|
-
acc[string.id] = {"text" => string.source } if string.source && string.source.length > 0
|
35
|
+
acc[string.id] = {"text" => string.source } if string.source && string.source.strip.length > 0
|
36
36
|
if string.note.length > 0
|
37
37
|
acc[string.id].merge!("translator_message" => string.note)
|
38
38
|
end
|
data/lib/xliff/version.rb
CHANGED