-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0
-
None
-
364258abfcc438f79908e8c47fd0fd68cfecee36
This concerns the file src/multimedia/playback/playlistfileparser.cpp in qtmultimedia repository. The affected class is PLSParser and the relevant lines are 310-312 which contain:
m_fileName = QString(tr("File%1")).arg(count);
m_titleName = QString(tr("Title%1")).arg(count);
m_lengthName = QString(tr("Length%1")).arg(count);
The strings on those lines are translatable and they have been translated to at least some languages. But if I read the code correctly the variables m_fileName etc. are used to parse a PLS file which as far as I understand is NOT going to contain translated strings. Instead PLS files always contain lines starting with "File", "Title" and "Length" regardless of the user's locale.
Effectively translating those strings breaks the PLSParser.
I suggest removing the tr() functions from those lines in the code.