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:
parent
abd05669ba
commit
c8824640f2
1 changed files with 11 additions and 2 deletions
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue