Project

ricotta

0.01
No commit activity in last 3 years
No release in over 3 years
Tool for downloading translations from Ricotta
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9.2
~> 0.6.1

Runtime

~> 4.1.2
~> 0.8.0
 Project Readme

Ricotta is a web based translation management tool, with complimentary build tools, to efficiently manage localized resources in your software project.

About

The ricotta gem integrates with the Ricotta translation tool to make it easier to keep translations up to date in your software projects, all from the command line.

Installation

gem install ricotta

Usage

$ ricotta

Download translations from Ricotta

Commands:
dump                 Dump translations from Ricotta into local files.
help                 Display global or [command] help documentation.
install:xcode        Fetch translations from Ricotta and install them into an Xcode project

Global Options:
-h, --help           Display help documentation 
-v, --version        Display version information 
-t, --trace          Display backtrace when an error occurs 

Install into an Xcode project

$ cd projects/MyXcodeProject
$ ricotta install:xcode -u http://ricotta-open.appspot.com \
                        -p MyRicottaProject \
                        -l en

Or by recommendation, create a .ricottarc file (see below) and execute.

$ ricotta install:xcode

Configuration

You can configure ricotta by using a ricotta configuration file. The recommended name is .ricottarc but a custom file can be passed by using the -c option.

# My Ricotta configuration
url: http://ricotta-open.appspot.com
project: MyProject
language: en,es,pt
branch: staging
template: my_translation_template

Ricotta automatically searches for .ricottarc in the current working directory and in the users home directory. Multiple configurations are automatically merged.

Multiple configurations example:

# Global config in ~/.ricottarc
url: http://ricotta.mycompany.com
subset: ios

App configurations

# /Users/es/dev/projects/MyiOSApp
project: MyApp
language: en,es
name_token: appName

And

# /Users/es/dev/projects/MyOtheriOSApp
project: MyOtherApp
language: en,pt,ru
name_token: applicationName
subset: iphone  #override global config

Contact

Erik Sundin

License

Ricotta gem is available under the MIT license. See the LICENSE file for more info.