diff --git a/share/translations/valentina.ts b/share/translations/valentina.ts index 164f2601a..10c6ae1c9 100644 --- a/share/translations/valentina.ts +++ b/share/translations/valentina.ts @@ -3986,6 +3986,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + RenamePP diff --git a/share/translations/valentina_cs_CZ.ts b/share/translations/valentina_cs_CZ.ts index a4f76c247..8a590335c 100644 --- a/share/translations/valentina_cs_CZ.ts +++ b/share/translations/valentina_cs_CZ.ts @@ -5849,6 +5849,19 @@ Chcete uložit své změny? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_de_DE.ts b/share/translations/valentina_de_DE.ts index e22a55f43..991e186d8 100644 --- a/share/translations/valentina_de_DE.ts +++ b/share/translations/valentina_de_DE.ts @@ -5300,6 +5300,19 @@ Sollen die Änderungen gespeichert werden? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_en_US.ts b/share/translations/valentina_en_US.ts index 2de040061..13641c7ce 100644 --- a/share/translations/valentina_en_US.ts +++ b/share/translations/valentina_en_US.ts @@ -7072,6 +7072,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_es_ES.ts b/share/translations/valentina_es_ES.ts index 2fe5d3773..34c065cde 100644 --- a/share/translations/valentina_es_ES.ts +++ b/share/translations/valentina_es_ES.ts @@ -5498,6 +5498,19 @@ Quiere guardar los cambios? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_fi_FI.ts b/share/translations/valentina_fi_FI.ts index 818856f00..e4fd130d0 100644 --- a/share/translations/valentina_fi_FI.ts +++ b/share/translations/valentina_fi_FI.ts @@ -5721,6 +5721,19 @@ Haluatko tallentaa muutokset? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_fr_FR.ts b/share/translations/valentina_fr_FR.ts index 5ba85d205..e61423829 100644 --- a/share/translations/valentina_fr_FR.ts +++ b/share/translations/valentina_fr_FR.ts @@ -5595,6 +5595,19 @@ Voulez-vous sauvegarder les changements ? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + RenamePP diff --git a/share/translations/valentina_he_IL.ts b/share/translations/valentina_he_IL.ts index e85f9bb9d..7a9234498 100644 --- a/share/translations/valentina_he_IL.ts +++ b/share/translations/valentina_he_IL.ts @@ -4102,6 +4102,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + RenamePP diff --git a/share/translations/valentina_id_ID.ts b/share/translations/valentina_id_ID.ts index 7e301363f..570c9ee76 100644 --- a/share/translations/valentina_id_ID.ts +++ b/share/translations/valentina_id_ID.ts @@ -4520,6 +4520,19 @@ Apakah anda ingin menyimpan perubahan anda? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + RenamePP diff --git a/share/translations/valentina_it_IT.ts b/share/translations/valentina_it_IT.ts index 78a28e317..829ffe152 100644 --- a/share/translations/valentina_it_IT.ts +++ b/share/translations/valentina_it_IT.ts @@ -4073,6 +4073,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + RenamePP diff --git a/share/translations/valentina_nl_NL.ts b/share/translations/valentina_nl_NL.ts index ff9b5d970..17891411b 100644 --- a/share/translations/valentina_nl_NL.ts +++ b/share/translations/valentina_nl_NL.ts @@ -7046,6 +7046,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_ru_RU.ts b/share/translations/valentina_ru_RU.ts index 2d4834bfd..363f51e9f 100644 --- a/share/translations/valentina_ru_RU.ts +++ b/share/translations/valentina_ru_RU.ts @@ -8919,6 +8919,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/share/translations/valentina_uk_UA.ts b/share/translations/valentina_uk_UA.ts index 6e0a6480e..ed0072893 100644 --- a/share/translations/valentina_uk_UA.ts +++ b/share/translations/valentina_uk_UA.ts @@ -7883,6 +7883,19 @@ Do you want to save your changes? + + QmuParser + + too few arguments for function sum. + parser error message + + + + too few arguments for function min. + parser error message + + + QmuParserErrorMsg diff --git a/src/libs/qmuparser/qmuparser.cpp b/src/libs/qmuparser/qmuparser.cpp index d3c211848..fdab2e0a9 100644 --- a/src/libs/qmuparser/qmuparser.cpp +++ b/src/libs/qmuparser/qmuparser.cpp @@ -23,6 +23,7 @@ #include #include +#include using namespace std; @@ -136,7 +137,8 @@ qreal QmuParser::Sum(const qreal *a_afArg, int a_iArgc) { if (a_iArgc == 0) { - throw QmuParserError("too few arguments for function sum."); + throw QmuParserError(QCoreApplication::translate("QmuParser", "too few arguments for function sum.", + "parser error message")); } qreal fRes=0; for (int i=0; i