tolq-parsers-xliff 0.1.3 → 0.1.4
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 +4 -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: 207acef5698ce9b31f042cca0006c6eb637dd23c
|
4
|
+
data.tar.gz: 4379620a6c9567e3361db956afe096c65c79a6fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31dd134dcd2c29a6fb75e241f7ec1062662ec3e32c42fa206a0f2931f9ecfd01e48b9d20bc93964405ec234a0cd8b589deb65a122dea92c26057d9cf6bfa4675
|
7
|
+
data.tar.gz: 7d30383026764381af1587fb0ccc4ca1f8d00b2fe529745382900a586027719e51c3c7dce5f6495d4de823aa1a5957c914238758be1889ccb0943ce500355145
|
data/lib/xliff/parser.rb
CHANGED
@@ -32,7 +32,10 @@ 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
|
-
|
35
|
+
unless string.source && string.source.strip.length > 0
|
36
|
+
next acc
|
37
|
+
end
|
38
|
+
acc[string.id] = {"text" => string.source }
|
36
39
|
if string.note.length > 0
|
37
40
|
acc[string.id].merge!("translator_message" => string.note)
|
38
41
|
end
|
data/lib/xliff/version.rb
CHANGED