diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md new file mode 100644 index 000000000..cd7d79ba7 --- /dev/null +++ b/CONTRIBUTE.md @@ -0,0 +1,9 @@ +Contribution +================ + +### Localizations +---------------- +1. Copy ./app/locales/dev and renamed it to locale name - ./app/locales/[localeName] +2. Open ./app/locales/[localeName]/translation.json +3. Replace the values +4. Make *pull request* diff --git a/Gruntfile.js b/Gruntfile.js index 44d124933..b9d228e5e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -268,6 +268,7 @@ module.exports = function (grunt) { '.htaccess', 'images/{,*/}*.{webp,gif}', 'font/*', + 'locales/*/*', 'docs/*.md' ] }, diff --git a/README.md b/README.md index 438f61fd3..e62b32be1 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ You can change storages API keys in app/scripts/constants.js --------------- 1. Hit star button on [github][6] 2. Like us on [alternativeto.net][5] +3. [Contribute][7] ### Tips: [![Fund us on Gittip](https://raw.github.com/gittip/www.gittip.com/master/www/assets/gittip.png)](https://www.gittip.com/Laverna/ "Fund us on Gittip") @@ -61,3 +62,4 @@ Also Laverna uses a lot of other libraries and each of this [libraries uses diff [4]: https://www.gittip.com/Laverna/ [5]: http://alternativeto.net/software/laverna/ [6]: https://github.com/Laverna/laverna +[7]: https://github.com/Laverna/laverna/CONTRIBUTE.md diff --git a/app/docs/README.md b/app/docs/README.md index 1af771483..e62b32be1 100644 --- a/app/docs/README.md +++ b/app/docs/README.md @@ -4,7 +4,7 @@ Laverna is a JavaScript note taking web application with Markdown editor and enc Application stores all your notes in your browser storages such as indexedDB or localStorage, which is good for security reasons, because only you can get access to them. -**Demo**: https://laverna.cc/ +**Demo**: https://laverna.cc/ OR http://laverna.github.io/static-laverna/dist ## Features ----------- @@ -44,6 +44,7 @@ You can change storages API keys in app/scripts/constants.js --------------- 1. Hit star button on [github][6] 2. Like us on [alternativeto.net][5] +3. [Contribute][7] ### Tips: [![Fund us on Gittip](https://raw.github.com/gittip/www.gittip.com/master/www/assets/gittip.png)](https://www.gittip.com/Laverna/ "Fund us on Gittip") @@ -61,3 +62,4 @@ Also Laverna uses a lot of other libraries and each of this [libraries uses diff [4]: https://www.gittip.com/Laverna/ [5]: http://alternativeto.net/software/laverna/ [6]: https://github.com/Laverna/laverna +[7]: https://github.com/Laverna/laverna/CONTRIBUTE.md diff --git a/app/scripts/app.js b/app/scripts/app.js index 44c86dbf3..d50e579c0 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -3,10 +3,11 @@ define([ 'underscore', 'backbone', 'modalRegion', - 'brandRegion', 'collections/configs', - 'marionette', - 'i18next' -], function (_, Backbone, ModalRegion, BrandRegion, Configs) { + 'brandRegion', + 'collections/configs', + 'i18next', + 'marionette' +], function (_, Backbone, ModalRegion, BrandRegion, Configs, i18n) { 'use strict'; // Underscore template diff --git a/app/scripts/collections/configs.js b/app/scripts/collections/configs.js index aa7a365fb..9910e18ff 100644 --- a/app/scripts/collections/configs.js +++ b/app/scripts/collections/configs.js @@ -3,7 +3,8 @@ define([ 'underscore', 'backbone', 'models/config', - 'localStorage' ], function (_, Backbone, Config) { + 'localStorage' +], function (_, Backbone, Config) { 'use strict'; var Configs = Backbone.Collection.extend({ @@ -18,7 +19,7 @@ define([ */ firstStart: function () { // Basic - this.create(new Config({ name: 'appVersion', value: '0.2.0' })); + this.create(new Config({ name: 'appVersion', value: '0.3.0' })); this.create(new Config({ name: 'appLang', value: '' })); this.create(new Config({ name: 'cloudStorage', value: 0 })); this.create(new Config({ name: 'pagination', value: '10' })); diff --git a/app/scripts/constants.js b/app/scripts/constants.js index e73ed30da..d49f3228b 100644 --- a/app/scripts/constants.js +++ b/app/scripts/constants.js @@ -3,7 +3,7 @@ define([ ], function () { 'use strict'; var constants = {}; - constants.VERSION = '0.2.0'; + constants.VERSION = '0.3.0'; constants.URL = 'https://laverna.cc/'; constants.DROPBOX_KEY = '10iirspliqts95d'; diff --git a/app/scripts/main.js b/app/scripts/main.js index 116f620b1..7e80a8c39 100644 --- a/app/scripts/main.js +++ b/app/scripts/main.js @@ -99,6 +99,10 @@ require.config({ dropbox: { exports: 'Dropbox' }, + i18next: { + deps: ['jquery'], + exports: 'i18n' + }, prettify: { exports: 'prettify' } diff --git a/bower.json b/bower.json index e222a4bf3..223c0030f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "laverna", - "version": "0.2.0", + "version": "0.3.0", "dependencies": { "requirejs": "~2.1.11", "requirejs-text": "~2.0.10", diff --git a/package.json b/package.json index fb3c1466f..cd2c3b15c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "laverna", - "version": "0.2.0", + "version": "0.3.0", "dependencies": {}, "devDependencies": { "grunt": "~0.4.1",