Skip to content
Browse files

merge w/ rails31 branch

  • Loading branch information...
2 parents c3a081b + db78e7b commit f8f3e5f3b2b98189e6a781c4436d4a6ea58cbddd @jsqu99 committed Oct 17, 2011
Showing with 2,228 additions and 225 deletions.
  1. +1 −1 Gemfile
  2. +111 −128 Gemfile.lock
  3. +9 −12 README.md
  4. 0 {public → app/assets}/images/ajax-loader.gif
  5. 0 {public/javascripts → app/assets/javascripts/store}/exclusions.js
  6. 0 {public/stylesheets → app/assets/stylesheets/store}/flexi-variants.css
  7. +1 −1 app/helpers/products_helper_decorator.rb
  8. +5 −0 app/overrides/add_ad_hoc_option_types_to_cart_form.rb
  9. +5 −0 app/overrides/add_admin_tab_for_product_customization_types.rb
  10. +6 −0 app/overrides/add_cart_item_description.rb
  11. +5 −0 app/overrides/add_content_for_head_to_show_product.rb
  12. +5 −0 app/overrides/add_customizations_to_cart_form.rb
  13. +6 −0 app/overrides/add_flexi_configuration_links_to_product_detail_menue.rb
  14. +5 −0 app/overrides/add_pricing_to_cart_form.rb
  15. +5 −0 app/overrides/replace_admin_order_form_line_item_row.rb
  16. +5 −0 app/overrides/replace_line_item_row.rb
  17. +0 −1 app/views/admin/products/_additional_product_sub_menu.html.erb
  18. +1 −1 app/views/products/_content_for_head.html.erb
  19. +2 −2 app/views/products/_pricing.html.erb
  20. +21 −0 db/migrate/20111012204756_add_id_to_ad_hoc_option_values_line_items.rb
  21. +28 −0 lib/generators/spree_flexi_variants/install/install_generator.rb
  22. +5 −3 lib/spree_flexi_variants.rb
  23. +0 −75 lib/spree_flexi_variants_hooks.rb
  24. +85 −0 lib/tasks/spree_flexi_variants.rake
  25. +0 −1 public/placeholder.txt
  26. +1,917 −0 vendor/assets/javascripts/i18n/jquery.formatCurrency.all.js
  27. 0 {public → vendor/assets}/javascripts/jquery.formatCurrency-1.4.0.min.js
View
2 Gemfile
@@ -20,6 +20,6 @@ group :test do
gem 'spree', :git => 'git://github.com/spree/spree.git'
gem 'carrierwave'
gem 'rmagick'
+ gem 'spree_flexi_variants', :git => 'git://github.com/jsqu99/spree_flexi_variants.git'
gem 'sqlite3-ruby'
end
-
View
239 Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/spree/spree.git
- revision: fe57beb0c036946f928ac82d7102048f5d7fa268
+ revision: 2094ce786e236e170e7ab296e65562880cb164e5
specs:
spree (0.70.99)
spree_api (= 0.70.99)
@@ -14,173 +14,164 @@ GIT
spree_core (= 0.70.99)
spree_auth (0.70.99)
cancan (= 1.6.4)
- devise (= 1.3.3)
+ devise (= 1.4.2)
spree_core (= 0.70.99)
spree_core (0.70.99)
activemerchant (= 1.15.0)
- acts_as_list (= 0.1.2)
- deface (= 0.5.0)
+ acts_as_list (= 0.1.4)
+ arel (= 2.1.4)
+ deface (>= 0.6.1)
faker (= 0.9.5)
highline (= 1.5.1)
- meta_search (= 1.0.5)
+ jquery-rails (>= 1.0.12)
+ kaminari (>= 0.12.4)
+ meta_search (= 1.1.0.pre)
nested_set (= 1.6.7)
- paperclip (= 2.3.11)
- rails (= 3.0.9)
+ paperclip (= 2.3.16)
+ rails (= 3.1.0.rc5)
rd_find_by_param (= 0.1.1)
rd_resource_controller
rd_unobtrusive_date_picker (= 0.1.0)
- state_machine (= 0.9.4)
+ state_machine (= 1.0.1)
stringex (= 1.0.3)
- will_paginate (= 3.0.pre2)
spree_dash (0.70.99)
spree_core (= 0.70.99)
spree_promo (0.70.99)
+ spree_auth (= 0.70.99)
spree_core (= 0.70.99)
spree_sample (0.70.99)
spree_core (= 0.70.99)
GEM
remote: http://rubygems.org/
specs:
- abstract (1.0.0)
- actionmailer (3.0.9)
- actionpack (= 3.0.9)
- mail (~> 2.2.19)
- actionpack (3.0.9)
- activemodel (= 3.0.9)
- activesupport (= 3.0.9)
- builder (~> 2.1.2)
- erubis (~> 2.6.6)
- i18n (~> 0.5.0)
- rack (~> 1.2.1)
- rack-mount (~> 0.6.14)
- rack-test (~> 0.5.7)
- tzinfo (~> 0.3.23)
+ actionmailer (3.1.0.rc5)
+ actionpack (= 3.1.0.rc5)
+ mail (~> 2.3.0)
+ actionpack (3.1.0.rc5)
+ activemodel (= 3.1.0.rc5)
+ activesupport (= 3.1.0.rc5)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.1)
+ rack-cache (~> 1.0.2)
+ rack-mount (~> 0.8.1)
+ rack-test (~> 0.6.0)
+ sprockets (~> 2.0.0.beta.12)
activemerchant (1.15.0)
activesupport (>= 2.3.8)
braintree (>= 2.0.0)
builder (>= 2.0.0)
- activemodel (3.0.9)
- activesupport (= 3.0.9)
- builder (~> 2.1.2)
- i18n (~> 0.5.0)
- activerecord (3.0.9)
- activemodel (= 3.0.9)
- activesupport (= 3.0.9)
- arel (~> 2.0.10)
- tzinfo (~> 0.3.23)
- activeresource (3.0.9)
- activemodel (= 3.0.9)
- activesupport (= 3.0.9)
- activesupport (3.0.9)
- acts_as_list (0.1.2)
- archive-tar-minitar (0.5.2)
- arel (2.0.10)
+ activemodel (3.1.0.rc5)
+ activesupport (= 3.1.0.rc5)
+ bcrypt-ruby (~> 2.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.0.rc5)
+ activemodel (= 3.1.0.rc5)
+ activesupport (= 3.1.0.rc5)
+ arel (~> 2.1.4)
+ tzinfo (~> 0.3.29)
+ activeresource (3.1.0.rc5)
+ activemodel (= 3.1.0.rc5)
+ activesupport (= 3.1.0.rc5)
+ activesupport (3.1.0.rc5)
+ multi_json (~> 1.0)
+ acts_as_list (0.1.4)
+ arel (2.1.4)
bcrypt-ruby (2.1.4)
- braintree (2.10.1)
+ braintree (2.10.2)
builder (>= 2.0.0)
- builder (2.1.2)
+ builder (3.0.0)
cancan (1.6.4)
- capybara (1.0.0)
- mime-types (>= 1.16)
- nokogiri (>= 1.3.3)
- rack (>= 1.0.0)
- rack-test (>= 0.5.4)
- selenium-webdriver (~> 0.2.0)
- xpath (~> 0.1.4)
- carrierwave (0.5.6)
+ carrierwave (0.5.7)
activesupport (~> 3.0)
- childprocess (0.1.9)
+ childprocess (0.2.1)
ffi (~> 1.0.6)
+ cocaine (0.1.0)
columnize (0.3.4)
- configuration (1.3.1)
- cucumber (1.0.1)
- builder (>= 2.1.2)
- diff-lcs (>= 1.1.2)
- gherkin (~> 2.4.5)
- json (>= 1.4.6)
- term-ansicolor (>= 1.0.5)
- cucumber-rails (1.0.0)
- capybara (>= 1.0.0)
- cucumber (~> 1.0.0)
- nokogiri (>= 1.4.4)
- rack-test (>= 0.5.7)
- database_cleaner (0.6.7)
- deface (0.5.0)
- nokogiri (~> 1.4.3)
- rails (~> 3.0.0)
- devise (1.3.3)
+ deface (0.6.1)
+ nokogiri (~> 1.5.0)
+ rails (>= 3.0.9)
+ devise (1.4.2)
bcrypt-ruby (~> 2.1.2)
orm_adapter (~> 0.0.3)
warden (~> 1.0.3)
diff-lcs (1.1.2)
- erubis (2.6.6)
- abstract (>= 1.0.0)
+ erubis (2.7.0)
factory_girl (1.3.3)
factory_girl_rails (1.0.1)
factory_girl (~> 1.3)
railties (>= 3.0.0)
faker (0.9.5)
i18n (~> 0.4)
ffi (1.0.9)
- gherkin (2.4.5)
- json (>= 1.4.6)
highline (1.5.1)
- i18n (0.5.0)
- json (1.5.3)
+ hike (1.2.0)
+ i18n (0.6.0)
+ jquery-rails (1.0.13)
+ railties (~> 3.0)
+ thor (~> 0.14)
json_pure (1.5.3)
- launchy (0.4.0)
- configuration (>= 0.0.5)
- rake (>= 0.8.1)
- linecache19 (0.5.12)
- ruby_core_source (>= 0.1.4)
- mail (2.2.19)
- activesupport (>= 2.3.6)
+ kaminari (0.12.4)
+ rails (>= 3.0.0)
+ linecache (0.46)
+ rbx-require-relative (> 0.0.4)
+ mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- meta_search (1.0.5)
- actionpack (~> 3.0.2)
- activerecord (~> 3.0.2)
- activesupport (~> 3.0.2)
- arel (~> 2.0.2)
+ meta_search (1.1.0.pre)
+ actionpack (~> 3.1.0.alpha)
+ activerecord (~> 3.1.0.alpha)
+ activesupport (~> 3.1.0.alpha)
mime-types (1.16)
+ multi_json (1.0.3)
nested_set (1.6.7)
activerecord (>= 3.0.0)
railties (>= 3.0.0)
- nokogiri (1.4.4)
+ nokogiri (1.5.0)
orm_adapter (0.0.5)
- paperclip (2.3.11)
+ paperclip (2.3.16)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
- polyglot (0.3.1)
- rack (1.2.3)
- rack-mount (0.6.14)
+ cocaine (>= 0.0.2)
+ mime-types
+ polyglot (0.3.2)
+ rack (1.3.2)
+ rack-cache (1.0.2)
+ rack (>= 0.4)
+ rack-mount (0.8.2)
rack (>= 1.0.0)
- rack-test (0.5.7)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
rack (>= 1.0)
- rails (3.0.9)
- actionmailer (= 3.0.9)
- actionpack (= 3.0.9)
- activerecord (= 3.0.9)
- activeresource (= 3.0.9)
- activesupport (= 3.0.9)
+ rails (3.1.0.rc5)
+ actionmailer (= 3.1.0.rc5)
+ actionpack (= 3.1.0.rc5)
+ activerecord (= 3.1.0.rc5)
+ activeresource (= 3.1.0.rc5)
+ activesupport (= 3.1.0.rc5)
bundler (~> 1.0)
- railties (= 3.0.9)
- railties (3.0.9)
- actionpack (= 3.0.9)
- activesupport (= 3.0.9)
+ railties (= 3.1.0.rc5)
+ railties (3.1.0.rc5)
+ actionpack (= 3.1.0.rc5)
+ activesupport (= 3.1.0.rc5)
+ rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
- thor (~> 0.14.4)
+ thor (~> 0.14.6)
rake (0.9.2)
- rcov (0.9.9)
+ rbx-require-relative (0.0.5)
+ rcov (0.9.10)
rd_find_by_param (0.1.1)
activerecord (~> 3.0)
activesupport (~> 3.0)
rd_resource_controller (1.0.1)
rd_unobtrusive_date_picker (0.1.0)
- rdoc (3.8)
+ rdoc (3.9.2)
rmagick (2.13.1)
rspec (2.6.0)
rspec-core (~> 2.6.0)
@@ -195,56 +186,48 @@ GEM
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.6.0)
- ruby-debug-base19 (0.11.25)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby_core_source (>= 0.1.4)
- ruby-debug19 (0.11.6)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby-debug-base19 (>= 0.11.19)
- ruby_core_source (0.1.5)
- archive-tar-minitar (>= 0.5.2)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
rubyzip (0.9.4)
selenium-webdriver (0.2.1)
childprocess (>= 0.1.7)
ffi (>= 1.0.7)
json_pure
rubyzip
shoulda (2.11.3)
- sqlite3 (1.3.3)
+ sprockets (2.0.0.beta.13)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.4)
sqlite3-ruby (1.3.3)
sqlite3 (>= 1.3.3)
- state_machine (0.9.4)
+ state_machine (1.0.1)
stringex (1.0.3)
- term-ansicolor (1.0.5)
thor (0.14.6)
- treetop (1.4.9)
+ tilt (1.3.2)
+ treetop (1.4.10)
+ polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.29)
- warden (1.0.4)
+ warden (1.0.5)
rack (>= 1.0)
- will_paginate (3.0.pre2)
- xpath (0.1.4)
- nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
- capybara (= 1.0.0)
carrierwave
- cucumber-rails
- database_cleaner (= 0.6.7)
factory_girl (= 1.3.3)
factory_girl_rails (= 1.0.1)
faker
- launchy
- nokogiri (= 1.4.4)
rcov
rmagick
rspec-rails (= 2.6.1)
- ruby-debug19
+ ruby-debug
selenium-webdriver (= 0.2.1)
shoulda
spree!
View
21 README.md
@@ -1,7 +1,8 @@
Version Notes
=============
-Give the master branch a try first. It is more feature rich and currently the only branch under development. If you are on spree 0.60 and have any trouble with master, drop me a note, and then give the pre-deface-stable branch a try.
+This is the rails 3.1-compatible version. It is bleeding edge, but there are no known issues at this point.
+
SpreeFlexiVariants
==================
@@ -29,23 +30,19 @@ Installation
Add to Gemfile:
- # for master
gem 'spree', :git => 'git://github.com/spree/spree.git'
- gem 'json'
gem 'rmagick'
gem 'carrierwave'
- gem 'spree_flexi_variants', :git=>'git@github.com:jsqu99/spree_flexi_variants.git'
-
- # alternatively, if you want spree 0.60.x version:
- # gem 'spree', '0.60.0'
- # gem 'json'
- # gem 'rmagick'
- # gem 'carrierwave'
- # gem 'spree_flexi_variants', :git=>'git@github.com:jsqu99/spree_flexi_variants.git', :branch => 'pre-deface-stable'
+ gem 'spree_flexi_variants', :git=>'git@github.com:jsqu99/spree_flexi_variants.git', :branch => 'rails31'
bundle install
- bundle exec rake db:create && bundle exec rails g spree:site && bundle exec rake spree:install && bundle exec rake spree_flexi_variants:install && bundle exec rake db:bootstrap
+ # I'm still figuring out how to correctly bootstrap the edge-spree version. Unsure of this below:
+
+ bundle exec rake db:create
+ bundle exec rails g spree:site
+ bundle exec rails g spree_flexi_variants:install # this is the important step to integrate this extension
+ bundle exec rake db:bootstrap
## Examples
View
0 public/images/ajax-loader.gif → app/assets/images/ajax-loader.gif
File renamed without changes
View
0 public/javascripts/exclusions.js → app/assets/javascripts/store/exclusions.js
File renamed without changes.
View
0 public/stylesheets/flexi-variants.css → ...sets/stylesheets/store/flexi-variants.css
File renamed without changes.
View
2 app/helpers/products_helper_decorator.rb
@@ -73,7 +73,7 @@ def ad_hoc_option_value_options(ad_hoc_option_values)
end
price_change_text = ah_ov.price_modifier == 0 ? "" : " (#{plus_or_minus} #{format_price ah_ov.price_modifier.abs})"
- [(ah_ov.price_modifier.nil? ? ah_ov.option_value.presentation : "#{ah_ov.option_value.presentation}#{price_change_text}"), ah_ov.id.to_s]
+ [(ah_ov.price_modifier.nil? ? ah_ov.option_value.presentation : "#{ah_ov.option_value.presentation} #{"(#{plus_or_minus} #{format_price ah_ov.price_modifier.abs})" unless ah_ov.price_modifier.abs == 0 }"), ah_ov.id.to_s]
end
end
View
5 app/overrides/add_ad_hoc_option_types_to_cart_form.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "products/_cart_form",
+ :name => "converted_product_price_733808074",
+ :insert_after => "[data-hook='product_price'], #product_price[data-hook]",
+ :partial => "products/ad_hoc_option_types",
+ :disabled => false)
View
5 app/overrides/add_admin_tab_for_product_customization_types.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "admin/shared/_product_sub_menu",
+ :name => "converted_admin_product_sub_tabs_203014347",
+ :insert_bottom => "[data-hook='admin_product_sub_tabs'], #admin_product_sub_tabs[data-hook]",
+ :text => %{<%= tab :product_customization_types, :match_path => '/product_customization_types'},
+ :disabled => false)
View
6 app/overrides/add_cart_item_description.rb
@@ -0,0 +1,6 @@
+Deface::Override.new(:virtual_path => "orders/_line_item",
+ :name => "converted_cart_item_description_722158932",
+ :insert_bottom => "[data-hook='cart_item_description'], #cart_item_description[data-hook]",
+ :partial => "orders/cart_item_description",
+ :disabled => false)
+
View
5 app/overrides/add_content_for_head_to_show_product.rb
@@ -0,0 +1,5 @@
+ Deface::Override.new(:virtual_path => "products/show",
+ :name => "converted_cart_form_594755007",
+ :insert_before => "[data-hook='cart_form'], #cart-form[data-hook]",
+ :partial => "products/content_for_head",
+ :disabled => false)
View
5 app/overrides/add_customizations_to_cart_form.rb
@@ -0,0 +1,5 @@
+ Deface::Override.new(:virtual_path => "products/_cart_form",
+ :name => "converted_product_price_290656527",
+ :insert_after => "[data-hook='product_price'], #product_price[data-hook]",
+ :partial => "products/customizations",
+ :disabled => false)
View
6 app/overrides/add_flexi_configuration_links_to_product_detail_menue.rb
@@ -0,0 +1,6 @@
+Deface::Override.new(:virtual_path => "admin/shared/_product_tabs",
+ :name => "converted_admin_product_tabs_983418929",
+ :insert_bottom => "[data-hook='admin_product_tabs'], #admin_product_tabs[data-hook]",
+ :partial => "admin/products/additional_product_tabs",
+ :disabled => false)
+
View
5 app/overrides/add_pricing_to_cart_form.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "products/_cart_form",
+ :name => "converted_product_price_331970321",
+ :insert_after => "[data-hook='product_price'], #product_price[data-hook]",
+ :partial => "products/pricing",
+ :disabled => false)
View
5 app/overrides/replace_admin_order_form_line_item_row.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "admin/orders/_line_item",
+ :name => "converted_admin_order_form_line_item_row_459848395",
+ :replace => "[data-hook='admin_order_form_line_item_row'], #admin_order_form_line_item_row[data-hook]",
+ :partial => "admin/orders/admin_order_form_line_item_row",
+ :disabled => false)
View
5 app/overrides/replace_line_item_row.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "shared/_order_details",
+ :name => "converted_order_details_line_item_row_27877400",
+ :replace => "[data-hook='order_details_line_item_row'], #order_details_line_item_row[data-hook]",
+ :partial => "shared/order_details_line_item_row",
+ :disabled => false)
View
1 app/views/admin/products/_additional_product_sub_menu.html.erb
@@ -1 +0,0 @@
-<%= tab :product_customization_types, :match_path => '/product_customization_types' %>
View
2 app/views/products/_content_for_head.html.erb
@@ -1,6 +1,6 @@
<% content_for :head do %>
- <%= stylesheet_link_tag 'flexi-variants' %>
+ <%= stylesheet_link_tag 'store/flexi-variants' %>
<%= javascript_tag do %>
var cartFormValidator;
View
4 app/views/products/_pricing.html.erb
@@ -4,7 +4,7 @@
%>
<% content_for :head do %>
- <%= javascript_include_tag 'jquery.formatCurrency-1.4.0.min' %>
+ <%= javascript_include_tag 'jquery.formatCurrency-1.4.0.min.js', 'i18n/jquery.formatCurrency.all.js' %>
<%# didn't use javascript_tag here so we don't confuse deface %>
<script type="text/javascript">
//<![CDATA[
@@ -122,7 +122,7 @@
var cur_customization_price = compute_customization_price();
var cur_price =base_price + cur_variant_price_diff + cur_configuration_price + cur_customization_price;
- $('.price.selling').text(cur_price.toFixed(2)).formatCurrency();
+ $('.price.selling').text(cur_price.toFixed(2)).formatCurrency({region: "<%= I18n.locale.to_s %>"});
}
//]]>
View
21 db/migrate/20111012204756_add_id_to_ad_hoc_option_values_line_items.rb
@@ -0,0 +1,21 @@
+class AddIdToAdHocOptionValuesLineItems < ActiveRecord::Migration
+ def self.up
+ drop_table :ad_hoc_option_values_line_items
+
+ create_table :ad_hoc_option_values_line_items do |t|
+ t.integer :line_item_id
+ t.integer :ad_hoc_option_value_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :ad_hoc_option_values_line_items
+
+ create_table :ad_hoc_option_values_line_items, :id=>false do |t|
+ t.integer :line_item_id
+ t.integer :ad_hoc_option_value_id
+ t.timestamps
+ end
+ end
+end
View
28 lib/generators/spree_flexi_variants/install/install_generator.rb
@@ -0,0 +1,28 @@
+module SpreeFlexiVariants
+ module Generators
+ class InstallGenerator < Rails::Generators::Base
+
+ def add_javascripts
+ append_file "app/assets/javascripts/store/all.js", "//= require store/exclusions\n"
+ append_file "app/assets/javascripts/store/all.js", "//= require jquery.formatCurrency-1.4.0.min\n"
+ end
+
+ def add_stylesheets
+ inject_into_file "app/assets/stylesheets/store/all.css", " *= require store/flexi-variants\n", :before => /\*\//, :verbose => true
+ end
+
+ def add_migrations
+ run 'rake railties:install:migrations FROM=spree_flexi_variants'
+ end
+
+ def run_migrations
+ res = ask "Would you like to run the migrations now? [Y/n]"
+ if res == "" || res.downcase == "y"
+ run 'rake db:migrate'
+ else
+ puts "Skipping rake db:migrate, don't forget to run it!"
+ end
+ end
+ end
+ end
+end
View
8 lib/spree_flexi_variants.rb
@@ -1,16 +1,18 @@
require 'spree_core'
-require 'spree_flexi_variants_hooks'
module SpreeFlexiVariants
class Engine < Rails::Engine
+ engine_name 'spree_flexi_variants'
config.autoload_paths += %W(#{config.root}/lib)
def self.activate
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
- Rails.env.production? ? require(c) : load(c)
+ Rails.application.config.cache_classes ? require(c) : load(c)
+ end
+ Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/**/*.rb")) do |c|
+ Rails.application.config.cache_classes ? require(c) : load(c)
end
-
initializer "spree.register.calculators" do |app|
app.config.spree.calculators.product_customization_types = [
Calculator::Engraving,
View
75 lib/spree_flexi_variants_hooks.rb
@@ -1,75 +0,0 @@
-class SpreeFlexiVariantsHooks < Spree::ThemeSupport::HookListener
-
- def self.perform_deface_customizations
- Deface::Override.new(:virtual_path => "admin/shared/_product_sub_menu",
- :name => "converted_admin_product_sub_tabs_203014347",
- :insert_bottom => "[data-hook='admin_product_sub_tabs'], #admin_product_sub_tabs[data-hook]",
- :partial => "admin/products/additional_product_sub_menu",
- :disabled => false)
- Deface::Override.new(:virtual_path => "admin/shared/_product_tabs",
- :name => "converted_admin_product_tabs_983418929",
- :insert_bottom => "[data-hook='admin_product_tabs'], #admin_product_tabs[data-hook]",
- :partial => "admin/products/additional_product_tabs",
- :disabled => false)
- Deface::Override.new(:virtual_path => "products/_cart_form",
- :name => "converted_product_price_733808074",
- :insert_after => "[data-hook='product_price'], #product_price[data-hook]",
- :partial => "products/ad_hoc_option_types",
- :disabled => false)
- Deface::Override.new(:virtual_path => "products/_cart_form",
- :name => "converted_product_price_290656527",
- :insert_after => "[data-hook='product_price'], #product_price[data-hook]",
- :partial => "products/customizations",
- :disabled => false)
- Deface::Override.new(:virtual_path => "products/_cart_form",
- :name => "converted_product_price_331970321",
- :insert_after => "[data-hook='product_price'], #product_price[data-hook]",
- :partial => "products/pricing",
- :disabled => false)
- Deface::Override.new(:virtual_path => "shared/_order_details",
- :name => "converted_order_details_line_item_row_27877400",
- :replace => "[data-hook='order_details_line_item_row'], #order_details_line_item_row[data-hook]",
- :partial => "shared/order_details_line_item_row",
- :disabled => false)
- Deface::Override.new(:virtual_path => "orders/_line_item",
- :name => "converted_cart_item_description_722158932",
- :insert_bottom => "[data-hook='cart_item_description'], #cart_item_description[data-hook]",
- :partial => "orders/cart_item_description",
- :disabled => false)
- Deface::Override.new(:virtual_path => "admin/orders/_line_item",
- :name => "converted_admin_order_form_line_item_row_459848395",
- :replace => "[data-hook='admin_order_form_line_item_row'], #admin_order_form_line_item_row[data-hook]",
- :partial => "admin/orders/admin_order_form_line_item_row",
- :disabled => false)
- Deface::Override.new(:virtual_path => "products/show",
- :name => "converted_cart_form_594755007",
- :insert_before => "[data-hook='cart_form'], #cart-form[data-hook]",
- :partial => "products/content_for_head",
- :disabled => false)
-
- end
-
- # detect if we have Deface support
- begin
- Deface::const_get "Deface"
- self.perform_deface_customizations
- rescue NameError
- # we are old-school spree (0.60.* and below)
- insert_after :admin_product_sub_tabs, 'admin/products/additional_product_sub_menu'
- insert_after :admin_product_tabs, 'admin/products/additional_product_tabs'
- insert_after :product_price, 'products/ad_hoc_option_types'
- insert_after :product_price, 'products/customizations'
- insert_after :product_price, 'products/pricing'
-
- replace :order_details_line_item_row, 'shared/order_details_line_item_row'
- replace :cart_item_description, 'orders/cart_item_description'
- replace :admin_order_form_line_item_row, 'admin/orders/admin_order_form_line_item_row'
-
- insert_before :cart_form, 'products/content_for_head'
- end
-
-end
-
-
-
-
View
85 lib/tasks/spree_flexi_variants.rake
@@ -0,0 +1,85 @@
+require 'active_record'
+require 'custom_fixtures'
+require 'fileutils'
+include FileUtils::Verbose
+
+namespace :db do
+ desc "Standart migrations"
+ task :migrate do
+ Rake::Task["spree_flexi_variants:db:migrate"].invoke
+ end
+
+ desc "Loads a specified fixture using rake db:load_file[filename.rb]"
+ task :seed do
+ Rake::Task["spree_flexi_variants:db:load_dir"].invoke("default")
+ end
+end
+
+namespace :spree_flexi_variants do
+ namespace :db do
+ desc "Custom migrations"
+ task :migrate do
+ require 'erb'
+ require 'logger'
+ require 'active_record'
+ reference = YAML::load(ERB.new(IO.read("#{Rails.root}/config/database.yml")).result)
+ env = RAILS_ENV = ENV['RAILS_ENV'] || 'development'
+ ActiveRecord::Base.logger = Logger.new(STDOUT)
+ ActiveRecord::Base.logger.level = Logger::WARN
+ ActiveRecord::Base.configurations = reference.dup
+ reference.each_key do |name|
+ next unless name.include? env
+ puts "Migrating #{name} spree_flexi_variants"
+ ActiveRecord::Base.clear_active_connections!
+ ActiveRecord::Base.configurations[env] = reference[name]
+ ActiveRecord::Base.establish_connection RAILS_ENV
+ ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
+ ActiveRecord::Migrator.migrate("#{File.expand_path('../..', File.dirname(__FILE__))}/db/migrate", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
+ Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
+ end
+ end
+
+ desc "Loads a specified fixture using rake db:load_file[filename.rb]"
+ task :seed do
+ Rake::Task["spree_flexi_variants:db:load_dir"].invoke("default")
+ end
+
+ desc "Loads a specified fixture using rake db:load_file[filename.rb]"
+ task :load_file, [:file] => :environment do |t, args|
+ file = args.file
+ ext = File.extname file
+ if ext == ".csv" or ext == ".yml"
+ puts "loading fixture " + file
+ Fixtures.create_fixtures(File.dirname(file), File.basename(file, '.*'))
+ else
+ if File.exists? file
+ puts "loading ruby " + file
+ require file
+ end
+ end
+ end
+
+ desc "Loads fixtures from the the dir you specify using rake db:load_dir[loadfrom]"
+ task :load_dir, [:dir] => :environment do |t, args|
+ dir = args.dir
+ fixtures = ActiveSupport::OrderedHash.new
+ ruby_files = ActiveSupport::OrderedHash.new
+ Dir.glob(File.join(File.expand_path('../..', File.dirname(__FILE__)), "db", dir, '*.{yml,csv,rb}')).each do |fixture_file|
+ ext = File.extname fixture_file
+ if ext == ".rb"
+ ruby_files[File.basename(fixture_file, '.*')] = fixture_file
+ else
+ fixtures[File.basename(fixture_file, '.*')] = fixture_file
+ end
+ end
+ fixtures.sort.each do |fixture, fixture_file|
+ # an invoke will only execute the task once
+ Rake::Task["db:load_file"].execute(Rake::TaskArguments.new([:file], [fixture_file]))
+ end
+ ruby_files.sort.each do |fixture, ruby_file|
+ # an invoke will only execute the task once
+ Rake::Task["db:load_file"].execute(Rake::TaskArguments.new([:file], [ruby_file]))
+ end
+ end
+ end
+end
View
1 public/placeholder.txt
@@ -1 +0,0 @@
-so git will add my public directory
View
1,917 vendor/assets/javascripts/i18n/jquery.formatCurrency.all.js
@@ -0,0 +1,1917 @@
+// This file is part of the jQuery formatCurrency Plugin.
+//
+// The jQuery formatCurrency Plugin is free software: you can redistribute it
+// and/or modify it under the terms of the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// The jQuery formatCurrency Plugin is distributed in the hope that it will
+// be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along with
+// the jQuery formatCurrency Plugin. If not, see <http://www.gnu.org/licenses/>.
+
+(function($) {
+
+ $.formatCurrency.regions['af-ZA'] = {
+ symbol: 'R',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['am-ET'] = {
+ symbol: 'ETB',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-AE'] = {
+ symbol: 'د.إ.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-BH'] = {
+ symbol: 'د.ب.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-DZ'] = {
+ symbol: 'د.ج.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-EG'] = {
+ symbol: 'ج.م.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-IQ'] = {
+ symbol: 'د.ع.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-JO'] = {
+ symbol: 'د.ا.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-KW'] = {
+ symbol: 'د.ك.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-LB'] = {
+ symbol: 'ل.ل.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-LY'] = {
+ symbol: 'د.ل.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-MA'] = {
+ symbol: 'د.م.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-OM'] = {
+ symbol: 'ر.ع.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-QA'] = {
+ symbol: 'ر.ق.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-SA'] = {
+ symbol: 'ر.س.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-SY'] = {
+ symbol: 'ل.س.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-TN'] = {
+ symbol: 'د.ت.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ar-YE'] = {
+ symbol: 'ر.ي.‏',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['arn-CL'] = {
+ symbol: '$',
+ positiveFormat: '%s %n',
+ negativeFormat: '-%s %n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['as-IN'] = {
+ symbol: '',
+ positiveFormat: '%n%s',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['az-Cyrl-AZ'] = {
+ symbol: 'ман.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['az-Latn-AZ'] = {
+ symbol: 'man.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ba-RU'] = {
+ symbol: 'һ.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['be-BY'] = {
+ symbol: 'р.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['bg-BG'] = {
+ symbol: 'лв',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['bn-BD'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['bn-IN'] = {
+ symbol: 'টা',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['bo-CN'] = {
+ symbol: '¥',
+ positiveFormat: '%s%n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['br-FR'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['bs-Cyrl-BA'] = {
+ symbol: 'КМ',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['bs-Latn-BA'] = {
+ symbol: 'KM',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ca-ES'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['co-FR'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['cs-CZ'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['cy-GB'] = {
+ symbol: '£',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['da-DK'] = {
+ symbol: 'kr',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['de-AT'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '-%s %n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['de-CH'] = {
+ symbol: 'SFr.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: '\'',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['de-DE'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['de-LI'] = {
+ symbol: 'CHF',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: '\'',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['de-LU'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['de'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['dsb-DE'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['dv-MV'] = {
+ symbol: 'ރ.',
+ positiveFormat: '%n %s',
+ negativeFormat: '%n %s-',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['el-GR'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-029'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-AU'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-BZ'] = {
+ symbol: 'BZ$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-CA'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-GB'] = {
+ symbol: '£',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-IE'] = {
+ symbol: '',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-IN'] = {
+ symbol: 'Rs.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-JM'] = {
+ symbol: 'J$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-MY'] = {
+ symbol: 'RM',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-NZ'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-PH'] = {
+ symbol: 'Php',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-SG'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-TT'] = {
+ symbol: 'TT$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-ZA'] = {
+ symbol: 'R',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['en-ZW'] = {
+ symbol: 'Z$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-AR'] = {
+ symbol: '$',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-BO'] = {
+ symbol: '$b',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-CL'] = {
+ symbol: '$',
+ positiveFormat: '%s %n',
+ negativeFormat: '-%s %n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-CO'] = {
+ symbol: '$',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-CR'] = {
+ symbol: '',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-DO'] = {
+ symbol: 'RD$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-EC'] = {
+ symbol: '$',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-ES'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-GT'] = {
+ symbol: 'Q',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-HN'] = {
+ symbol: 'L.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-MX'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-NI'] = {
+ symbol: 'C$',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-PA'] = {
+ symbol: 'B/.',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-PE'] = {
+ symbol: 'S/.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-PR'] = {
+ symbol: '$',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-PY'] = {
+ symbol: 'Gs',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-SV'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-US'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-UY'] = {
+ symbol: '$U',
+ positiveFormat: '%s %n',
+ negativeFormat: '(%s %n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es-VE'] = {
+ symbol: 'Bs',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['es'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['et-EE'] = {
+ symbol: 'kr',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: '.',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['eu-ES'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fa-IR'] = {
+ symbol: 'ريال',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s%n-',
+ decimalSymbol: '/',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fi-FI'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fil-PH'] = {
+ symbol: 'PhP',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fo-FO'] = {
+ symbol: 'kr',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr-BE'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr-CA'] = {
+ symbol: '$',
+ positiveFormat: '%n %s',
+ negativeFormat: '(%n %s)',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr-CH'] = {
+ symbol: 'SFr.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: '\'',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr-FR'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr-LU'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr-MC'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fr'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['fy-NL'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ga-IE'] = {
+ symbol: '',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['gl-ES'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['gsw-FR'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['gu-IN'] = {
+ symbol: 'રૂ',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ha-Latn-NG'] = {
+ symbol: 'N',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['he-IL'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['hi-IN'] = {
+ symbol: 'रु',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['hr-BA'] = {
+ symbol: 'KM',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['hr-HR'] = {
+ symbol: 'kn',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['hsb-DE'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['hu-HU'] = {
+ symbol: 'Ft',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['hy-AM'] = {
+ symbol: 'դր.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['id-ID'] = {
+ symbol: 'Rp',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ig-NG'] = {
+ symbol: 'N',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ii-CN'] = {
+ symbol: '¥',
+ positiveFormat: '%s%n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['is-IS'] = {
+ symbol: 'kr.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['it-CH'] = {
+ symbol: 'SFr.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: '\'',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['it-IT'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '-%s %n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['it'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '-%s %n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['iu-Cans-CA'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['iu-Latn-CA'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ja-JP'] = {
+ symbol: '¥',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ja'] = {
+ symbol: '¥',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ka-GE'] = {
+ symbol: 'Lari',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['kk-KZ'] = {
+ symbol: 'Т',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '-',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['kl-GL'] = {
+ symbol: 'kr.',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['km-KH'] = {
+ symbol: '',
+ positiveFormat: '%n%s',
+ negativeFormat: '-%n%s',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['kn-IN'] = {
+ symbol: 'ರೂ',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ko-KR'] = {
+ symbol: '',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['kok-IN'] = {
+ symbol: 'रु',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ky-KG'] = {
+ symbol: 'сом',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: '-',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['lb-LU'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['lo-LA'] = {
+ symbol: '',
+ positiveFormat: '%n%s',
+ negativeFormat: '(%n%s)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['lt-LT'] = {
+ symbol: 'Lt',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['lv-LV'] = {
+ symbol: 'Ls',
+ positiveFormat: '%s %n',
+ negativeFormat: '-%s %n',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['mi-NZ'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['mk-MK'] = {
+ symbol: 'ден.',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ml-IN'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['mn-MN'] = {
+ symbol: '',
+ positiveFormat: '%n%s',
+ negativeFormat: '-%n%s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['mn-Mong-CN'] = {
+ symbol: '¥',
+ positiveFormat: '%s%n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['moh-CA'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['mr-IN'] = {
+ symbol: 'रु',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ms-BN'] = {
+ symbol: '$',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ms-MY'] = {
+ symbol: 'R',
+ positiveFormat: '%s%n',
+ negativeFormat: '(%s%n)',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['mt-MT'] = {
+ symbol: 'Lm',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['nb-NO'] = {
+ symbol: 'kr',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['ne-NP'] = {
+ symbol: 'रु',
+ positiveFormat: '%s%n',
+ negativeFormat: '-%s%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['nl-BE'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['nl-NL'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: '.',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['nn-NO'] = {
+ symbol: 'kr',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['nso-ZA'] = {
+ symbol: 'R',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s-%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['oc-FR'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['or-IN'] = {
+ symbol: '',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['pa-IN'] = {
+ symbol: 'ਰੁ',
+ positiveFormat: '%s %n',
+ negativeFormat: '%s -%n',
+ decimalSymbol: '.',
+ digitGroupSymbol: ',',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['pl-PL'] = {
+ symbol: '',
+ positiveFormat: '%n %s',
+ negativeFormat: '-%n %s',
+ decimalSymbol: ',',
+ digitGroupSymbol: ' ',
+ groupDigits: true
+ };
+
+ $.formatCurrency.regions['prs-AF'