translation 1.5 → 1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6ca60fd941e00c41f19220e38e4be7483513b03
4
- data.tar.gz: e52d363d594a15f637c9d14b81eb9577b83cd4d2
3
+ metadata.gz: 05997adca349136911a36cf5d71d2c800d70a3c9
4
+ data.tar.gz: 6e4e1b0334ab5e3caf3b56b79eb892bc5ac18ff0
5
5
  SHA512:
6
- metadata.gz: e6ed0c302456c4152e8ace2355d9036494a4d9a498ca924c9f0e8a0a304979cd067682c7f8684b425e08790f8af84c0b74bf03c0608bd9116508e6b686cc0d77
7
- data.tar.gz: e7a5f82a5e66036dbc09ed1e5c29b408f630e340e6487bf8bb449ac08c02be700e3bd5210d7725025dfee7062f807f3b6583a5e4fe99c9ecfab61d3440233408
6
+ metadata.gz: 2b5039e54e7b44c481cbfab4889ded42b3b6d6edddff086fce36baa8d2a202657dac9439e693feeb036d7cf78a908fb328c5aeb9fd1fea58ec1eee9c774ba052
7
+ data.tar.gz: 2bc395171acd4dbd97e62a9d4ecba332fa00cd52b95b08284c2e873984adbee0decf9407a5bd347d03718c32fe14f7cd9b4790e1acc58d6ff01aed3b004ad205
@@ -29,7 +29,7 @@ module TranslationIO
29
29
  create_yaml_pot_files_step = CreateYamlPoFilesStep.new(source_locale, target_locales, yaml_file_paths)
30
30
  create_yaml_pot_files_step.run(params)
31
31
 
32
- all_used_yaml_locales = (create_yaml_pot_files_step.all_used_yaml_locales.to_a.map(&:to_s) - [source_locale.to_s]).sort.map(&:to_s)
32
+ all_used_yaml_locales = create_yaml_pot_files_step.all_used_yaml_locales.to_a.map(&:to_s).sort
33
33
  is_source_locale_unfound = !source_locale.in?(all_used_yaml_locales)
34
34
  unfound_target_locales = target_locales - all_used_yaml_locales
35
35
 
@@ -32,14 +32,14 @@ module TranslationIO
32
32
  YamlEntry.string?(key, value) && !YamlEntry.localization?(key, value)
33
33
  end
34
34
 
35
- source_flat_string_tanslations = all_flat_string_translations.select do |key|
35
+ source_flat_string_translations = all_flat_string_translations.select do |key|
36
36
  YamlEntry.from_locale?(key, @source_locale) && !YamlEntry.ignored?(key)
37
37
  end
38
38
 
39
39
  @target_locales.each do |target_locale|
40
40
  po_representation = GetText::PO.new
41
41
 
42
- source_flat_string_tanslations.each_pair do |key, value|
42
+ source_flat_string_translations.each_pair do |key, value|
43
43
  target_key = key.gsub(/\A#{TranslationIO.config.source_locale}\./, "#{target_locale}.")
44
44
  msgid = value
45
45
  msgstr = all_flat_string_translations[target_key]
@@ -23,13 +23,13 @@ module TranslationIO
23
23
 
24
24
  all_flat_translations = FlatHash.to_flat_hash(all_translations)
25
25
 
26
- source_flat_string_tanslations = all_flat_translations.select do |key, value|
26
+ source_flat_string_translations = all_flat_translations.select do |key, value|
27
27
  YamlEntry.string?(key, value) && YamlEntry.from_locale?(key, @source_locale) && !YamlEntry.ignored?(key) && !YamlEntry.localization?(key, value)
28
28
  end
29
29
 
30
30
  pot_representation = GetText::PO.new
31
31
 
32
- source_flat_string_tanslations.each_pair do |key, value|
32
+ source_flat_string_translations.each_pair do |key, value|
33
33
  msgid = value
34
34
 
35
35
  unless msgid.to_s.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translation
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.5'
4
+ version: '1.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurelien Malisart
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-08 00:00:00.000000000 Z
12
+ date: 2016-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gettext