Theme Editor: Fixed rendering of %ca tag

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27671 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-08-02 22:23:39 +00:00
parent abd05669ba
commit c8824640f2

View file

@ -362,8 +362,17 @@ QVariant DeviceState::data(QString tag, int paramCount,
}
else if(tag == "ca")
{
QString day = data("cw").toString();
return day.left(3);
switch(data("cw").toInt())
{
case 0: return "Sun";
case 1: return "Mon";
case 2: return "Tue";
case 3: return "Wed";
case 4: return "Thu";
case 5: return "Fri";
case 6: return "Sat";
case 7: return tr("Error, invalid weekday number");
}
}
else if(tag == "cb")
{