Browse Source

thermostat: edit_dlg: shorten DoW to fit into Rpi screen

master
Richard Genoud 4 years ago
parent
commit
77a845822a
2 changed files with 26 additions and 14 deletions
  1. +23
    -11
      soft/thermostat/lang/thermostat_fr.ts
  2. +3
    -3
      soft/thermostat/src/edit_dlg.cpp

+ 23
- 11
soft/thermostat/lang/thermostat_fr.ts View File

@ -45,38 +45,50 @@ de %1 :</translation>
</message>
<message>
<location line="+84"/>
<source>M</source>
<translation>L</translation>
</message>
<message>
<location line="+2"/>
<source>W</source>
<translation>Me</translation>
</message>
<message>
<location line="+2"/>
<source>F</source>
<translation>V</translation>
</message>
<message>
<source>Mo</source>
<translation>Lu</translation>
<translation type="vanished">Lu</translation>
</message>
<message>
<location line="+1"/>
<location line="-3"/>
<source>Tu</source>
<translation>Ma</translation>
</message>
<message>
<location line="+1"/>
<source>We</source>
<translation>Me</translation>
<translation type="vanished">Me</translation>
</message>
<message>
<location line="+1"/>
<location line="+2"/>
<source>Th</source>
<translation>Je</translation>
<translation>J</translation>
</message>
<message>
<location line="+1"/>
<source>Fr</source>
<translation>Ve</translation>
<translation type="vanished">Ve</translation>
</message>
<message>
<location line="+1"/>
<location line="+2"/>
<source>Sa</source>
<translation>Sa</translation>
<translation>S</translation>
</message>
<message>
<location line="+1"/>
<source>Su</source>
<translation>Di</translation>
<translation>D</translation>
</message>
<message>
<location line="+17"/>


+ 3
- 3
soft/thermostat/src/edit_dlg.cpp View File

@ -149,11 +149,11 @@ QHBoxLayout *EditDlg::add_prog_layout(const struct Program *p, int idx)
}
switch (j) {
case 0: text += QString(tr("Mo")); break;
case 0: text += QString(tr("M")); break;
case 1: text += QString(tr("Tu")); break;
case 2: text += QString(tr("We")); break;
case 2: text += QString(tr("W")); break;
case 3: text += QString(tr("Th")); break;
case 4: text += QString(tr("Fr")); break;
case 4: text += QString(tr("F")); break;
case 5: text += QString(tr("Sa")); break;
case 6: text += QString(tr("Su")); break;
}


Loading…
Cancel
Save