Skip to content

Commit

Permalink
Add localeapp configuration, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed May 19, 2013
1 parent 89fd980 commit 3a02741
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.#*
.DS_Store
.idea
.localeapp/locales
.project
coverage
Gemfile.lock
Expand Down
5 changes: 5 additions & 0 deletions .localeapp/config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Localeapp.configure do |config|
config.translation_data_directory = '.localeapp/locales'
config.synchronization_data_file = '.localeapp/log.yml'
config.daemon_pid_file = '.localeapp/localeapp.pid'
end
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,36 @@ from your Gemfile, add some records and then add spree_i18n gem back you might g
errors like ``undefined method for nilClass`` because Globalize will try fetch
translations that do not exist.*

## Running the tests
## Running the tests

If you would like to run the tests of this project, follow these steps:

1. Clone this repo using `git clone git://github.com/spree/spree_i18n`
2. Change into the directory and run `bundle exec rake test_app` to generate a dummy application.
3. Run `bundle exec rspec spec` to run the tests.

# spree_i18n

A ruby translation project managed on [Locale](http://www.localeapp.com/) that's open to all!

## Contributing to spree_i18n

- Edit the translations directly on the [spree_i18n](http://www.localeapp.com/projects/public?search=spree_i18n) project on Locale.
- **That's it!**
- The maintainer will then pull translations from the Locale project and push to Github.

Happy translating!

## Support Team

First, make sure you have created the temporary directory used by the localeapp gem during pushes, etc.

```
mkdir -p .localeapp/locales
```

Next, if you're one of the community members with the necessary credentials to update the default locale file on localeapp.com then you can do so with the following command.

```
localeapp --api-key=YOURAPIKEYHERE push ../spree/core/config/locales/en.yml
```

0 comments on commit 3a02741

Please sign in to comment.