international 0.3.0 → 0.3.1

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: 294fc6b6d766cb05c80fff6507693d2a9031e287
4
- data.tar.gz: 22399bd6a99f811272d6f1bd281fc91e5e98fae1
3
+ metadata.gz: a42fd17353f791b07777c139ef00744645dbc358
4
+ data.tar.gz: f798708026d75c8607f6be9747b48d218cc8eaf9
5
5
  SHA512:
6
- metadata.gz: 559538ad04fed14064daeef45e47ad423214cb68538c04b05d499c090f00648a0a4cf3ae6748a66bc5e50a31e7de79b137346da38fa6371c5a8aacd0319f78f2
7
- data.tar.gz: 5e00abd8fe04daf4d039c893888dffc67aaba41bdfab0acae6abe129e44bf1b44884e9238c6e22545d349e0d5183a659039ba0e24952666f8d2aad5702193df0
6
+ metadata.gz: f3112506480108a87ac28358be2fc577a43a112304bee28c545fb4abd18c0904c449de1e76ce839f5656dea39f72c747d0fe91fca366c592f5906ae88f9da4e0
7
+ data.tar.gz: 465f7b914431cfce109b5db88a0f119920f977547d8166e0960dcd86c22300ad052eedc24899d850e397f90d22e173685e7a2a0e7d71a79c0f73f2ca4b07f32b
data/README.md CHANGED
@@ -2,11 +2,10 @@
2
2
 
3
3
  > Convert CSV to localization strings, for both ANDROID and iOS
4
4
 
5
- <!-- <p align="center">
6
- <img src="extras/terminal.gif" />
5
+ <p align="center">
6
+ <img src="extras/screenshots/output.png" />
7
7
  </p>
8
8
 
9
- -->
10
9
  ## Usage
11
10
 
12
11
  This will create the localization for you, based on a `.csv` file
@@ -14,8 +13,16 @@ This will create the localization for you, based on a `.csv` file
14
13
  ```bash
15
14
  international --csv ~/import.csv
16
15
  ```
16
+
17
+ ### Given this `~/import.csv`
18
+ ```csv
19
+ ,pt,en,es
20
+ welcome_message,Bem vindo,welcome,bienvenido
21
+ goodbye,adeus,goodbye,adios
22
+ ```
23
+
17
24
  ### Will have this output:
18
- For **android** (English, etc.), `/values-en/translation.xml`:
25
+ English output for **android**, `/values-en/translation.xml`:
19
26
 
20
27
  ```xml
21
28
  <?xml version="1.0" ?>
@@ -26,7 +33,7 @@ For **android** (English, etc.), `/values-en/translation.xml`:
26
33
  </resources>
27
34
  ```
28
35
 
29
- For **iOS** (English, etc.), `iosApp/en.lbproj/Localizable.strings`:
36
+ English output for **iOS**, `iosApp/en.lbproj/Localizable.strings`:
30
37
 
31
38
  ```bash
32
39
  WELCOME_MESSAGE="Welcome";
@@ -34,16 +41,7 @@ THANK_YOU_MESSAGE="Thank you";
34
41
  GOODBYE_MESSAGE="Goodbye";
35
42
  ```
36
43
 
37
-
38
- Given this `~/import.csv`
39
- ```csv
40
- keys,pt,en,es
41
- welcome_message,Bem vindo,welcome,bienvenido
42
- goodbye,adeus,goodbye,adios
43
- ```
44
-
45
-
46
- <b>You can also send it straight to some folder:</b>
44
+ ### More complete:
47
45
 
48
46
  ```bash
49
47
  # For iOS
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.authors = ["cesarferreira"]
15
15
  spec.email = ["cesar.manuel.ferreira@gmail.com"]
16
16
 
17
- spec.summary = %q{Convert CSV to localization strings}
18
- spec.description = %q{Convert CSV to localization strings}
17
+ spec.summary = %q{Convert CSV to localization strings, for both ANDROID and iOS}
18
+ spec.description = %q{Convert CSV to localization strings, for both ANDROID and iOS}
19
19
  spec.homepage = "https://github.com/cesarferreira/international"
20
20
  spec.license = "MIT"
21
21
 
@@ -1,3 +1,3 @@
1
1
  module International
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: international
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesarferreira
@@ -114,7 +114,7 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: 1.5.5
117
- description: Convert CSV to localization strings
117
+ description: Convert CSV to localization strings, for both ANDROID and iOS
118
118
  email:
119
119
  - cesar.manuel.ferreira@gmail.com
120
120
  executables:
@@ -130,6 +130,12 @@ files:
130
130
  - README.md
131
131
  - Rakefile
132
132
  - bin/international
133
+ - extras/screenshots/1.png
134
+ - extras/screenshots/2.png
135
+ - extras/screenshots/3.png
136
+ - extras/screenshots/4.png
137
+ - extras/screenshots/5.png
138
+ - extras/screenshots/output.png
133
139
  - international.gemspec
134
140
  - lib/file_manager.rb
135
141
  - lib/international.rb
@@ -159,6 +165,6 @@ rubyforge_project:
159
165
  rubygems_version: 2.4.8
160
166
  signing_key:
161
167
  specification_version: 4
162
- summary: Convert CSV to localization strings
168
+ summary: Convert CSV to localization strings, for both ANDROID and iOS
163
169
  test_files: []
164
170
  has_rdoc: