New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency improvements #1780

Merged
merged 15 commits into from Dec 7, 2015

install sql, add new currencies and update i18n

  • Loading branch information...
gillesbourgeat committed Nov 17, 2015
commit ca68f71f0c958355be1beb0b504ef5b50698481c
View
@@ -1074,4 +1074,49 @@
'tax rule - create form' => 'tax rule - creation form',
'tax rule - delete form' => 'tax rule - deletion form',
'tinymce wysiwyg editor' => 'tinymce wysiwyg editor',
'Franc' => 'Franc',
'Peso' => 'Peso',
'Złoty' => 'Złoty',
'Yuan' => 'Yuan',
'Krone' => 'Krone',
'Lei' => 'Lei',
'Guaraní' => 'Guaraní',
'Peso Argentino' => 'Peso Argentino',
'Belarusian ruble' => 'Belarusian ruble',
'Dollar' => 'Dollar',
'Dinar' => 'Dinar',
'Krona' => 'Krona',
'Croatian Kuna' => 'Croatian Kuna',
'Danish krone' => 'Danish krone',
'Nigerian naira' => 'Nigerian naira',
'Hong Kong Dollar' => 'Hong Kong Dollar',
'Dollar (CAD)' => 'Dollar (CAD)',
'Riyal' => 'Riyal',
'Czech koruna' => 'Czech koruna',
'Colón' => 'Colón',
'Manat' => 'Manat',
'Rupiah' => 'Rupiah',
'Rupee' => 'Rupee',
'Real' => 'Real',
'Đồng' => 'Đồng',
'Philippine Peso' => 'Philippine Peso',
'Quetzal' => 'Quetzal',
'Lira' => 'Lira',
'Yen' => 'Yen',
'Ruble' => 'Ruble',
'Nuevo Sol' => 'Nuevo Sol',
'Pound' => 'Pound',
'Lari' => 'Lari',
'Boliviano' => 'Boliviano',
'United Arab Emirates dirham' => 'United Arab Emirates dirham',
'Baht' => 'Baht',
'Shekel' => 'Shekel',
'Ringgit' => 'Ringgit',
'Bolívar fuerte' => 'Bolívar fuerte',
'Forint' => 'Forint',
'Kenyan shilling' => 'Kenyan shilling',
'Гривна' => 'Гривна',
'Tunisian Dinar' => 'Tunisian Dinar',
'Lev' => 'Lev',
'Indian Rupee' => 'Indian Rupee',
);
View
@@ -765,11 +765,56 @@ INSERT INTO `customer_title`(`id`, `by_default`, `position`, `created_at`, `upda
(2, 0, 2, NOW(), NOW()),
(3, 0, 3, NOW(), NOW());
INSERT INTO `currency` (`id`, `code`, `symbol`, `rate`, `position`, `by_default`, `created_at`, `updated_at`)
INSERT INTO `currency` (`id`, `code`, `symbol`, `format`, `rate`, `visible`, `position`, `by_default`, `created_at`, `updated_at`)
VALUES
(1, 'EUR', '', '1.00', 1, '1', NOW(), NOW()),
(2, 'USD', '$', '1.26', 2, '0', NOW(), NOW()),
(3, 'GBP', '£', '0.89', 3, '0', NOW(), NOW());
(1, 'EUR', '', '%n %s','1.00', 1, 1, '1', NOW(), NOW()),
(2, 'USD', '$', '%s%n', '1.26', 1, 2, '0', NOW(), NOW()),
(3, 'GBP', '£', '%s%n','0.89', 1, 3, '0', NOW(), NOW()),
(4, 'CHF', 'CHF', '%n %s', '1.34183', 0, 4, '0', NOW(), NOW()),
(5, 'MXN', '$', '%n %s', '17.1304', 0, 5, '0', NOW(), NOW()),
(6, 'PLN', '', '%n %s', '3.84510', 0, 6, '0', NOW(), NOW()),
(7, 'CNY', '¥', '%s %n', '9.13916', 0, 7, '0', NOW(), NOW()),
(8, 'NOK', 'kr', '%n %s', '7.97791', 0, 8, '0', NOW(), NOW()),
(9, 'MDL', 'MDL', '%n %s', '16.1774', 0, 9, '0', NOW(), NOW()),
(10, 'PYG', 'Gs', '%n %s', '6547.98', 0, 10, '0', NOW(), NOW()),
(11, 'ARS', 'ARS', '%n %s', '5.39', 0, 11, '0', NOW(), NOW()),
(12, 'BYR', 'р.', '%n%s', '1.000000', 0, 12, '0', NOW(), NOW()),
(13, 'FJD', '$', '%s%n', '2.57483', 0, 13, '0', NOW(), NOW()),
(14, 'RSD', 'RSD', '%n %s', '115.680000', 0, 14, '0', NOW(), NOW()),
(15, 'SEK', 'kr', '%n %s', '9.14651', 0, 15, '0', NOW(), NOW()),
(16, 'HRK', 'kn', '%n %s', '1.000000', 0, 16, '0', NOW(), NOW()),
(17, 'DKK', 'kr', '%n %s', '7.45201', 0, 17, '0', NOW(), NOW()),
(18, 'NGN', '', '%s %n', '1.000000', 0, 18, '0', NOW(), NOW()),
(19, 'HKD', '$', '%n %s', '11.0512', 0, 19, '0', NOW(), NOW()),
(20, 'CAD', 'CAD$', '%s%n', '1.40054', 0, 20, '0', NOW(), NOW()),
(21, 'SAR', '', '%n %s', '5.10682', 0, 21, '0', NOW(), NOW()),
(22, 'CZK', '', '%n %s', '1', 0, 22, '0', NOW(), NOW()),
(23, 'CRC', '', '%s %n', '560', 0, 23, '0', NOW(), NOW()),
(24, 'AZN', 'AZN', '%n %s', '1.09237', 0, 24, '0', NOW(), NOW()),
(25, 'IDR', 'Rp‎', '%n %s', '12177.63', 0, 25, '0', NOW(), NOW()),
(26, 'PKR', '', '%n %s', '117.289', 0, 26, '0', NOW(), NOW()),
(27, 'BRL', 'R$', '%s %n', '2.31583', 0, 27, '0', NOW(), NOW()),
(28, 'VND', '', '%n %s', '26505.85', 0, 28, '0', NOW(), NOW()),
(29, 'PHP', 'PHP', '%s %n', '1.000000', 0, 29, '0', NOW(), NOW()),
(30, 'GTQ', 'Q', '%n %s', '11.0988', 0, 30, '0', NOW(), NOW()),
(31, 'TRY', 'TL', '%n %s', '1.97638', 0, 31, '0', NOW(), NOW()),
(32, 'JPY', '¥', '%s %n', '113.786', 0, 32, '0', NOW(), NOW()),
(33, 'RUB', 'руб', '%n %s', '41.7632', 0, 33, '0', NOW(), NOW()),
(34, 'PEN', 'S/.', '%s %n', '2.784499', 0, 34, '0', NOW(), NOW()),
(35, 'EGP', '£', '%s %n', '7.77518', 0, 35, '0', NOW(), NOW()),
(36, 'GEL', '', '%n %s', '2.46684', 0, 36, '0', NOW(), NOW()),
(37, 'BOB', '$b', '%n %s', '9.57620', 0, 37, '0', NOW(), NOW()),
(38, 'AED', 'AED', '%s %n', '1.000000', 0, 38, '0', NOW(), NOW()),
(39, 'THB', '฿', '%n %s', '41.4441', 0, 39, '0', NOW(), NOW()),
(40, 'ILS', '₪‎', '%n%s', '4.97713', 0, 40, '0', NOW(), NOW()),
(41, 'MYR', 'RM', '%s%n', '1.000000', 0, 41, '0', NOW(), NOW()),
(42, 'VEF', 'Bs', '%n %s', '5.84819', 0, 42, '0', NOW(), NOW()),
(43, 'HUF', 'Ft‎', '%n %s', '276.334', 0, 43, '0', NOW(), NOW()),
(44, 'KES', 'KSh', '%s %n', '1.000000', 0, 44, '0', NOW(), NOW()),
(45, 'UAH', '', '%n %s', '1', 0, 45, '0', NOW(), NOW()),
(46, 'TND', 'DT', '%n%s', '1.000000', 0, 46, '0', NOW(), NOW()),
(47, 'BGN', 'лв', '%n %s', '1.95580', 0, 47, '0', NOW(), NOW()),
(48, 'INR', '', '%s %n', '60.748205', 0, 48, '0', NOW(), NOW());
INSERT INTO `area` (`id`, `name`, `postage`, `created_at`, `updated_at`) VALUES
(1, 'France', NULL, NOW(), NOW()),
@@ -4335,15 +4380,195 @@ INSERT INTO `currency_i18n` (`id`, `locale`, `name`) VALUES
(1, 'de_DE', NULL),
(2, 'de_DE', 'US Dollar'),
(3, 'de_DE', 'Britische Pfund'),
(4, 'de_DE', NULL),
(5, 'de_DE', NULL),
(6, 'de_DE', NULL),
(7, 'de_DE', NULL),
(8, 'de_DE', NULL),
(9, 'de_DE', NULL),
(10, 'de_DE', NULL),
(11, 'de_DE', NULL),
(12, 'de_DE', NULL),
(13, 'de_DE', NULL),
(14, 'de_DE', NULL),
(15, 'de_DE', NULL),
(16, 'de_DE', NULL),
(17, 'de_DE', NULL),
(18, 'de_DE', NULL),
(19, 'de_DE', NULL),
(20, 'de_DE', NULL),
(21, 'de_DE', NULL),
(22, 'de_DE', NULL),
(23, 'de_DE', NULL),
(24, 'de_DE', NULL),
(25, 'de_DE', NULL),
(26, 'de_DE', NULL),
(27, 'de_DE', NULL),
(28, 'de_DE', NULL),
(29, 'de_DE', NULL),
(30, 'de_DE', NULL),
(31, 'de_DE', NULL),
(32, 'de_DE', NULL),
(33, 'de_DE', NULL),
(34, 'de_DE', NULL),
(35, 'de_DE', NULL),
(36, 'de_DE', NULL),
(37, 'de_DE', NULL),
(38, 'de_DE', NULL),
(39, 'de_DE', NULL),
(40, 'de_DE', NULL),
(41, 'de_DE', NULL),
(42, 'de_DE', NULL),
(43, 'de_DE', NULL),
(44, 'de_DE', NULL),
(45, 'de_DE', NULL),
(46, 'de_DE', NULL),
(47, 'de_DE', NULL),
(48, 'de_DE', NULL),
(1, 'en_US', 'Euro'),
(2, 'en_US', 'United States Dollar'),
(3, 'en_US', 'UK Pound'),
(4, 'en_US', 'Franc'),
(5, 'en_US', 'Peso'),
(6, 'en_US', 'Złoty'),
(7, 'en_US', 'Yuan'),
(8, 'en_US', 'Krone'),
(9, 'en_US', 'Lei'),
(10, 'en_US', 'Guaraní'),
(11, 'en_US', 'Peso Argentino'),
(12, 'en_US', 'Belarusian ruble'),
(13, 'en_US', 'Dollar'),
(14, 'en_US', 'Dinar'),
(15, 'en_US', 'Krona'),
(16, 'en_US', 'Croatian Kuna'),
(17, 'en_US', 'Danish krone'),
(18, 'en_US', 'Nigerian naira'),
(19, 'en_US', 'Hong Kong Dollar'),
(20, 'en_US', 'Dollar (CAD)'),
(21, 'en_US', 'Riyal'),
(22, 'en_US', 'Czech koruna'),
(23, 'en_US', 'Colón'),
(24, 'en_US', 'Manat'),
(25, 'en_US', 'Rupiah'),
(26, 'en_US', 'Rupee'),
(27, 'en_US', 'Real'),
(28, 'en_US', 'Đồng'),
(29, 'en_US', 'Philippine Peso'),
(30, 'en_US', 'Quetzal'),
(31, 'en_US', 'Lira'),
(32, 'en_US', 'Yen'),
(33, 'en_US', 'Ruble'),
(34, 'en_US', 'Nuevo Sol'),
(35, 'en_US', 'Pound'),
(36, 'en_US', 'Lari'),
(37, 'en_US', 'Boliviano'),
(38, 'en_US', 'United Arab Emirates dirham'),
(39, 'en_US', 'Baht'),
(40, 'en_US', 'Shekel'),
(41, 'en_US', 'Ringgit'),
(42, 'en_US', 'Bolívar fuerte'),
(43, 'en_US', 'Forint'),
(44, 'en_US', 'Kenyan shilling'),
(45, 'en_US', 'Гривна'),
(46, 'en_US', 'Tunisian Dinar'),
(47, 'en_US', 'Lev'),
(48, 'en_US', 'Indian Rupee'),
(1, 'es_ES', NULL),
(2, 'es_ES', NULL),
(3, 'es_ES', NULL),
(4, 'es_ES', NULL),
(5, 'es_ES', NULL),
(6, 'es_ES', NULL),
(7, 'es_ES', NULL),
(8, 'es_ES', NULL),
(9, 'es_ES', NULL),
(10, 'es_ES', NULL),
(11, 'es_ES', NULL),
(12, 'es_ES', NULL),
(13, 'es_ES', NULL),
(14, 'es_ES', NULL),
(15, 'es_ES', NULL),
(16, 'es_ES', NULL),
(17, 'es_ES', NULL),
(18, 'es_ES', NULL),
(19, 'es_ES', NULL),
(20, 'es_ES', NULL),
(21, 'es_ES', NULL),
(22, 'es_ES', NULL),
(23, 'es_ES', NULL),
(24, 'es_ES', NULL),
(25, 'es_ES', NULL),
(26, 'es_ES', NULL),
(27, 'es_ES', NULL),
(28, 'es_ES', NULL),
(29, 'es_ES', NULL),
(30, 'es_ES', NULL),
(31, 'es_ES', NULL),
(32, 'es_ES', NULL),
(33, 'es_ES', NULL),
(34, 'es_ES', NULL),
(35, 'es_ES', NULL),
(36, 'es_ES', NULL),
(37, 'es_ES', NULL),
(38, 'es_ES', NULL),
(39, 'es_ES', NULL),
(40, 'es_ES', NULL),
(41, 'es_ES', NULL),
(42, 'es_ES', NULL),
(43, 'es_ES', NULL),
(44, 'es_ES', NULL),
(45, 'es_ES', NULL),
(46, 'es_ES', NULL),
(47, 'es_ES', NULL),
(48, 'es_ES', NULL),
(1, 'fr_FR', 'Euro'),
(2, 'fr_FR', 'Dollar Américain'),
(3, 'fr_FR', 'Livre anglaise')
(3, 'fr_FR', 'Livre anglaise'),
(4, 'fr_FR', NULL),
(5, 'fr_FR', NULL),
(6, 'fr_FR', NULL),
(7, 'fr_FR', NULL),
(8, 'fr_FR', NULL),
(9, 'fr_FR', NULL),
(10, 'fr_FR', NULL),
(11, 'fr_FR', NULL),
(12, 'fr_FR', NULL),
(13, 'fr_FR', NULL),
(14, 'fr_FR', NULL),
(15, 'fr_FR', NULL),
(16, 'fr_FR', NULL),
(17, 'fr_FR', NULL),
(18, 'fr_FR', NULL),
(19, 'fr_FR', NULL),
(20, 'fr_FR', NULL),
(21, 'fr_FR', NULL),
(22, 'fr_FR', NULL),
(23, 'fr_FR', NULL),
(24, 'fr_FR', NULL),
(25, 'fr_FR', NULL),
(26, 'fr_FR', NULL),
(27, 'fr_FR', NULL),
(28, 'fr_FR', NULL),
(29, 'fr_FR', NULL),
(30, 'fr_FR', NULL),
(31, 'fr_FR', NULL),
(32, 'fr_FR', NULL),
(33, 'fr_FR', NULL),
(34, 'fr_FR', NULL),
(35, 'fr_FR', NULL),
(36, 'fr_FR', NULL),
(37, 'fr_FR', NULL),
(38, 'fr_FR', NULL),
(39, 'fr_FR', NULL),
(40, 'fr_FR', NULL),
(41, 'fr_FR', NULL),
(42, 'fr_FR', NULL),
(43, 'fr_FR', NULL),
(44, 'fr_FR', NULL),
(45, 'fr_FR', NULL),
(46, 'fr_FR', NULL),
(47, 'fr_FR', NULL),
(48, 'fr_FR', NULL)
;
INSERT INTO `country_i18n` (`id`, `locale`, `title`, `chapo`, `description`, `postscriptum`) VALUES
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.