OpenSong importer: wrong verse order

Bug #648263 reported by Gyuris Gellért
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Medium
mahfiaz

Bug Description

It seems to me, the importer only copy the OpenSong verse order, and does not "translate" to OpenLP style.
For example, see the attachment song/screenshot:
- OpenSong verse order was unspecified (but if it is given, it does not matter), so: "V1 B C"
- The imported verse order is: "V1 B1 C1"
- But, should be: "V1 M1 R1"
The sequence refers on no-existing element.

Related branches

Revision history for this message
Gyuris Gellért (gellert-gyuris) wrote :
Revision history for this message
Gyuris Gellért (gellert-gyuris) wrote :
Changed in openlp:
milestone: none → 1.9.4
assignee: nobody → Martin Thompson (mjthompson)
assignee: Martin Thompson (mjthompson) → nobody
assignee: nobody → Martin Thompson (mjthompson)
importance: Undecided → Medium
Revision history for this message
Martin Thompson (mjthompson) wrote :

Thanks Gyuris.

Your opensong file seems (to me) to say V1, B, C *is* the correct order - those are the tags used in there. Where are the M and R coming from?

Is the issue a translation one? Should we be displaying "B"as "M" and "R" as "C"? (By the way, what are M and R short for?)

Sorry, I don't seem to be understanding the problem sufficiently to fix it!

Revision history for this message
Gyuris Gellért (gellert-gyuris) wrote :

Hi, see the attached picture (English version).
"M" and "R" is coming from warning message.
I think, this is not a translation issues (I'm the Hungarian translator).
I hope, this helps.

Revision history for this message
Martin Thompson (mjthompson) wrote :

Right, I see now. I'm still not clear where the M and R are coming from though. as I see it:
* The original song has V1, B and C in
* The importer has set the order as V1, B and C also
* The song editor is now using (I assume) Hungarian labelling.

Have I understood correctly this time?

If so, I think this must be coming from "outside" of the importer somewhere, as I'm just pushing the V,B,C at the database.

Changed in openlp:
assignee: Martin Thompson (mjthompson) → nobody
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

There is a wider issue here. For some reason we're holding translated verse identifiers in the database. This is bad, especially if people switch between languages, e.g. add some songs in English, and then switch to another language later when the translation is completed.

So first thing is to ensure database is always in English
Then we need to translate when song is loaded, and translate back to English when saved. Verse order will need translating too.

tags: added: opensong-import
Changed in openlp:
assignee: nobody → Martin Thompson (mjthompson)
Tim Bentley (trb143)
Changed in openlp:
milestone: 1.9.4 → 1.9.5
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

Hm... I just had some problems with the openlp.org v1 importer. It added the verses with a "Strophe" attribute, instead of a "Verse" attribute to the db. But as the verse order is not translated, I could not view any of my songs.

As this is a fundamental problem, I think we should hurry to fix this.

mahfiaz (mahfiaz)
Changed in openlp:
assignee: Martin Thompson (mjthompson) → mahfiaz (mahfiaz)
status: New → In Progress
Revision history for this message
mahfiaz (mahfiaz) wrote :

This should be resolved in the trunk in revision 1310. The tested file imports fine on my machine.
Also now the verse order is inserted only when this actually has meaning (it was originally present/some duplicate verses were left out). Please test it yourself and let us know if anything is wrong or does not work as expected.

Changed in openlp:
status: In Progress → Fix Committed
mahfiaz (mahfiaz)
Changed in openlp:
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.