localio 0.0.12 → 0.0.13

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: 6ce04045ee8fd99cc7dfd81c4862b329098a7e37
4
- data.tar.gz: 13b718461d3622f9ce96de77047bc4a979b954e9
3
+ metadata.gz: 6bd47467e4cf537ceef011ecdcb565dc9471bd96
4
+ data.tar.gz: 91101abce76b22a3e25fae61dcd91775469c8d12
5
5
  SHA512:
6
- metadata.gz: 93b4f18eb7d32cb63d629393fe92cb7efb9dba005474b91f71659c24f12fb8d2bfab0e8b0dae7907f930640e70360d457e712e82646d777e76e4b90fbc4332e1
7
- data.tar.gz: 700d3b3866311d817396b0b4addff518f1452238a6a439c638007ef35843219979ecc8211a46e3e1193d5a370de2de6dd0fcf137d37c203fc86a0f436844c10c
6
+ metadata.gz: 8d9e310a8a720039c316f4e2f6206ae2f80852913d7657b854e7771b9ea614091d11186d7279357168fd05dd520c399e0ab8a36c581acddd3cf157f1a091647a
7
+ data.tar.gz: a526e4161dbfe7f2799ef2db03f928eebd9779ff73994b1145fc13b58bfe250e73b173dedd6d8964ecc4f0e5ad77e8ae6cc880d9faf2b66906bc9ac36125a8b3
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Localio
2
2
 
3
- Localio generates automatically localizable files for many platforms like Rails, Android, iOS, and JSON files using a centralized spreadsheet as source. The spreadsheet can be in Google Drive or a simple local Excel file.
3
+ Localio generates automatically localizable files for many platforms like Rails, Android, iOS, Java .properties files and JSON files using a centralized spreadsheet as source. The spreadsheet can be in Google Drive or a simple local Excel file.
4
4
 
5
5
  ## Installation
6
6
 
@@ -74,6 +74,7 @@ Option | Description
74
74
  * `:ios` for iOS Localizable.strings files. The `output_path` needed is base directory where `en.lproj/` and such would go.
75
75
  * `:rails` for Rails YAML files. The `output_path` needed is your `config/locales` directory.
76
76
  * `:json` for an easy JSON format for localizables. The `output_path` is yours to decide :)
77
+ * `:java_properties` for .properties files used mainly in Java. Files named language_(lang).properties will be generated in `output_path`'s root directory.
77
78
 
78
79
  #### Supported sources
79
80
 
@@ -2,6 +2,7 @@ require 'localio/writers/android_writer'
2
2
  require 'localio/writers/ios_writer'
3
3
  require 'localio/writers/json_writer'
4
4
  require 'localio/writers/rails_writer'
5
+ require 'localio/writers/java_properties_writer'
5
6
 
6
7
  module LocalizableWriter
7
8
  def self.write(platform, languages, terms, path, formatter, options)
@@ -14,8 +15,10 @@ module LocalizableWriter
14
15
  JsonWriter.write languages, terms, path, formatter, options
15
16
  when :rails
16
17
  RailsWriter.write languages, terms, path, formatter, options
18
+ when :java_properties
19
+ JavaPropertiesWriter.write languages, terms, path, formatter, options
17
20
  else
18
- raise ArgumentError, 'Platform not supported! Current possibilities are :android, :ios, :json, :rails'
21
+ raise ArgumentError, 'Platform not supported! Current possibilities are :android, :ios, :json, :rails, :java_properties'
19
22
  end
20
23
  end
21
24
  end
@@ -1,3 +1,3 @@
1
1
  module Localio
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nacho Lopez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-13 00:00:00.000000000 Z
11
+ date: 2014-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec