xlocalize 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6b4d23f6600b07e648a139dac22d859da9c0b52
4
- data.tar.gz: f27b509647905bb341a7234b3ec0d979b0ecbc7f
3
+ metadata.gz: 8f6ecf497c15b77f74e27417dc4e13b7bbf4a789
4
+ data.tar.gz: bb9e96c6b322ded495a3d35dbed3ba9a181ed0dd
5
5
  SHA512:
6
- metadata.gz: 005ec591dc7eeed1183cd2a257b618fb1a6d193ad501dc021c0fcc8f83598d766093fd0a2432ae7a8a895a84320f0aeab886df1c947715ff8029fb505d079411
7
- data.tar.gz: bef7370336c1a2cea58eae088f642dfd235fb10439c011c15b64848ab3afe37685eed6dcccc47bb3fd41a7e6fd0902de5a1419982040f39c4a82ad23a464154c
6
+ metadata.gz: 7b8fcc9b751464185c25854173f8e886c055e93270c3d218479d0254c9fd6053929401fea8277420a8a1fc174f3a5c90d9b723a353028bddf51bc28c67143a71
7
+ data.tar.gz: bbbc437cbb9a2e3dce6a3ec1e30da4476c98367183b0bde08835de97a7e3b50f542d16331502bf9c5d693c5163c9bad44dcddc2808f06bb2f0983edb60ad425d
@@ -146,6 +146,12 @@ module Xlocalize
146
146
 
147
147
  def localized_filename(file_name, locale)
148
148
  parts = file_name.split('/')
149
+
150
+ # WebTranslateIt uses _ for Language_Country separator e.g. pt_PT
151
+ # but Xcode uses - e.g. pt-PT
152
+ # Repace it to match Xcode file locations
153
+ locale.sub!("_", "-")
154
+
149
155
  name = ""
150
156
  parts.each_with_index do |part, idx|
151
157
  name += "/" if idx > 0
@@ -1,4 +1,4 @@
1
1
  module Xlocalize
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  DESCRIPTION = "Xcode localizations import/export helper tool"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlocalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktoras Laukevičius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-08 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri