Commit dc3f80a4 authored by Karl Ove Hufthammer's avatar Karl Ove Hufthammer
Browse files

Make operators localisable and typograpically correct

This makes the arithmetic operators (+−×/) localisable.
It also changes the default (English) operators to be
typographically correct, e.g. ‘×’ instead of ‘x’ for

A comment meant for the translators was removed,
since it wasn’t actually extracted to the translation
files (and wasn’t needed anyway).
parent 33e711e0
......@@ -104,17 +104,15 @@ void TaskWidget::paintEvent(QPaintEvent* /* p_paintEvent */)
// we have to convert the operation sign into a string
switch (tmp_operation) {
case ADD :
str_operation = QStringLiteral("+");
str_operation = i18nc("addition symbol", "+");
case SUB :
str_operation = QStringLiteral("-");
str_operation = i18nc("subtraction symbol", "−");
case MUL :
str_operation = QStringLiteral("x");
str_operation = i18nc("multiplication symbol", ");
case DIV :
// there seems to be different division signs around the world
// so please translate it to the right one for your country
str_operation = i18nc("division symbol", "/");
} /* switch (operation) */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment