diff --git a/.gitignore b/.gitignore index cda6c47e..b9a71ee3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .#* .DS_Store .idea +.localeapp/locales .project coverage Gemfile.lock diff --git a/.localeapp/config.rb b/.localeapp/config.rb new file mode 100644 index 00000000..ea8c41d4 --- /dev/null +++ b/.localeapp/config.rb @@ -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 diff --git a/README.md b/README.md index 9e6cbb5e..22f6697a 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file