Empty translatable string in 950.data.seed-values.sql

Bug #1158211 reported by Pasi Kallinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Low
Unassigned
2.3
Fix Released
Undecided
Unassigned
2.4
Fix Released
Undecided
Unassigned

Bug Description

*EG master

     oils_i18n_gettext('circ.holds.default_shelf_expire_interval',
        '',
         'coust', 'description'),

The string in the middle line is empty, and will cause that to match the generic empty msgid in the po-file.

Ben Shum (bshum)
Changed in evergreen:
status: New → Triaged
Revision history for this message
Pasi Kallinen (paxed) wrote :

As of commit f572768, the master stops rebuilding the db.seed.pot -file where this empty string is (around 25% mark) until this is fixed...

So here's a quick fix: user/paxed/lp1158211

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

In the fix commit, the description given is:

'If this overlaps with a pickup library''s closed date, it is pushed out to the first open date. For example: "2 weeks" or "5 days"'

That seems nicely instructive, but maybe not actually descriptive enough? Or are you thinking the name is self-explanatory? What about something like:

'The amount of time an item will be held on the shelf before the hold expires. For example: "2 weeks" or "5 days"'

Something along those lines seems more in line with the other neighboring descriptions, I think (if I am even correct in what this setting does).

Revision history for this message
Pasi Kallinen (paxed) wrote :

Whatever works for you - I just pulled that description from the code comments for that setting...

Revision history for this message
Pasi Kallinen (paxed) wrote :

Changed the branch as per your suggestion, Dan.

Revision history for this message
Remington Steed (rjs7) wrote :

Tested by updating the description of the config.org_unit_setting_type on our test server, using the syntax in the provided branch. Works as expected. Rebased to master, signed off. Thanks Pasi!

user/rsteed/lp1158211_fill_empty_description

Revision history for this message
Remington Steed (rjs7) wrote :

Added new commit for missing upgrade script. Same branch.

Dan Wells (dbw2)
Changed in evergreen:
assignee: nobody → Dan Wells (dbw2)
Dan Wells (dbw2)
Changed in evergreen:
assignee: Dan Wells (dbw2) → nobody
status: Triaged → Fix Committed
Revision history for this message
Pasi Kallinen (paxed) wrote :

I completely forgot about the upgrade script. Thank you, Remington!

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

Pushed to master and backported through rel_2_3. Thank you, Pasi and Remington!

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

Hmmm, now that I have already pushed this, I am wondering, do we want the oils_i18n_gettext() in the upgrade script, too? Otherwise, upgrade scripters always get English.

I'll give it a try, but opinions are welcome as well. Thanks.

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

Adding it worked fine, and seemed correct based on other upgrade scripts. Pushed.

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.