Opened 16 years ago
Closed 16 years ago
#4486 closed defect (fixed)
Translated mythmusic smart playlist matchtype emtpy
Reported by: | 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.
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).