Commit 60c83260 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG: correct a translation error

No related merge requests found
Showing with 24 additions and 24 deletions
+24 -24
...@@ -235,13 +235,13 @@ private: ...@@ -235,13 +235,13 @@ private:
SetParameterDescription("minmax.auto.global" , "Automatic" SetParameterDescription("minmax.auto.global" , "Automatic"
"Min/max computation will result in the same minimum and maximum for " "Min/max computation will result in the same minimum and maximum for "
"all the bands."); "all the bands.");
AddChoice( "minmax.manuel" , "Manuel" ); AddChoice( "minmax.manual" , "Manual" );
SetParameterDescription("minmax.auto","Minimum and maximum value will be " SetParameterDescription("minmax.auto","Minimum and maximum value will be "
"set by the user"); "set by the user");
AddParameter(ParameterType_Float , "minmax.manuel.min" , "Minimum"); AddParameter(ParameterType_Float , "minmax.manual.min" , "Minimum");
AddParameter(ParameterType_Float , "minmax.manuel.max" , "Maximum"); AddParameter(ParameterType_Float , "minmax.manual.max" , "Maximum");
MandatoryOff("minmax.manuel.min"); MandatoryOff("minmax.manual.min");
MandatoryOff("minmax.manuel.max"); MandatoryOff("minmax.manual.max");
AddParameter(ParameterType_Choice , "mode" , "What to equalized"); AddParameter(ParameterType_Choice , "mode" , "What to equalized");
AddChoice( "mode.each" , "Channels" ); AddChoice( "mode.each" , "Channels" );
...@@ -323,15 +323,15 @@ private: ...@@ -323,15 +323,15 @@ private:
SetDefaultValue( inImage , "RGB" ); SetDefaultValue( inImage , "RGB" );
} }
if ( GetParameterString("minmax") == "manuel" ) if ( GetParameterString("minmax") == "manual" )
{ {
MandatoryOn("minmax.manuel.min"); MandatoryOn("minmax.manual.min");
MandatoryOn("minmax.manuel.max"); MandatoryOn("minmax.manual.max");
} }
else if ( GetParameterString("minmax") == "auto" ) else if ( GetParameterString("minmax") == "auto" )
{ {
MandatoryOff("minmax.manuel.min"); MandatoryOff("minmax.manual.min");
MandatoryOff("minmax.manuel.max"); MandatoryOff("minmax.manual.max");
} }
} }
...@@ -476,8 +476,8 @@ private: ...@@ -476,8 +476,8 @@ private:
} }
else else
{ {
oss << GetParameterFloat("minmax.manuel.min") << "/" << oss << GetParameterFloat("minmax.manual.min") << "/" <<
GetParameterFloat("minmax.manuel.max"); GetParameterFloat("minmax.manual.max");
} }
otbAppLogINFO( << oss.str() ); otbAppLogINFO( << oss.str() );
...@@ -511,14 +511,14 @@ private: ...@@ -511,14 +511,14 @@ private:
// Check for min max validity // Check for min max validity
void WarningMinMax() void WarningMinMax()
{ {
if ( m_MinMaxMode == "manuel" && if ( m_MinMaxMode == "manual" &&
GetParameterFloat( "minmax.manuel.min" ) > GetParameterFloat( "minmax.manual.min" ) >
GetParameterFloat( "minmax.manuel.max" ) ) GetParameterFloat( "minmax.manual.max" ) )
{ {
std::ostringstream oss; std::ostringstream oss;
oss<<"The minimum (" << GetParameterFloat( "minmax.manuel.min" ) << oss<<"The minimum (" << GetParameterFloat( "minmax.manual.min" ) <<
") is superior to the maximum (" ") is superior to the maximum ("
<< GetParameterFloat( "minmax.manuel.max" ) << GetParameterFloat( "minmax.manual.max" )
<< ") please correct this error or allow the application to compute " << ") please correct this error or allow the application to compute "
"those parameters"; "those parameters";
otbAppLogFATAL( << oss.str() ) otbAppLogFATAL( << oss.str() )
...@@ -545,10 +545,10 @@ private: ...@@ -545,10 +545,10 @@ private:
FloatVectorImageType::PixelType & max , FloatVectorImageType::PixelType & max ,
FloatVectorImageType::PixelType & min ) FloatVectorImageType::PixelType & min )
{ {
if ( m_MinMaxMode == "manuel" ) if ( m_MinMaxMode == "manual" )
{ {
min.Fill( GetParameterFloat("minmax.manuel.min") ); min.Fill( GetParameterFloat("minmax.manual.min") );
max.Fill( GetParameterFloat("minmax.manuel.max") ); max.Fill( GetParameterFloat("minmax.manual.max") );
} }
else else
{ {
...@@ -584,7 +584,7 @@ private: ...@@ -584,7 +584,7 @@ private:
std::ostringstream oss; std::ostringstream oss;
oss<<"Minimum and maximum are for each channel : "; oss<<"Minimum and maximum are for each channel : ";
if ( IsParameterEnabled("minmax.auto.global") || if ( IsParameterEnabled("minmax.auto.global") ||
m_MinMaxMode == "manuel" ) m_MinMaxMode == "manual" )
{ {
oss<<std::endl<<min[0]<<" and "<<max[0]; oss<<std::endl<<min[0]<<" and "<<max[0];
} }
......
...@@ -68,9 +68,9 @@ otb_test_application(NAME apTvUtContrastTest_base_glob ...@@ -68,9 +68,9 @@ otb_test_application(NAME apTvUtContrastTest_base_glob
-out ${TEMP}/apTvUtContrastTest_base_glob.tif int16 -out ${TEMP}/apTvUtContrastTest_base_glob.tif int16
-bins 256 -bins 256
-spatial global -spatial global
-minmax manuel -minmax manual
-minmax.manuel.min 0 -minmax.manual.min 0
-minmax.manuel.max 255 -minmax.manual.max 255
VALID --compare-image ${NOTOL} VALID --compare-image ${NOTOL}
${BASELINE}/apTvUtContrastTest_base_glob.tif ${BASELINE}/apTvUtContrastTest_base_glob.tif
${TEMP}/apTvUtContrastTest_base_glob.tif) ${TEMP}/apTvUtContrastTest_base_glob.tif)
......
Supports Markdown
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