acq.currency_type labels are untranslatable

Bug #1107834 reported by Pasi Kallinen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned

Bug Description

*EG master

Currency names are untranslatable:

Open-ILS/src/sql/Pg/200.schema.acq.sql:INSERT INTO acq.currency_type (code, label) VALUES ('EUR','Euros');

Revision history for this message
Dan Scott (denials) wrote :

Strictly speaking, the bug title is incorrect. Currency labels are translatable, per the "oils_persist:i18n" attribute in fm_IDL.xml:

<fields oils_persist:primary="code">
  <field reporter:label="Currency Code" name="code" reporter:datatype="text" reporter:selector='label'/>
  <field reporter:label="Currency Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
</fields>

So the realy bug is simply that the seed data in 200.schema.acq.sql should move to 950.data.seed-values.sql and should include the oils_i18n_gettext() marker.

Ben Shum (bshum)
Changed in evergreen:
status: New → Triaged
milestone: none → 2.4.0-alpha
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-alpha1 → 2.4.0-beta
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-beta → 2.4.0-rc
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-rc → none
Revision history for this message
Pasi Kallinen (paxed) wrote :

Fixed in branch user/paxed/lp1107834

tags: added: pullrequest
Pasi Kallinen (paxed)
Changed in evergreen:
milestone: none → 2.5.0-m2
Revision history for this message
Remington Steed (rjs7) wrote :

Since this is a simple change, I have only done the basic test of running the SQL inserts in question, and they work as expected. Also, it is my understanding that such a change does not require an upgrade script, because the upgrade process doesn't yet participate in the translation-building process. If this is true, then perhaps we should open a bug to address this.

Signed off and rebased to master. Thanks Pasi!

user/rsteed/lp1107834_more_acq_i18n_seed_data
http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/rsteed/lp1107834_more_acq_i18n_seed_data

Revision history for this message
Dan Wells (dbw2) wrote :

Because currency_type is a foreign key of acq.exchange_rate, if we move currency_type to the seed data file, exchange rate must follow. Are there more dominoes in this chain?

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/dbwells/lp1107834_more_acq_i18n_seed_data

working/user/dbwells/lp1107834_more_acq_i18n_seed_data

Revision history for this message
Dan Wells (dbw2) wrote :

Double-checked, database seems to build fine with the latest commit.

Dan Wells (dbw2)
Changed in evergreen:
milestone: 2.5.0-m2 → 2.5.0-alpha1
Remington Steed (rjs7)
Changed in evergreen:
milestone: 2.5.0-alpha1 → 2.5.0-alpha2
Revision history for this message
Ben Shum (bshum) wrote :

Picked to master. Thanks Pasi, Remington, and Dan!

Changed in evergreen:
status: Triaged → Fix Committed
Ben Shum (bshum)
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.