From bd0953dce47304cbadc4e538cfd28b1a88fd5266 Mon Sep 17 00:00:00 2001 From: Kevin Everets Date: Tue, 15 Jan 2013 14:58:02 -0500 Subject: [PATCH] Update documentation to reflect addition of gettext formatted files --- README.md | 4 +++- lib/twine/cli.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 036c1dd..0c92049 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Twine -Twine is a command line tool for managing your strings and their translations. These strings are all stored in a master text file and then Twine uses this file to import and export strings in a variety of file types, including iOS and Mac OS X `.strings` files, Android `.xml` files, and [jquery-localize][jquerylocalize] `.json` files. This allows individuals and companies to easily share strings across multiple projects, as well as export strings in any format the user wants. +Twine is a command line tool for managing your strings and their translations. These strings are all stored in a master text file and then Twine uses this file to import and export strings in a variety of file types, including iOS and Mac OS X `.strings` files, Android `.xml` files, gettext `.po` files, and [jquery-localize][jquerylocalize] `.json` files. This allows individuals and companies to easily share strings across multiple projects, as well as export strings in any format the user wants. ## Install @@ -74,6 +74,7 @@ Twine currently supports the following formats for outputting strings: * [iOS and OS X String Resources][applestrings] (format: apple) * [Android String Resources][androidstrings] (format: android) +* [Gettext PO Files][gettextpo] (format: gettext) * [jquery-localize Language Files][jquerylocalize] (format: jquery) If you would like to enable twine to create language files in another format, create an appropriate formatter in `lib/twine/formatters`. @@ -161,4 +162,5 @@ Now, whenever you build your application, Xcode will automatically invoke Twine [INI]: http://en.wikipedia.org/wiki/INI_file [applestrings]: http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/Strings/Strings.html [androidstrings]: http://developer.android.com/guide/topics/resources/string-resource.html +[gettextpo]: http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/PO-Files.html [jquerylocalize]: https://github.com/coderifous/jquery-localize diff --git a/lib/twine/cli.rb b/lib/twine/cli.rb index 1720f6a..d824359 100644 --- a/lib/twine/cli.rb +++ b/lib/twine/cli.rb @@ -15,7 +15,7 @@ module Twine parser = OptionParser.new do |opts| opts.banner = 'Usage: twine COMMAND STRINGS_FILE [INPUT_OR_OUTPUT_PATH] [--lang LANG1,LANG2...] [--tags TAG1,TAG2,TAG3...] [--format FORMAT]' opts.separator '' - opts.separator 'The purpose of this script is to convert back and forth between multiple data formats, allowing us to treat our strings (and translations) as data stored in a text file. We can then use the data file to create drops for the localization team, consume similar drops returned by the localization team, generate reports on the strings, as well as create formatted string files to ship with your products. Twine currently supports iOS, OS X, Android, and jquery-localize string files.' + opts.separator 'The purpose of this script is to convert back and forth between multiple data formats, allowing us to treat our strings (and translations) as data stored in a text file. We can then use the data file to create drops for the localization team, consume similar drops returned by the localization team, generate reports on the strings, as well as create formatted string files to ship with your products. Twine currently supports iOS, OS X, Android, gettext, and jquery-localize string files.' opts.separator '' opts.separator 'Commands:' opts.separator ''