Opened 16 years ago

Closed 16 years ago

#4486 closed defect (fixed)

Translated mythmusic smart playlist matchtype emtpy

Reported by: Pastinakel <pastinakel@…> Owned by: paulh
Priority: minor Milestone: 0.21
Component: mythmusic Version: head
Severity: medium Keywords: smartplaylist
Cc: Ticket locked: no

Description

Normally I use mythmusic in a Dutch translation. Whe I try to create an new smart playlist, I cannot choose the right matchtype. Both give an empty playlist.

In mythconverg.music_smartplaylists this is the result when I use Mythtv in Dutch, after I tried to create a new smart playlist:

+-----------------+------+------------+-----------+---------+---------+
| smartplaylistid | name | categoryid | matchtype | orderby | limitto |
+-----------------+------+------------+-----------+---------+---------+
|              15 | Test |          4 |           |         |       0 |
+-----------------+------+------------+-----------+---------+---------+

When I do this in English (US), this is the result:

+-----------------+------+------------+-----------+---------+---------+
| smartplaylistid | name | categoryid | matchtype | orderby | limitto |
+-----------------+------+------------+-----------+---------+---------+
|              17 | Test |          4 | All       |         |       0 |
+-----------------+------+------------+-----------+---------+---------+

This behaviour makes use of smart playlists in Dutch impossbile: if I use more than one criterium, I get zero matches. I think it has something to do with a string that is translated to Dutch but is not translated back to English at the time the database is written to. Collumn matchtype is a set('All', 'Any') so it will not accept translated strings.

Change History (3)

comment:1 Changed 16 years ago by Pastinakel <pastinakel@…>

I just tried with the German and the French translation. Same result as the Dutch translation. Maybe 3 translations are borked but I think it has something to do with the way these translations are used. Like I said: I think mythmusic tries to insert translated strings in a database field that can only contain "All" or "Any", not "Alle" or "Een" (the Dutch translation of those matchtypes).

comment:2 Changed 16 years ago by paulh

Milestone: unknown0.21
Owner: changed from Isaac Richards to paulh
Status: newaccepted
Version: 0.20-fixeshead

comment:3 Changed 16 years ago by paulh

Resolution: fixed
Status: acceptedclosed

(In [15505]) Save the untranslated matchType in the DB when saving a smartplaylist. Fixes #4486.

Note: See TracTickets for help on using tickets.