From bcce178a4faa92fd36db9bbd5f7cb214a9982300 Mon Sep 17 00:00:00 2001 From: Agnieszka Figiel Date: Wed, 12 Feb 2014 09:19:49 +0000 Subject: [PATCH 01/58] upgraded ember I18n & CLDR libraries --- app/javascripts/app.js | 4 +- app/javascripts/locales/en.js | 3 - .../templates/location_view.handlebars | 2 +- .../templates/report_view.handlebars | 8 +- .../templates/saved_search.handlebars | 2 +- .../taxon_concept_history_view.handlebars | 2 +- .../vendor/{plurals.js => cldr-1.0.0.js} | 68 +++--- app/javascripts/vendor/ember-i18n.js | 167 -------------- app/javascripts/vendor/i18n.js | 215 ++++++++++++++++++ 9 files changed, 254 insertions(+), 217 deletions(-) rename app/javascripts/vendor/{plurals.js => cldr-1.0.0.js} (82%) delete mode 100644 app/javascripts/vendor/ember-i18n.js create mode 100644 app/javascripts/vendor/i18n.js diff --git a/app/javascripts/app.js b/app/javascripts/app.js index c9e83f7..0f711f8 100644 --- a/app/javascripts/app.js +++ b/app/javascripts/app.js @@ -6,8 +6,8 @@ require('checklist/vendor/spin.min'); require('checklist/vendor/ember'); require('checklist/vendor/ember-data'); -require('checklist/vendor/plurals'); -require('checklist/vendor/ember-i18n'); +require('checklist/vendor/cldr-1.0.0'); +require('checklist/vendor/i18n'); minispade.requireAll(/locales/); minispade.requireAll(/templates/); diff --git a/app/javascripts/locales/en.js b/app/javascripts/locales/en.js index 89de974..34832a1 100644 --- a/app/javascripts/locales/en.js +++ b/app/javascripts/locales/en.js @@ -29,7 +29,4 @@ Em.I18n.locales.en = { 'reports.generating.title': 'Currently Generating Reportings', 'reports.latest.title': 'Your report is being generated', - 'results.count.zero': 'taxa', - 'results.count.one': 'taxon', - 'results.count.other': 'taxa' }; diff --git a/app/javascripts/templates/location_view.handlebars b/app/javascripts/templates/location_view.handlebars index 703a13c..ab264fd 100644 --- a/app/javascripts/templates/location_view.handlebars +++ b/app/javascripts/templates/location_view.handlebars @@ -1,5 +1,5 @@
- {{tt locations.count countBinding="view.count" + {{t locations.count countBinding="view.count" tagName=""}}