Sha256: 7dcc3c968c13b3953617af9c68caeaa2114dc06abb2f10529030993d7a5e6f24
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
# Stringer Stringer takes the sting out of `genstrings`, by making it not overwriting your `Localizations.strings` file each time you run `genstrings`. It wraps `genstrings` and adds some basic merging capabilities (add and remove keys). ## Why? When you run `genstrings` it goes through each of your specified `.m` files, looks for `NSLocalizedString`, parses out the key and comment, adds it to a Localizable.strings file. Downside to this utility: it completely overwrites any changes you make to the `Localizations.strings` file (or if you give it the `-a` flag, it will at least append). That's where `stringer` comes in, makes `genstrings` suck less. ## Installation The easiest way to use `stringer` at the moment is to add a `Gemfile` to the root of your project and add `stringer` to it, like so: gem 'stringer' Then execute: $ bundle Now you can create a Rakefile, and add these lines: require "stringer" desc "Run genstrings to update the Localizable.strings files" task :localize do %w(en fr nl).each do |locale| Stringer.run(locale) end end Now you can update your `Localizations.strings` file by running: rake localize Which will output something like this: Generating en.lproj - Added 3 keys (die.tijd;duvels;piet...) - Removed 1 key (dotter...) ## The future `0.2.0`: Add a bin, so the Rake-file shenanigans are no longer necessary. `0.3.0`: Ditch the dependency `genstrings` and fetch strings ourselves. ... `1.0.0`: Installed by default on OSX TomCat ## Contributing Fork it! Improve it! Test it! Rewrite it! (technology) [![Build Status](https://secure.travis-ci.org/pjaspers/stringer.png?branch=master)](http://travis-ci.org/pjaspers/stringer)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stringer-0.0.1 | README.md |