konjak 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/konjak/translator/translated_string.rb +6 -0
- data/lib/konjak/translator.rb +2 -2
- data/lib/konjak/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: 9a1dc76b9a5796b66e6c6b50c4400143fd497492
|
4
|
+
data.tar.gz: 9ac877e8c999059b43400aad5a59f18109dc331b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 356f541c8ce211f7811061fe0cd61d63cb2f4536506a9f80f5332c0893ab24a9a11d50d37e81c52b0ccefdf9f2f0a1734d9e9a49c0c2b6eac21358fa621d570e
|
7
|
+
data.tar.gz: 42f02f58909edb6fcaa884b10c5bfa3c79866fd3eb29686c7be64fed0f2577d3b080466f34c0baa5b925a0e3d9384055c49bab0bbbac6a99b6182a523b483a40
|
data/lib/konjak/translator.rb
CHANGED
@@ -25,9 +25,9 @@ module Konjak
|
|
25
25
|
if format == :gtt_html
|
26
26
|
gtt_tags = source_segment.extract_gtt_tags_from(text)
|
27
27
|
translated_string = target_segment.interpolate_gtt_tags(gtt_tags)
|
28
|
-
TranslatedString.new(translated_string)
|
28
|
+
TranslatedString.new(translated_string, text)
|
29
29
|
else
|
30
|
-
TranslatedString.new(target_segment.text)
|
30
|
+
TranslatedString.new(target_segment.text, text)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/konjak/version.rb
CHANGED