diff --git a/app/Algorithms/DCT.cpp b/app/Algorithms/DCT.cpp index 1fcafeb8aeaea1248a25a35453a12f75dceedaeb..ba9e8f246553c0591fc9592c92cf8adaf9e9813e 100644 --- a/app/Algorithms/DCT.cpp +++ b/app/Algorithms/DCT.cpp @@ -19,6 +19,7 @@ #include <cstdio> #include "DCT.h" +#include "../Tools.h" #include <Converter.h> using namespace std; @@ -187,7 +188,7 @@ string tronc(Image_t<double>*img, int limit) } } debit = debit * 8. / 256.; - sprintf(buffer, "\nLe debit vaut : %5.2f\n\n", debit); + sprintf(buffer, QString(qApp->translate("Operations", "\nLe debit vaut : %5.2f\n\n")).toUtf8(), debit); return buffer; } @@ -205,7 +206,7 @@ string reduce(Image_t<double>* img, int nBitInit, double slope) double debit = 0; char buffer[100]; - string cs = "\n---------Matrice d'allocation de bits---------\n\n"; + string cs = QString(qApp->translate("Operations","\n---------Matrice d'allocation de bits---------\n\n")).toStdString(); for(unsigned int i = 0; i <16; ++i) { for(unsigned int j = 0; j <16; ++j) { @@ -227,7 +228,7 @@ string reduce(Image_t<double>* img, int nBitInit, double slope) cs = cs + "\n"; } debit /= (16 * 16); - sprintf(buffer, "\nLe debit vaut : %5.2f\n\n",debit); + sprintf(buffer, QString(qApp->translate("Operations","\nLe debit vaut : %5.2f\n\n")).toUtf8(),debit); cs = cs + buffer; diff --git a/app/Operations/Transforms.cpp b/app/Operations/Transforms.cpp index 61a5811ab7b1a948a6f3ae36c1a68020292526e1..8f05cad56a33cff81829364aa123a6f85d0329b1 100644 --- a/app/Operations/Transforms.cpp +++ b/app/Operations/Transforms.cpp @@ -17,6 +17,7 @@ * along with ImageINSA. If not, see <http://www.gnu.org/licenses/>. */ +#include "../Tools.h" #include "Transforms.h" #include <GrayscaleImage.h> #include <cstring> @@ -464,7 +465,7 @@ string hadamard_haar_88( const Image *im, Image_t<double> **resImg, Image **invI *---------------------------------------------------------------------*/ char buffer[100]; - returnval = "\n\nmatrice de transformation utilisee : \n"; + returnval = QString(qApp->translate("Operations","\n\nmatrice de transformation utilisee : \n")).toStdString(); for(int i=0 ; i<idt ; i++) { diff --git a/app/imageinsa_en.ts b/app/imageinsa_en.ts index a07a6758c83c4c1cbf4fce7ee421728aa355b54f..54ebf1eb714f2a19be3709e77a32d9abfadd0da2 100644 --- a/app/imageinsa_en.ts +++ b/app/imageinsa_en.ts @@ -1446,6 +1446,38 @@ Channel %d : <source>L'entropie de l'etage %d est %1f </source> <translation>The stage %d entropy is %1f +</translation> + </message> + <message> + <location filename="Operations/Transforms.cpp" line="468"/> + <source> + +matrice de transformation utilisee : +</source> + <translation> + +Used transformation matrix : +</translation> + </message> + <message> + <location filename="Algorithms/DCT.cpp" line="191"/> + <location filename="Algorithms/DCT.cpp" line="231"/> + <source> +Le debit vaut : %5.2f + +</source> + <translation>The flow is : %5.2f +</translation> + </message> + <message> + <location filename="Algorithms/DCT.cpp" line="209"/> + <source> +---------Matrice d'allocation de bits--------- + +</source> + <translation> +---------Bits allocation matrix--------- + </translation> </message> <message> diff --git a/app/imageinsa_fr.ts b/app/imageinsa_fr.ts index ae4ecc8263d02fd0485b98e8c832f3680c87284f..23ddda84a57574b413f47aaee9e57bdadbba219c 100644 --- a/app/imageinsa_fr.ts +++ b/app/imageinsa_fr.ts @@ -1434,6 +1434,39 @@ Canal %d : <source>L'entropie de l'etage %d est %1f </source> <translation>L'entropie de l'étage %d est %1f +</translation> + </message> + <message> + <location filename="Operations/Transforms.cpp" line="468"/> + <source> + +matrice de transformation utilisee : +</source> + <translation> + +Matrice de transformation utilisée : +</translation> + </message> + <message> + <location filename="Algorithms/DCT.cpp" line="191"/> + <location filename="Algorithms/DCT.cpp" line="231"/> + <source> +Le debit vaut : %5.2f + +</source> + <translation> +Le débit vaut : %5.2f +</translation> + </message> + <message> + <location filename="Algorithms/DCT.cpp" line="209"/> + <source> +---------Matrice d'allocation de bits--------- + +</source> + <translation> +---------Matrice d'allocation de bits--------- + </translation> </message> <message>