traduco 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/library/traduco/cli.rb +8 -8
- metadata +2 -2
data/library/traduco/cli.rb
CHANGED
@@ -13,7 +13,7 @@ module Traduco
|
|
13
13
|
|
14
14
|
def parse_args
|
15
15
|
parser = OptionParser.new do |opts|
|
16
|
-
opts.banner = 'Usage:
|
16
|
+
opts.banner = 'Usage: traduco COMMAND STRINGS_FILE [INPUT_OR_OUTPUT_PATH] [--lang LANG1,LANG2...] [--tags TAG1,TAG2,TAG3...] [--format FORMAT]'
|
17
17
|
opts.separator ''
|
18
18
|
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. Traduco currently supports iOS, OS X, Android, gettext, and jquery-localize string files.'
|
19
19
|
opts.separator ''
|
@@ -90,13 +90,13 @@ module Traduco
|
|
90
90
|
opts.separator ''
|
91
91
|
opts.separator 'Examples:'
|
92
92
|
opts.separator ''
|
93
|
-
opts.separator '>
|
94
|
-
opts.separator '>
|
95
|
-
opts.separator '>
|
96
|
-
opts.separator '>
|
97
|
-
opts.separator '>
|
98
|
-
opts.separator '>
|
99
|
-
opts.separator '>
|
93
|
+
opts.separator '> traduco generate-string-file strings.txt ko.xml --tags FT'
|
94
|
+
opts.separator '> traduco generate-all-string-files strings.txt Resources/Locales/ --tags FT,FB'
|
95
|
+
opts.separator '> traduco consume-string-file strings.txt ja.strings'
|
96
|
+
opts.separator '> traduco consume-all-string-files strings.txt Resources/Locales/ --developer-language en'
|
97
|
+
opts.separator '> traduco generate-loc-drop strings.txt LocDrop5.zip --tags FT,FB --format android --lang de,en,en-GB,ja,ko'
|
98
|
+
opts.separator '> traduco consume-loc-drop strings.txt LocDrop5.zip'
|
99
|
+
opts.separator '> traduco generate-report strings.txt'
|
100
100
|
end
|
101
101
|
parser.parse! @args
|
102
102
|
|