From: Pasi Kallinen Date: Tue, 11 Jun 2013 08:53:42 +0000 (+0300) Subject: Move acq.currency_code entries and wrap for i18n X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=64e473dbbf8d45447256a860801a2a9a6868468a;p=evergreen%2Fequinox.git Move acq.currency_code entries and wrap for i18n Fix LP#1107834 by moving the acq.currency_code entries into 950.data.seed-values.sql and wrapping the texts with oils_i18n_gettext. Signed-off-by: Pasi Kallinen Signed-off-by: Remington Steed Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index c059f66b90..75185a003a 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -28,11 +28,6 @@ CREATE TABLE acq.currency_type ( label TEXT ); --- Use the ISO 4217 abbreviations for currency codes -INSERT INTO acq.currency_type (code, label) VALUES ('USD','US Dollars'); -INSERT INTO acq.currency_type (code, label) VALUES ('CAN','Canadian Dollars'); -INSERT INTO acq.currency_type (code, label) VALUES ('EUR','Euros'); - CREATE TABLE acq.exchange_rate ( id SERIAL PRIMARY KEY, from_currency TEXT NOT NULL REFERENCES acq.currency_type (code) DEFERRABLE INITIALLY DEFERRED, diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index c45a574d85..fadeb20a70 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -9041,6 +9041,11 @@ INSERT INTO action_trigger.environment ( ,( 32, 'items' ) ; +-- Use the ISO 4217 abbreviations for currency codes +INSERT INTO acq.currency_type (code, label) VALUES ('USD', oils_i18n_gettext('USD', 'US Dollars', 'acqct', 'label')); +INSERT INTO acq.currency_type (code, label) VALUES ('CAN', oils_i18n_gettext('CAN', 'Canadian Dollars', 'acqct', 'label')); +INSERT INTO acq.currency_type (code, label) VALUES ('EUR', oils_i18n_gettext('EUR', 'Euros', 'acqct', 'label')); + INSERT INTO acq.invoice_item_type (code,name) VALUES ('TAX',oils_i18n_gettext('TAX', 'Tax', 'aiit', 'name')); INSERT INTO acq.invoice_item_type (code,name) VALUES ('PRO',oils_i18n_gettext('PRO', 'Processing Fee', 'aiit', 'name')); INSERT INTO acq.invoice_item_type (code,name) VALUES ('SHP',oils_i18n_gettext('SHP', 'Shipping Charge', 'aiit', 'name'));